Skip to content

Commit eac0b88

Browse files
document brand-mode for typst
remove limitation fixed by quarto-dev/quarto-cli#11811
1 parent 21e9527 commit eac0b88

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

docs/authoring/brand.qmd

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,6 @@ logo:
200200

201201
You can specify a local file path, relative to the location of `_brand.yml`, or a URL.
202202

203-
::: {.callout-warning}
204-
205-
## Limitation
206-
207-
Logos specified as URLs are not currently supported in `format: typst`.
208-
209-
:::
210-
211203
A single logo may not work well in all locations so **brand.yml** allows you to set three different logos: `small`, `medium` and `large`. For example:
212204

213205
``` {.yaml filename="_brand.yml"}
@@ -529,6 +521,14 @@ You can learn more about layering themes in [More About Quarto Themes](/docs/out
529521

530522
### Typst
531523

524+
If the document has [both light and dark brands](#dark-brand), use `brand-mode: dark` to produce a dark-background PDF that matches the dark brand of your website.
525+
526+
``` yaml
527+
format:
528+
typst:
529+
brand-mode: dark
530+
```
531+
532532
In Typst documents, brand colors are set in a [dictionary](https://typst.app/docs/reference/foundations/dictionary/) called `brand-color`.
533533
You can access them directory in raw Typst blocks using the syntax `brand-color.COLOR_NAME`.
534534
For example, you could make a rectangle filled with your `primary` brand color:

0 commit comments

Comments
 (0)