npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

yl-theme

v1.0.1

Published

webpack打包时抽离css主题文件,配置生成多主题css文件

Downloads

6

Readme

  1. 中性色(会随暗色模式变化的色阶,由UI提供): --color-gray1: #ffffff; --color-gray2: #f7f8f9; --color-gray3: #F3F4F5; --color-gray4: #EbEEF0; --color-gray5: #e6e9eb; --color-gray6: #d0d5d9; --color-gray7: #b0b9bf; --color-gray8: #929da6; --color-gray9: #79848C; --color-gray10: #5e6a73; --color-gray11: #465159; --color-gray12: #303940; --color-gray13: #1c2226; --color-gray14: #000000;

  2. 主题色(随主题变化的色阶): --color-main18: #050c19; --color-main17: #0b1832; --color-main16: #11244b; --color-main15: #163064; --color-main14: #1c3d7d; --color-main13: #214996; --color-main12: #2755af; --color-main11: #2c61c8; --color-main10: #326de1; --color-primary:#3779FA; // rgb(55,121,250) --color-main9: #4b86fb; --color-main8: #5f94fb; --color-main7: #73a1fc; --color-main6: #87affc; --color-main5: #9bbcfd; --color-main4: #afc9fd; --color-main3: #C3D7FE; --color-main2: #d7e4fe; --color-main1: #ebf2ff; --color-main0: #f5f8ff;

  3. 其他常用的色值变量: /* 失败色 */ --color-red1: #ffe6e6; --color-red5: #ff4d4f;

/* 成功色 */ --color-green2: #d2f5ce; --color-green6: #27c129;

/* 辅助色 */ --color-orange1: #fff7e6; --color-orange6: #ff8400;

/* svg填充色 */ --fill-color-gray1: #feffff; --fill-color-gray12: #171717; --fill-color-gray13: #1c2227;

--color-primary-alpha: rgba(55, 121, 250, 0.2); --color-gray13-alpha: rgba(28, 34, 38, 0.1);

  1. 常量色值(不会随暗色模式切换的色值,比如:button中文字的颜色在亮色暗色下都为同一个色值): /* 项目常量色值,亮色,暗色都保持不变 */ $--constant-font-color: #fffeff; $--constant-gray-dark: #4d4d4c;

  2. 特殊颜色

    1. #fffffe 为工作台item的颜色,为了区别#ffffff转为#1a1a1a
    2. #f3f4f6 为移动端区分#f3f4f5的背景色
    3. #ebf0f5 为选会议室中yl-tree中选中的背景色
    4. 边框线的颜色:'#ebebeb', '#ebeef5', '#dcdfe6', '#cccccc', '#eaeaea'
  3. 注意:

    1. 项目中不出现颜色名称:white,red,gray等,直接使用hex色值
    2. 减少rgba写法,带透明度除外
    3. 尽量使用root中的css变量取代色值