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

https://github.com/rose-pine/typst

Soho vibes for Typst
https://github.com/rose-pine/typst

theme

Last synced: 6 months ago
JSON representation

Soho vibes for Typst

Awesome Lists containing this project

README

          



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:
```typst
#import "@preview/rose-pine:0.2.0": apply
```
3. Apply the theme to the document using `#show`:
```typst
#show: apply()
```
4. Use other colors anywhere you want:
```typst
#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.
```typst
#import "@preview/rose-pine:0.2.0": apply, rose-pine-dawn
#show: apply(variant: "rose-pine-dawn")
```

## Gallery

![Rose Pine example Typst document](https://github.com/oplik0/rose-pine-typst/assets/25460763/0f3f4c3a-a923-4587-bd80-92e60165dc7e)

![Rose Pine Moon example Typst document](https://github.com/oplik0/rose-pine-typst/assets/25460763/9b842b68-4f57-4536-955f-7f510b77a579)

![Rose Pine Dawn example Typst document](https://github.com/oplik0/rose-pine-typst/assets/25460763/5b2d211d-d645-4b72-9b58-b73bccfae1ae)

## Thanks to

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

## Contributing

> Prefer using [@rose-pine/build](https://github.com/rose-pine/build) when possible

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

```sh
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](https://github.com/rose-pine/build)_

To rebuild the syntax highlighting themes you similarly need to run
```sh
npx @rose-pine/build@0.8.2 -t src/rose-pine-template.tmTheme -o src/themes -p $ -f hex --help
```