Skip to content
Discussion options

You must be logged in to vote

It's not a "mode" you can switch.
You need to use scss, see https://quarto.org/docs/output-formats/html-themes-more.html and https://quarto.org/docs/output-formats/html-themes.html.

At the moment, I don't know how to reuse $secondary, $dark, etc. from cosmo theme.
Edit: you can't.

Alternatively, if you need less control, you can use background, foreground, etc., yaml keys from navbar, see https://quarto.org/docs/reference/projects/websites.html#navbar.
So you can set background to primary, light, dark, etc.
Note that this will only change the navbar, nothing else in the theme.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aborruso
Comment options

Answer selected by mcanouil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
html Issues with HTML and related web technology (html/css/scss/js)
2 participants