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

@jackson_ezh/theme-variable

v0.0.1

Published

主题样式变量

Downloads

5

Readme

@bc/theme-variable

基于ElementPlus主题变量预设

颜色变量(暗色模式支持)

针对背景色、分割线(边框)颜色、文字颜色、文字反转色、投影提供了css变量预设,开发过程中如果涉及到相关样式优先使用以下变量,能够有较好的主题切换支持

变量预设文件 src/var.scss

--app-c-bg: var(--app-c-black);
--app-c-bg-soft: var(--app-c-black-soft);
--app-c-bg-mute: var(--app-c-black-mute);
--app-c-divider: var(--app-c-divider-dark-1);
--app-c-divider-light: var(--app-c-divider-dark-2);
--app-c-divider-inverse: var(--app-c-divider-light-1);
--app-c-divider-inverse-light: var(--app-c-divider-light-2);
--app-c-text-1: var(--app-c-text-dark-1);
--app-c-text-2: var(--app-c-text-dark-2);
--app-c-text-3: var(--app-c-text-dark-3);
--app-c-text-4: var(--app-c-text-dark-4);
--app-c-text-code: var(--app-c-text-dark-code);
--app-c-text-inverse-1: var(--app-c-text-light-1);
--app-c-text-inverse-2: var(--app-c-text-light-2);
--app-c-text-inverse-3: var(--app-c-text-light-3);
--app-c-text-inverse-4: var(--app-c-text-light-4);
--app-c-brand-highlight: var(--app-c-brand-light);

ElementPlus变量

ElementPlus主题由scss驱动,通过预设颜色能够计算出其他衍生颜色,在部分需要使用主题颜色的衍生色时,下面这些css变量很有用

--el-color-primary: #2A82E4;
--el-color-primary-light-3: #6aa8ec;
--el-color-primary-light-5: #95c1f2;
--el-color-primary-light-7: #bfdaf7;
--el-color-primary-light-8: #d4e6fa;
--el-color-primary-light-9: #eaf3fc;
--el-color-primary-dark-2: #2268b6;
--el-color-success: #43CF7C;
--el-color-success-light-3: #7bdda3;
--el-color-success-light-5: #a1e7be;
--el-color-success-light-7: #c7f1d8;
--el-color-success-light-8: #d9f5e5;
--el-color-success-light-9: #ecfaf2;
--el-color-success-dark-2: #36a663;
--el-color-warning: #FF8D1A;
--el-color-warning-light-3: #ffaf5f;
--el-color-warning-light-5: #ffc68d;
--el-color-warning-light-7: #ffddba;
--el-color-warning-light-8: #ffe8d1;
--el-color-warning-light-9: #fff4e8;
--el-color-warning-dark-2: #cc7115;
--el-color-danger: #FF5733;
--el-color-danger-light-3: #ff8970;
--el-color-danger-light-5: #ffab99;
--el-color-danger-light-7: #ffcdc2;
--el-color-danger-light-8: #ffddd6;
--el-color-danger-light-9: #ffeeeb;
--el-color-danger-dark-2: #cc4629;
--el-color-error: #FF5733;
--el-color-error-light-3: #ff8970;
--el-color-error-light-5: #ffab99;
--el-color-error-light-7: #ffcdc2;
--el-color-error-light-8: #ffddd6;
--el-color-error-light-9: #ffeeeb;
--el-color-error-dark-2: #cc4629;
--el-color-info: #A7B3CA;
--el-color-info-light-3: #c1cada;
--el-color-info-light-5: #d3d9e5;
--el-color-info-light-7: #e5e8ef;
--el-color-info-light-8: #edf0f4;
--el-color-info-light-9: #f6f7fa;
--el-color-info-dark-2: #868fa2;