Ui Theme Tokens
data class UiThemeTokens(val colors: UiColors, val typography: UiTypography, val stateColors: UiStateColors = UiStateColorDefaults.from(colors), val shapes: UiShapes = UiShapeDefaults.default(), val controls: UiControlSizing = UiControlSizeDefaults.default(), val interactions: UiInteractionTokens = defaultInteractionTokens(), val overlays: UiOverlays = UiOverlayDefaults.default(), val metadata: UiThemeMetadata = UiThemeMetadata())(source)
Immutable theme snapshot consumed by component defaults and renderers.
Constructors
Link copied to clipboard
constructor(colors: UiColors, typography: UiTypography, stateColors: UiStateColors = UiStateColorDefaults.from(colors), shapes: UiShapes = UiShapeDefaults.default(), controls: UiControlSizing = UiControlSizeDefaults.default(), interactions: UiInteractionTokens = defaultInteractionTokens(), overlays: UiOverlays = UiOverlayDefaults.default(), metadata: UiThemeMetadata = UiThemeMetadata())
Properties
Link copied to clipboard
core component sizing tokens
Link copied to clipboard
transient interaction-state opacity tokens
Link copied to clipboard
origin, brightness, and revision diagnostics
Link copied to clipboard
modal overlay tokens
Link copied to clipboard
state-aware colors; derived from colors by default
Link copied to clipboard
component-independent text styles
Functions
Link copied to clipboard
fun UiThemeTokens.override(colors: UiColors? = null, stateColors: UiStateColors? = null, typography: UiTypography? = null, shapes: UiShapes? = null, controls: UiControlSizing? = null, interactions: UiInteractionTokens? = null, overlays: UiOverlays? = null): UiThemeTokens
Creates an immutable partial override of this theme snapshot.