Optional
idThe optional unique identifier for the color.
Optional
nameThe optional name of the color.
Optional
pathThe optional path or category to which this color belongs.
Optional
colorThe optional solid color, represented as a string (e.g., '#FF5733').
Optional
opacityThe optional opacity level of the color, ranging from 0 (fully transparent) to 1 (fully opaque). Defaults to 1 if omitted.
Optional
refThe optional reference ID for an external color definition.
Optional
refThe optional reference to an external file for the color definition.
Optional
gradientThe optional gradient fill defined by a Gradient object.
Optional
imageThe optional image fill defined by a ImageData object.
Represents color properties in Penpot. This interface includes properties for defining solid colors, gradients, and image fills, along with metadata.