Skip to content

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: shadow

Effects

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: 4

null (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 effectStyleId with effects — Add Shadow, Blur, and Effects Types
  • ADR-006 — Unified Token Reference Type — Replace VariableStyle and FigmaStyle with TokenReference
  • ADR-113 — Style defaults belong to the schema

Further reading

Rules

RuleStatement
DSPEC-44Every Styles property declares a default valid against its own schema
DSPEC-45A declared default is a literal, never a reference or conditional

Source

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