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 |
|---|
shadows | shadow | Array of drop and inner shadow definitions |
layerBlur | blur | Layer blur (filter: blur()) |
backgroundBlur | blur | Background blur (backdrop-filter: 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
| Property | Type | Required | Description |
|---|
visible | boolean | Yes | Whether the shadow is active |
inset | boolean | No | true for inner shadow; absent or false for drop shadow |
offsetX | number | TokenReference | Yes | Horizontal offset |
offsetY | number | TokenReference | Yes | Vertical offset |
blur | number | TokenReference | Yes | Blur radius |
spread | number | TokenReference | Yes | Spread distance |
color | string | TokenReference | Yes | Shadow color (#RRGGBBAA or token) |
Blur
| Property | Type | Required | Description |
|---|
visible | boolean | Yes | Whether the blur is active |
radius | number | TokenReference | Yes | Blur radius |
Example
$token: DS Color.Shadow.Default
Further Reading