mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
8583c70fdc
* feat(theme-chalk): use @use instead of @import & remove /**/ comment * refactor(theme-chalk): refactor scss with @use module * fix(docs): scss in docs toggle to '@use' * docs: add custom theme on demand * docs: add unplugin-element-plus
42 lines
537 B
Markdown
42 lines
537 B
Markdown
# element-theme-chalk
|
|
|
|
> element component chalk theme.
|
|
|
|
## Installation
|
|
|
|
```shell
|
|
npm i element-plus
|
|
```
|
|
|
|
## Usage
|
|
|
|
Use Sass import
|
|
|
|
```css
|
|
@use 'element-plus/lib/theme-chalk/index.scss';
|
|
```
|
|
|
|
Or Use vite/webpack
|
|
|
|
```javascript
|
|
import 'element-plus/lib/theme-chalk/index.css'
|
|
```
|
|
|
|
Or
|
|
|
|
```html
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://unpkg.com/element-plus/lib/theme-chalk/index.css"
|
|
/>
|
|
```
|
|
|
|
## Import on demand
|
|
|
|
```javascript
|
|
import 'element-plus/lib/theme-chalk/input.css'
|
|
import 'element-plus/lib/theme-chalk/select.css'
|
|
|
|
// ...
|
|
```
|