ThemePostRendererResource

A PostRendererResource that includes CSS theme components for styling the HTML output.

Theme components include:

  • Global styles (always included)

  • Layout-specific styles (e.g., latex)

  • Color scheme styles (e.g., paperwhite)

  • Locale-specific styles (e.g., for CJK typefaces)

A theme.css manifest file is generated that imports all active theme components.

Parameters

theme

the document theme specifying color and layout preferences

locale

the optional locale for locale-specific styling (e.g., Chinese typefaces)

Constructors

Link copied to clipboard
constructor(theme: DocumentTheme, locale: Locale?)

Functions

Link copied to clipboard
open override fun includeTo(resources: MutableSet<OutputResource>, rendered: CharSequence)

Collects resources and adds them to the output set.