Skip Navigation
InitializerInitializer

init(name:isDarkModeOnly:css:)

Creates a stylesheet.

init(
    name: String,
    isDarkModeOnly: Bool = false,
    css: String
)

Parameters

name

The name used to identify the stylesheet in the generated CSS.

isDarkModeOnly

Whether to include the stylesheet only with dark mode styles.

css

The CSS text.