Skip Navigation
InitializerInitializer

init(accentColour:includeDarkMode:customCSS:themeSettings:stylesheets:)

Creates a new theme configuration.

init(
    accentColour: String,
    includeDarkMode: Bool,
    customCSS: String? = nil,
    themeSettings: ThemeSettings.Root? = nil,
    stylesheets: [ThemeStylesheet] = []
)

Parameters

accentColour

The accent colour for links and highlights (CSS colour value).

includeDarkMode

Whether to generate dark mode styles.

customCSS

Optional custom CSS to append.

themeSettings

Optional theme settings from a theme-settings.json file.

stylesheets

The theme’s own stylesheets in application order.