Replies: 1 comment 4 replies
-
brand.yml includes a The way I've envisioned making this kind of change is through defaults:
bootstrap:
defaults:
navbar-bg: $brand-cardinal It's not currently implemented in Quarto exactly as above (but will be if #11378 is merged). In the current pre-release of Quarto, you can use this formulation: defaults:
bootstrap:
navbar-bg: $brand-cardinal Just be sure to leave yourself a TODO note to revisit if the syntax changes. I should also note that it looks like some of what you tried should have worked. I do think it'd be useful for someone from the Quarto to take a look at your reprex. |
Beta Was this translation helpful? Give feedback.
-
Description
I've been trying to change the navigation bar for a Quarto webpage using
_brand.yml
on Quarto pre-release v1.6.33 to no avail. It seems stuck at#517699
(blue variant), c.f.Website: https://stanford-brand-yml.github.io/quarto-branded-website/
MWE/Code: https://github.com/stanford-brand-yml/quarto-branded-website
I've tried the suggestion at: https://prerelease.quarto.org/docs/authoring/brand.html#in-scss
The other use cases of text elements and supported fields (under Typography?) omit setting a navbar color.
Relevant lines in the MWE:
_brand.yml
_custom.scss
_quarto.yml
Note
Background color for the navbar seems to be set in:
quarto-cli/src/resources/formats/html/bootstrap/_bootstrap-variables.scss
Lines 63 to 67 in 8e51fc2
Beta Was this translation helpful? Give feedback.
All reactions