Skip to content

Commit

Permalink
themes: clarify example
Browse files Browse the repository at this point in the history
  • Loading branch information
knuesel committed Jul 1, 2024
1 parent bfa4274 commit 6dca59a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ The theme functions that make slides (`slide`, `title-slide` and possibly others
For example an `ocean` theme from a `fancy-themes` package could be used like this:

```typst
import "minideck"
import "fancy-themes"
#import "@preview/minideck:0.2.1"
#import "@preview/fancy-themes:0.1.0" // hypothetical package
#let (template, slide, title-slide) = minideck.config(theme: fancy-themes.ocean)
#show: template
```

or when theme configuration is required:

```typst
import "minideck"
import "fancy-themes"
#import "@preview/minideck:0.2.1"
#import "@preview/fancy-themes:0.1.0" // hypothetical package
#let (template, slide, title-slide) = minideck.config(
theme: fancy-themes.ocean.with(variant: "dark"),
)
Expand Down

0 comments on commit 6dca59a

Please sign in to comment.