ThemeConfig

docblock

Configuration for theming and appearance.

Fields

  • bootswatch::String: Bootswatch theme name (default: “” = use default styles)
  • dark_mode::Bool: Enable light/dark mode toggle (default: true)
  • primary::String: Primary color (CSS color value)
  • bg::String: Background color
  • fg::String: Foreground/text color
  • accent::String: Accent/link color
  • font_base::String: Base font family
  • font_heading::String: Heading font family
  • font_code::String: Code font family
  • code_highlight::String: Syntax highlighting theme (default: “github”)
  • custom_css::String: Additional CSS to include
  • custom_scss::String: Additional SCSS variables
  • use_default_styles::Bool: Apply default QuartoDocBuilder CSS (default: true)

Notes

When bootswatch is empty (default), the default QuartoDocBuilder styles are applied. When any bootswatch theme is specified (e.g., “flatly”, “cosmo”), the default styles are NOT applied.