InitializerInitializerinit(accent
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
accentColourThe accent colour for links and highlights (CSS colour value).
includeDarkModeWhether to generate dark mode styles.
customCSSOptional custom CSS to append.
themeSettingsOptional theme settings from a theme-settings.json file.
stylesheetsThe theme’s own stylesheets in application order.