Search Docs
Loading...
Skip to content

Type Alias: AssetStylePresetPropertyValue

type AssetStylePresetPropertyValue =
| boolean
| number
| string
| RGBColor
| RGBAColor
| null;

A value a style preset can set on a property: a boolean, number, string (including enum values) or an RGB(A) color. Colors must be RGB(A) ({ r, g, b, a? }); CMYK and spot colors are not supported in presets. Structs and source sets cannot be set from a preset. A null value is ignored for regular properties; for the virtual text/path property it clears the baseline path.