Clarify _brand.yml
Placement for SCSS Variable Support in Documentation
#1509
Replies: 2 comments 9 replies
-
The document is talking about layering. Can you share an example of what you tried that required the following order ? This way we could add the correct use case in the documentation with other explained order. thanks |
Beta Was this translation helpful? Give feedback.
-
Hi @cderv, I created an example in a test repository to illustrate the issue. Here is the relevant excerpt from the Quarto documentation:
For this to work, the For example, the following configuration works as expected: https://github.com/danielvartan/test/blob/33e699851668df62d80817109565dc68a586f45c/_quarto.yml#L62 But if you modify the line to: theme: [cosmo, brand, scss/styles.scss] The color variables in the SCSS file will lose their references, resulting in an error:
The documentation should clarify that the order of the Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hi there,
Just a quick note regarding https://quarto.org/docs/authoring/brand.html#in-scss.
It would be helpful to inform users that to utilize colors as variables in SCSS files, the
_brand.yml
file must be listed last in the theme configuration. Otherwise, the variables won’t work as expected.Example:
Beta Was this translation helpful? Give feedback.
All reactions