You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/authoring/brand.qmd
+25-3Lines changed: 25 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -593,7 +593,14 @@ Some values from the `_brand.yml` configuration file can be accessed via the `br
593
593
`VARIANT` is optional:
594
594
595
595
- For the `brand color` shortcode, the default is `light`. To return the color from the [dark brand](#dark-brand) use `dark`.
596
-
- For the `brand logo` shortcode, the default is `both`, which will add both light and dark logos with appropriate classes
596
+
- For the `brand logo` shortcode, the default is `both`, which will expand to both light and dark logos with the appropriate [classes for mode-specific content](../output-formats/html-themes.qmd#mode-specific-content) so that the light logo shows in light mode and the dark logo shows in dark mode.
597
+
598
+
::: {.callout-note}
599
+
600
+
If the `VARIANT` is `light` or `dark`, the `brand logo` shortcode will not add a mode-specific class.
601
+
602
+
:::
603
+
597
604
598
605
For example, you could use the shortcode to place a brand image you've named `icon` in a dashboard sidebar:
599
606
@@ -697,11 +704,26 @@ local brand = require('modules/brand/brand')
697
704
localprimary=brand.get_color('primary')
698
705
```
699
706
700
-
## Migrating to `_brand.yml`: use the `brand` string in `theme`
707
+
## Sharing brands across projects
708
+
709
+
::: callout-note
710
+
711
+
Note that Quarto requires all assets, including logos and font files, to live in a single directory tree with `_quarto.yml` at the root. Using a path to a `brand.yml` file outside of that directory tree will not work correctly.
712
+
713
+
:::
714
+
715
+
Quarto 1.8 introduces the [brand extension](../extensions/brand.qmd), a Quarto-specific way to distribute brand metadata and assets using a Git repository.
716
+
717
+
Quarto extensions install to the `_extensions/` subdirectory of your project. You will have a copy of the brand metadata and assets in each project; use [`quarto update`](../extensions/managing.qmd#updating) to update the brand extension from its repository.
718
+
719
+
Quarto 1.9 will introduce `quarto use brand` for a simpler way to share brands. Watch [this page on the prerelease documentation](https://prerelease.quarto.org/docs/authoring/brand.html#sharing-brands-across-projects) for availability.
720
+
721
+
722
+
## Combining brands and themes
701
723
702
724
::: callout-note
703
725
704
-
The following information is only necessary if you are migrating projects created with Quarto 1.5 and earlier to use`_brand.yml`.
726
+
The following information is only necessary if you want to combine bootswatch themes with`_brand.yml`.
Copy file name to clipboardExpand all lines: docs/journals/templates.qmd
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,10 @@ typst-template.typ
136
136
137
137
: The definition of the Typst template function that will be called on the entire document contents. In the default template this function is called `article()` and generates a title block and author list, followed by the document content, optionally laid out in columns.
138
138
139
+
page.typ
140
+
141
+
: Sets properties of the page such as size, margin, numbering, and background logo.
142
+
139
143
typst-show.typ
140
144
141
145
: A show rule for the entire document that captures document metadata and passes it to the function defined in `typst-template.typ`.
0 commit comments