cct-datascience / uaz-revealjs

University of Arizona theme for Quarto revealjs slides
Creative Commons Zero v1.0 Universal
3 stars 1 forks source link

Dark and light themes #8

Open Aariq opened 2 years ago

Aariq commented 2 years ago

Currently setting theme: dark makes the background black and theme: light results in an error. Ideally these would be two different color themes, both UAZ official colors. Not sure how to do this in SCSS yet.

Aariq commented 2 years ago

Hmm... I guess that's not how themes work. I think I could just create additional custom themes inside of _extensions. E.g. if I created a uaz-light directory, then I'd use it with format: uaz-light-revealjs. Still would like to do this eventually.

Aariq commented 2 years ago

Looks like you can add a light/dark switch by providing two themes.

theme:
  light: flatly
  dark: darkly

and those can be customized. E.g.:


theme:
  light: cosmo
  dark: [cosmo, theme-dark.scss]

https://quarto.org/docs/output-formats/html-themes.html