mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
3d1b3d4a58
* refactor(theme-chalk): scss css var namespace * fix(theme-chalk): compile getCssVar * fix(theme-chalk): more --el namespace replace & getCssVarWithDefault * fix(theme-chalk): use cssVarBlockName & cssVar rewrite button css vars * fix(theme-chalk): replace empty svg fill color with ns * chore: use cssVarName for --el-color-white * chore: fix namespace reactive * chore: use defaultNamespace |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
gulpfile.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
element-theme-chalk
element component chalk theme.
Installation
npm i element-plus
Usage
Use Sass import
@use 'element-plus/lib/theme-chalk/index.scss';
Or Use vite/webpack
import 'element-plus/lib/theme-chalk/index.css'
Or
<link
rel="stylesheet"
href="https://unpkg.com/element-plus/lib/theme-chalk/index.css"
/>
Import on demand
import 'element-plus/lib/theme-chalk/input.css'
import 'element-plus/lib/theme-chalk/select.css'
// ...