ColorStack
An ordered list of the colour values painted on one surface, the bottom one at index 0. A stack never nests.
Value
An array of:
GradientValue
One of three cross-platform gradient types: linear, radial or angular. Diamond is intentionally excluded.
ColorObject
An inline resolved color — a colorSpace such as srgb, display-p3 or oklch, plus its components, as in { colorSpace: srgb, components: [1, 0.4, 0], alpha: 1 }. Carried when settings.spec.color asks for an object rather than a string.
ColorString
A color as one string — #FF6600, #FF6600FF, rgb(255, 102, 0), rgba(255, 102, 0, 1), hsla(24, 100%, 50%, 1), hsb(24, 100%, 100%), oklch(0.7 0.15 50 / 1) or oklab(0.7 0.1 0.1 / 1).
TokenReference
Examples
- $token: Color/Surface $type: color- type: LINEAR angle: 180 stops: - position: 0 color: "#00000000" - position: 1 color: "#000000B3"["#1B1B1BFF", "#FFFFFF33"]Themes
A TokenReference written here resolves under the theme in force on this element — the one it selects in themes, or the nearest ancestor’s. The same token path yields a different value under a different theme.
Used by
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |