
Catppuccin for Typst
Two versions of the documentation are available!
Each document is styled using this package!
In your project, import the package (be sure to replace the version number with the correct one) with
#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:
#show: catppuccin.with(flavors.mocha)
Replace mocha
with the flavour of your choice! This can also be passed as a string literal "mocha"
.
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.
#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.
Copyright © 2021-present Catppuccin Org