Skip Navigation
InitializerInitializer

init(themeSettings:stylesheets:includeDarkMode:customCSS:)

Creates a theme configuration from theme settings.

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

Parameters

themeSettings

The theme settings to use.

stylesheets

The theme’s own stylesheets in application order.

includeDarkMode

Whether to include dark mode styles.

customCSS

Optional custom CSS to append.