Skip to content

Repository files navigation

Logo
Image Catppuccin for Typst Image

Image Image Image

Image

Previews

馃尰 Latte Image
馃 Frapp茅 Image
馃尯 Macchiato Image
馃尶 Mocha Image

Documentation

Two versions of the documentation are available!

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

#import "@preview/catppuccin:1.1.0": 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".

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.

#import "@preview/catppuccin:1.1.0": 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

Image

Copyright 漏 2021-present Catppuccin Org

Image

About

馃 Soothing pastel theme for Typst

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

70 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages