Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cwickham committed Oct 31, 2024
1 parent 93fcd62 commit 6d3b0ad
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions docs/authoring/brand.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,11 @@ You can access both named and semantic colors from your brand in SCSS and using

<https://posit-dev.github.io/brand-yml/brand/logo.html>

Use `logo` to specify the logo for your brand: *This doesn't pass validation*
Use `logo` to specify the logo for your brand:

``` {.yaml filename="_brand.yml"}
logo: logo.png
logo:
medium: logo.png
```

You can specify a local file path, relative to the location of `_brand.yml` or a URL (*is this true?*).
Expand Down Expand Up @@ -261,7 +262,7 @@ typography:
source: google
```

The properties you can set for a font under `fonts` depends on the `source`. You can see the other properties available in our [Reference for Brand](docs/reference/metadata/brand.qmd#font-resource-definitions)
The properties you can set for a font under `fonts` depends on the `source`. You can see the other properties available in our [Reference for Brand](docs/reference/metadata/brand.qmd#font-resource-definitions).

You can then refer to fonts by `family` in the remaining typography options:

Expand Down Expand Up @@ -444,6 +445,14 @@ $navbar-bg: $brand-blue;

### Typst

Brand colors are available in `brand-color`:

````markdown
```{=typst}
#set text(fill: brand-color.primary)
```
````

### Lua API

``` lua
Expand Down

0 comments on commit 6d3b0ad

Please sign in to comment.