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
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -101,14 +101,12 @@ brand:
101
101
---
102
102
```
103
103
104
-
Light and dark brands can also be specifieds in a project:
104
+
Light and dark brands can also be specified at the project-level:
105
105
106
106
```{.yaml filename="_quarto.yml"}
107
-
---
108
107
brand:
109
108
light: light-brand.yml
110
109
dark: dark-brand.yml
111
-
---
112
110
```
113
111
114
112
## Brand Elements
@@ -447,7 +445,7 @@ Beyond the automatic application of your brand file, you can also directly acces
447
445
448
446
Some values from the `_brand.yml` configuration file can be accessed via the `brand` shortcode. In particular, you can access colors and logos by name:
449
447
450
-
- Use `{{{< brand color COLOR_NAME BRAND_MODE >}}}` to return the brand color named `COLOR_NAME` as a string. Provide `dark` for `BRAND_MODE` in order to return the color from the [dark brand](#dark-brand); otherwise the light brand will be used.
448
+
- Use `{{{< brand color COLOR_NAME BRAND_MODE >}}}` to return the brand color named `COLOR_NAME` as a string. The `BRAND_MODE` is optional and defaults to `light`. To return the color from the [dark brand](#dark-brand) use `dark`.
451
449
- Use `{{{< brand logo LOGO_NAME >}}}` to return the brand logo named `LOGO_NAME` as an image.
452
450
453
451
For example, you could use the shortcode to place a brand image you've named `icon` in a dashboard sidebar:
0 commit comments