2023-04-25 14:43:16 -05:00
< h3 align = "center" >
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/logos/exports/1544x1544_circle.png" width = "100" alt = "Logo" / > < br / >
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height = "30" width = "0px" / >
2023-04-26 20:37:51 -05:00
Catppuccin for < a href = "https://github.com/nim-lang/nim" > nim< / a >
2023-04-25 14:43:16 -05:00
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/misc/transparent.png" height = "30" width = "0px" / >
< / h3 >
< p align = "center" >
2023-04-26 20:37:51 -05:00
< a href = "https://github.com/catppuccin/nim/stargazers" > < img src = "https://img.shields.io/github/stars/catppuccin/nim?colorA=363a4f&colorB=b7bdf8&style=for-the-badge" > < / a >
< a href = "https://github.com/catppuccin/nim/issues" > < img src = "https://img.shields.io/github/issues/catppuccin/nim?colorA=363a4f&colorB=f5a97f&style=for-the-badge" > < / a >
< a href = "https://github.com/catppuccin/nim/contributors" > < img src = "https://img.shields.io/github/contributors/catppuccin/nim?colorA=363a4f&colorB=a6da95&style=for-the-badge" > < / a >
2023-04-25 14:43:16 -05:00
< / p >
## Usage
2023-04-26 20:03:36 -05:00
```sh
nimble install https://github.com/catppuccin/nim
```
The `catppuccin` nim library was designed to interface with [`treeform/chroma` ](https://github.com/treeform/chroma ), however it is not required for basic usage. Some of the basic color types and transformations have been ported from `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` .
2023-04-26 20:17:31 -05:00
### Examples
2023-04-26 20:03:36 -05:00
```nim
import catppuccin
echo mocha.rosewater.color().toHex()
```
2023-04-25 14:43:16 -05:00
2023-04-26 20:17:31 -05:00
Output of `nim r examples/term.nim` :
![example screenshot ](./assets/term.svg )
2023-04-25 14:43:16 -05:00
<!-- this section is optional -->
## 🙋 FAQ
- Q: **_"Where can I find the doc?"_** \
2023-04-26 20:03:36 -05:00
A: Run `nimble docs`
2023-04-25 14:43:16 -05:00
## 💝 Thanks to
- [daylinmorgan ](https://github.com/daylinmorgan )
< p align = "center" >
< img src = "https://raw.githubusercontent.com/catppuccin/catppuccin/main/assets/footers/gray0_ctp_on_line.svg?sanitize=true" / >
< / p >
< p align = "center" >
Copyright © 2021-present < a href = "https://github.com/catppuccin" target = "_blank" > Catppuccin Org< / a >
< / p >
< p align = "center" >
< a href = "https://github.com/catppuccin/catppuccin/blob/main/LICENSE" > < img src = "https://img.shields.io/static/v1.svg?style=for-the-badge&label=License&message=MIT&logoColor=d9e0ee&colorA=363a4f&colorB=b7bdf8" / > < / a >
< / p >