Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

m2-theme

miracle-git13MIT1.0.0

Element component chalk theme for M2.

element, theme, m2-webui, m2-theme

readme

m2-theme


基于Element样式重写的样式库。

安装

npm install m2-theme

用法

  • 使用Sass导入
@import 'm2-theme';
  • 使用webpack导入
    import 'm2-theme'
    <link rel="stylesheet" href="path/to/node_modules/m2-theme/lib/index.css"/>

按需加载

import 'm2-theme/lib/input.css';
import 'm2-theme/lib/select.css';
// ...