Skip to content

Commit d65b00f

Browse files
document typst brand-logo and brand-logo-images
(cherry picked from commit 0e9318d)
1 parent fb16fb9 commit d65b00f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/authoring/brand.qmd

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,26 @@ For example, you could make a rectangle filled with your `primary` brand color:
695695
```
696696
````
697697

698+
Brand logos are set in dictionaries called `brand-logo` and `brand-logo-images`.
699+
700+
For example, you can write Typst code to insert an image using its resolved path and alt text from `brand.logo.images`:
701+
702+
````{.markdown filename="document.qmd"}
703+
---
704+
format: typst
705+
brand:
706+
logo:
707+
images:
708+
custom:
709+
path: custom.png
710+
alt: custom logo
711+
---
712+
713+
```{=typst}
714+
#image(brand-logo-images.custom.path, alt=brand-logo-images.custom.alt)
715+
```
716+
````
717+
698718
### Lua API
699719

700720
Filters and shortcodes can access brand values using the `brand` Lua module.

0 commit comments

Comments
 (0)