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

element-theme-se-v3

v1.0.2

Published

element-theme-se-v3 是一套遵循施耐德已发布的最新UI设计规范正式版本 QDS UI Kit V3.16.0的主题。它基于element-theme-chalk V2.15.2,对大多数组件都进行了改版定制。

Downloads

3

Readme

element-theme-se-v3

Hi! 首先感谢你使用 element-theme-se-v3。

element-theme-se-v3 是一套遵循施耐德已发布的最新UI设计规范正式版本 QDS UI Kit V3.16.0的主题。它基于element-theme-chalk V2.15.2,对大多数组件都进行了改版定制。

框架/插件/文档 (部分需要权限)

文件

  • element-variables.scss Element 的样式变量
  • theme Element样式: 由element提供的主题生成工具编译得到的css文件
  • pathes 补丁: 记录了对于node_modules/element-theme-chalk的修改
  • se-icon 图标: 施耐德图标库 SE Icon Font
  • web-ui.zip SE design token: 施耐德前端框架web-ui的变量和方法,可用于深浅色切换

使用方法

  • 引入Element样式
// ----main.js----
import 'element-theme-se-v3/theme/index.css'
  • 引入icon图标
// ----main.js----
import 'element-theme-se-v3/se-icon/se-icon-styles.css'
  • 引入web-ui design token
// -----自行解压web-ui.zip,在根样式文件(@/style/index.scss)中引入,并注册为css变量----
@import "./web-ui/_theme.scss";


// Theme
:root {

  @each $element,
  $value in $seTheme {
    @include define-custom-property($element, $value);
  };
}

.se-theme-dark,
html[data-theme='dark'] {

  @each $element,
  $value in $seThemeDark {
    @include define-custom-property($element, $value);
  };
}
  • 页面内使用
.myElement{
  // add fallback for older browser
  color: map-get($seTheme, 'primary');
  background-color: map-get($seTheme, 'primary');
  border-color: map-get($seTheme, 'primary');
  // apply css variable
  background-color: var(--se-primary);
  color: var(--se-primary-contrast);
  border-color: var(--se-border);
}

二次定制主题

  • 安装
// 安装element和补丁
npm install

// 仅安装补丁
npm run postinstall
  • 调整样式 公共变量: 改动 element-variables.scss 组件: 改动 node_modules/element-theme-chalk 下对应组件的scss文件

  • 编译

npm run build-theme

// 或

et
  • 生成补丁
npm run build-node

// 编译并生成补丁
npm run build

联系我们

[email protected]