Skip Navigation
Type MethodMethod

extractVariables(from:colorScheme:)

Extracts all CSS variable definitions from theme settings.

static func extractVariables(
    from settings: ThemeSettings.Root,
    colorScheme: ColorScheme
) -> [String : String]

Parameters

settings

The theme settings.

colorScheme

The color scheme to extract variables for.

Return Value

A dictionary mapping variable names to values.