Watts-College / cpp-528-fall-2022

https://watts-college.github.io/cpp-528-fall-2022/
1 stars 2 forks source link

Question about light/dark option for .html document #14

Closed jacobtnyoung closed 1 year ago

jacobtnyoung commented 2 years ago

For the lab 4 tutorial the .html page has an option to toggle between light and dark background. Is that a knitr option @lecy?

lecy commented 2 years ago

Here are the settings in the RMD doc:

---
title: 'Lab 05: Adding Federal Program Data'
date: '`r format(Sys.time(), "%B %d, %Y")`'
output:
  rmdformats::downcute:
    self_contained: true
    thumbnails: true
    lightbox: true
    gallery: false
    highlight: tango
    df_print: paged
    includes:
      after_body: 'footer.html'
---

And another example of toggling between light and dark themes in ggplot:

https://sfthemes.amirmasoudabdol.name/articles/dynamic_light_and_dark_plots_in_web.html

jacobtnyoung commented 2 years ago

🤘🏼 thanks @lecy