klyn.gui.windows.themes.KssTheme.colorToken
method
public colorToken(name as String, fallback as Color = null) as Color
Description

Reads a named KSS color token, including nested var() references. Custom-painted widgets can share the exact colors used by native controls.

Parameters
ParameterDescription
nameCSS variable name, such as --surface.
fallbackColor returned when the variable is absent.
Example

paper = theme.colorToken("--surface", Color.white())