Skip to content

color

Shadow color. A shadow cannot hold a gradient, so this is ColorStyleValue without the gradient and null arms.

Path

…elements.<element>.styles.effects.shadows[].color

Value

TokenReference

A design token, written as a $token path plus a $type, as in { $token: Color/On surface, $type: color }. The consuming platform resolves it to a value.

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).

Required.

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.

Decisions

None.

Source

FormatFile
JSON Schemapackages/schema/schema/styles.schema.json
TypeScriptpackages/schema/types/Styles.ts
Specification§4.1a, §11