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

https://github.com/catppuccin/typst

🪶 Soothing pastel theme for Typst
https://github.com/catppuccin/typst

catppuccin hacktoberfest theme typst

Last synced: 2 months ago
JSON representation

🪶 Soothing pastel theme for Typst

Awesome Lists containing this project

README

          


Logo


Catppuccin for Typst







## Previews

🌻 Latte

🪴 Frappé

🌺 Macchiato

🌿 Mocha

## Documentation

Two versions of the documentation are available!

- [Mocha](./manual/manual_mocha.pdf)
- [Latte](./manual/manual_latte.pdf)

Each document is styled using this package!

## Installation & Usage

### General Use

In your project, import the package (be sure to replace the version number with the correct one) with

```typst
#import "@preview/catppuccin:1.0.1": catppuccin, flavors
```

To format your document with a theme, use the following syntax towards the top of your document:

```typst
#show: catppuccin.with(flavors.mocha)
```

Replace `mocha` with the flavour of your choice! This can also be passed as a string literal `"mocha"`.

### Advanced Usage

For users who wish to further extend their documents, graphics, or packages, you can access each flavor's palette to directly use the colors in your own code.

```typst
#import "@preview/catppuccin:1.0.1": flavors, get-flavor

#let flavor = get-flavor("mocha")
// or: #let flavor = flavors.mocha
#let palette = flavor.colors

The current flavor is #flavor.name #flavor.emoji.

#let color-list = (
palette.values().map(v => v.name + " (" + text(fill: v.rgb, v.hex) + ")")
)
Colors: #list(..color-list)
```

For more information, check out the section on the **Flavor Schema** in the manual.

## 💝 Thanks to

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

 




Copyright © 2021-present Catppuccin Org