n8n/packages/design-system/theme/README.md

40 lines
634 B
Markdown
Raw Normal View History

2021-08-09 02:29:11 -07:00
# element-theme-n8n
> element component chalk theme by css variable.
[Online preview](https://n8n-io.github.io/element-theme-n8n/)
## Compatibility
CSS Variable
https://caniuse.com/css-variables
## Installation
```shell
npm i element-theme-n8n -S
```
## Usage
Use Sass import
```css
@import 'element-theme-n8n';
```
Or Use webpack
```javascript
import 'element-theme-n8n';
```
Or
```html
<link rel="stylesheet" href="path/to/node_modules/element-theme-chalk/css-variable/lib/index.css">
```
## Import on demand
```javascript
import 'element-theme-n8n/dist/input.css';
import 'element-theme-n8n/dist/select.css';
// ...
```