mirror of
https://github.com/catppuccin/nim.git
synced 2024-12-22 02:50:44 -06:00
docs: add example screenshot
This commit is contained in:
parent
b8abe92f91
commit
0cb98d4b4e
2 changed files with 111 additions and 1 deletions
|
@ -22,7 +22,7 @@ The `catppuccin` nim library was designed to interface with [`treeform/chroma`](
|
||||||
|
|
||||||
If you do wish to access `catppuccin` colors alongside `chroma` compile with `-d:inheritChroma` (see `./examples/use_chroma.nim`) to use the color types defined by `chroma`.
|
If you do wish to access `catppuccin` colors alongside `chroma` compile with `-d:inheritChroma` (see `./examples/use_chroma.nim`) to use the color types defined by `chroma`.
|
||||||
|
|
||||||
### Example
|
### Examples
|
||||||
|
|
||||||
```nim
|
```nim
|
||||||
import catppuccin
|
import catppuccin
|
||||||
|
@ -30,6 +30,11 @@ import catppuccin
|
||||||
echo mocha.rosewater.color().toHex()
|
echo mocha.rosewater.color().toHex()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Output of `nim r examples/term.nim`:
|
||||||
|
|
||||||
|
![example screenshot](./assets/term.svg)
|
||||||
|
|
||||||
|
|
||||||
<!-- this section is optional -->
|
<!-- this section is optional -->
|
||||||
## 🙋 FAQ
|
## 🙋 FAQ
|
||||||
|
|
||||||
|
|
105
assets/term.svg
Normal file
105
assets/term.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 15 KiB |
Loading…
Reference in a new issue