Skip to content

Shadow

A composite type combining dimension with a color to form a CSS box-shadow, as defined in 9.5.

json
{
  "shadow-md": {
    "$type": "shadow",
    "$value": {
      "offsetX": "0px",
      "offsetY": "4px",
      "blur": "8px",
      "spread": 0,
      "color": "rgb(0, 0, 0, 0.15)"
    }
  }
}
yaml
shadow-md:
  $type: shadow
  $value:
    offsetX: 0px
    offsetY: 4px
    blur: 8px
    spread: 0
    color: "rgb(0, 0, 0, 0.15)"
PropertyTypeDescription
$typestringRequired. "shadow"
$valueobjectRequired. Specify offsetX, offsetY, blur, spread, and color to form a shadow. color is the only required prop.
$descriptionstring(Optional) A description of this token and its intended usage.

Tips & recommendations