doc: instructions on how to import css file
This commit is contained in:
parent
cedc4b2223
commit
7df14a72dd
1 changed files with 7 additions and 2 deletions
|
@ -46,11 +46,16 @@ console.log(labels.base.macchiato.hex) // #24273A
|
||||||
|
|
||||||
### CSS
|
### CSS
|
||||||
|
|
||||||
Example: `test.css`
|
Import the palettes:
|
||||||
|
|
||||||
```css
|
```css
|
||||||
@import url('https://unpkg.com/@catppuccin/palette@0.1.1/css/catppuccin.css');
|
@import "@catppuccin/palette/style" /* directly from the file */
|
||||||
|
@import url('https://unpkg.com/@catppuccin/palette@0.1.4/css/catppuccin.css'); /* or using unpkg.com */
|
||||||
|
```
|
||||||
|
|
||||||
|
Then use them:
|
||||||
|
|
||||||
|
```css
|
||||||
body {
|
body {
|
||||||
color: var(--ctp-mocha-text);
|
color: var(--ctp-mocha-text);
|
||||||
background: var(--ctp-frappe-base);
|
background: var(--ctp-frappe-base);
|
||||||
|
|
Loading…
Reference in a new issue