Skip to content

Commit 3add938

Browse files
Apply suggestions from docs review
Co-authored-by: Charlotte Wickham <[email protected]>
1 parent a2ac380 commit 3add938

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

docs/authoring/brand.qmd

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,12 @@ brand:
101101
---
102102
```
103103

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:
105105

106106
```{.yaml filename="_quarto.yml"}
107-
---
108107
brand:
109108
light: light-brand.yml
110109
dark: dark-brand.yml
111-
---
112110
```
113111

114112
## Brand Elements
@@ -447,7 +445,7 @@ Beyond the automatic application of your brand file, you can also directly acces
447445

448446
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:
449447

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`.
451449
- Use `{{{< brand logo LOGO_NAME >}}}` to return the brand logo named `LOGO_NAME` as an image.
452450

453451
For example, you could use the shortcode to place a brand image you've named `icon` in a dashboard sidebar:

0 commit comments

Comments
 (0)