effects
Shadows and blurs applied to the element.
Path
…elements.<element>.styles.effects
Elements Supported
component · container · ellipse · glyph · line · polygon · rectangle · slot · star · text · vector
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.
$token: Light/elevation.shadow.overlay$type: shadowEffects
One or more effects properties, inline
shadows: - visible: true offsetX: 0 offsetY: 1 blur: 2 spread: 0 color: "#0000003D" - visible: true offsetX: 0 offsetY: 8 blur: 24 spread: -4 color: "#0000001F"layerBlur: visible: true radius: 4null (default)
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.
Platform bindings
Figma
Disposition: bound · Realised by: Effects.apply
Accepts Effects, TokenReference, or null.
CSS
Disposition: approximated · Realised by: effects
Emits box-shadow, filter and backdrop-filter. A null resets all three. Loss: a shadow whose offset, blur or spread cannot be resolved substitutes 0, and an unresolvable colour substitutes currentColor, so an unresolved value is masked as a plausible one rather than reported. A blur whose radius fails to resolve emits nothing at all and no reset.
Decisions
- ADR-002 — Replace
effectStyleIdwitheffects— AddShadow,Blur, andEffectsTypes - ADR-006 — Unified Token Reference Type — Replace
VariableStyleandFigmaStylewithTokenReference - ADR-113 — Style defaults belong to the schema
Further reading
- ADR 002 — Replace effectStyleId with effects — introduces the grouped
Effects,Shadow, andBlurtypes
Rules
| Rule | Statement |
|---|---|
| DSPEC-44 | Every Styles property declares a default valid against its own schema |
| DSPEC-45 | A declared default is a literal, never a reference or conditional |
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/styles.schema.json |
| TypeScript | packages/schema/types/Styles.ts |
| Specification | §4.1a, §11 |