An open API service indexing awesome lists of open source software.

https://github.com/catppuccin/nim

:crown: Soothing pastel theme for Nim
https://github.com/catppuccin/nim

catppuccin hacktoberfest library nim nim-lang theme

Last synced: 11 months ago
JSON representation

:crown: Soothing pastel theme for Nim

Awesome Lists containing this project

README

          


Logo


Catppuccin for nim





## Usage

```sh
nimble install catppuccin
```

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`.

### Examples

```nim
import catppuccin

echo mocha.rosewater.color().toHex()
```

Output of `nim r examples/term.nim`:

![example screenshot](https://raw.githubusercontent.com/catppuccin/nim/main/assets/term.svg)

## 🙋 FAQ

- Q: **_"Where can I find the doc?"_**\
A: [Documentation](https://catppuccin.github.io./nim)

## 💝 Thanks to

- [daylinmorgan](https://github.com/daylinmorgan)

 




Copyright © 2021-present Catppuccin Org