An Effects object holds shadow and blur definitions. It appears on the effects style property as an alternative to a TokenReference.
Properties
| Name | Category | Description | Default |
|---|
shadows | shadow | Array of drop and inner shadow definitions | absent (no shadows) |
layerBlur | blur | Layer blur (filter: blur()) | absent (no blur) |
backgroundBlur | blur | Background blur (backdrop-filter: blur()) | absent (no blur) |
Values
| Name | Description | Example |
|---|
Shadow | A single shadow definition | { visible: true, offsetX: 0, offsetY: 2, blur: 4, spread: 0, color: "#00000040" } |
Blur | A blur definition | { visible: true, radius: 8 } |
Shadow
Defaults below are the evaluator’s field defaults before a Figma shadow effect is read — see Shadow in specs-from-figma.
| Property | Type | Required | Description | Default |
|---|
visible | boolean | Yes | Whether the shadow is active | true |
inset | boolean | No | true for inner shadow; absent or false for drop shadow | absent (drop shadow) |
offsetX | number | TokenReference | Yes | Horizontal offset | 0 |
offsetY | number | TokenReference | Yes | Vertical offset | 0 |
blur | number | TokenReference | Yes | Blur radius | 0 |
spread | number | TokenReference | Yes | Spread distance | 0 |
color | string | TokenReference | Yes | Shadow color (#RRGGBBAA or token) | transparent black (#00000000) |
Blur
Defaults below are the evaluator’s field defaults before a Figma blur effect is read — see Blur in specs-from-figma.
| Property | Type | Required | Description | Default |
|---|
visible | boolean | Yes | Whether the blur is active | true |
radius | number | TokenReference | Yes | Blur radius | 0 |
Example
$token: DS Color.Shadow.Default
Further Reading