public colorToken(name as String, fallback as Color = null) as Color
Reads a named KSS color token, including nested var() references. Custom-painted widgets can share the exact colors used by native controls.
| Parameter | Description |
|---|---|
name | CSS variable name, such as --surface. |
fallback | Color returned when the variable is absent. |
paper = theme.colorToken("--surface", Color.white())