darkmode_setup: Set up dark mode in quarto

View source: R/setup.R

darkmode_setupR Documentation

Set up dark mode in quarto

Description

See https://quarto.org/docs/output-formats/html-themes.html for more info about themes and setting up dark mode

Usage

darkmode_setup(
  light_theme = "flatly",
  dark_theme = "darkly",
  quarto_yml = "_quarto.yml",
  light_scss = "light.scss",
  dark_scss = "dark.scss",
  default = "light",
  type = c("website", "book")
)

Arguments

light_theme

the light bootswatch theme

dark_theme

the dark bootswatch theme

quarto_yml

the location of the _quarto.yml file

light_scss

the location of the custom scss file for the light theme

dark_scss

the location of the custom scss file for the dark theme

default

whether the light or dark theme is the default

type

the type of quarto document ("website" or "book")


debruine/quartoExtra documentation built on Aug. 3, 2022, 11:36 a.m.