Universe

Rosé Pine for Typst

All natural pine, faux fur and a bit of soho vibes for the classy minimalist

Usage

  1. Open a Typst document
  2. Import this library:
#import "@preview/rose-pine:0.2.0": apply
  1. Apply the theme to the document using #show:
#show: apply()
  1. Use other colors anywhere you want:
#import "@preview/rose-pine:0.2.0": rose-pine

#text(fill: rose-pine.love)[Some red text]

You can also use other variants by importing them/passing their name to apply(). E.g.

#import "@preview/rose-pine:0.2.0": apply, rose-pine-dawn
#show: apply(variant: "rose-pine-dawn")

Gallery

Rose Pine example Typst document

Rose Pine Moon example Typst document

Rose Pine Dawn example Typst document

Thanks to

Contributing

Prefer using @rose-pine/build when possible

Modify src/template.typ using Rosé Pine variables, then build variants:

npx @rose-pine/build@0.8.2 -t src/template.typ -o src/themes -p $ -f hex

Generated by @rose-pine/build@0.8.2

To rebuild the syntax highlighting themes you similarly need to run

npx @rose-pine/build@0.8.2 -t src/rose-pine-template.tmTheme -o src/themes -p $ -f hex --help