2020-08-28 11:09:05 +08:00
|
|
|
# element-theme-chalk
|
|
|
|
|
2021-08-03 09:12:34 +08:00
|
|
|
> element component chalk theme.
|
2020-08-28 11:09:05 +08:00
|
|
|
|
|
|
|
## Installation
|
2021-08-03 09:12:34 +08:00
|
|
|
|
2020-08-28 11:09:05 +08:00
|
|
|
```shell
|
2021-08-03 09:12:34 +08:00
|
|
|
npm i element-plus
|
2020-08-28 11:09:05 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
Use Sass import
|
2021-08-03 09:12:34 +08:00
|
|
|
|
2020-08-28 11:09:05 +08:00
|
|
|
```css
|
2021-09-28 20:42:12 +08:00
|
|
|
@use 'element-plus/lib/theme-chalk/index.scss';
|
2020-08-28 11:09:05 +08:00
|
|
|
```
|
|
|
|
|
2021-08-03 09:12:34 +08:00
|
|
|
Or Use vite/webpack
|
|
|
|
|
2020-08-28 11:09:05 +08:00
|
|
|
```javascript
|
2021-08-03 09:12:34 +08:00
|
|
|
import 'element-plus/lib/theme-chalk/index.css'
|
2020-08-28 11:09:05 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
Or
|
2021-08-03 09:12:34 +08:00
|
|
|
|
2020-08-28 11:09:05 +08:00
|
|
|
```html
|
2021-08-03 09:12:34 +08:00
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
|
|
|
href="https://unpkg.com/element-plus/lib/theme-chalk/index.css"
|
|
|
|
/>
|
2020-08-28 11:09:05 +08:00
|
|
|
```
|
|
|
|
|
2021-08-03 09:12:34 +08:00
|
|
|
## Import on demand
|
|
|
|
|
2020-08-28 11:09:05 +08:00
|
|
|
```javascript
|
2021-08-03 09:12:34 +08:00
|
|
|
import 'element-plus/lib/theme-chalk/input.css'
|
|
|
|
import 'element-plus/lib/theme-chalk/select.css'
|
2020-08-28 11:09:05 +08:00
|
|
|
|
|
|
|
// ...
|
|
|
|
```
|