Optional
colorThe color value of the library color.
Optional
opacityThe opacity value of the library color.
Optional
gradientThe gradient value of the library color, if it's a gradient.
Optional
imageThe image data of the library color, if it's an image fill.
Readonly
idThe unique identifier of the library element.
Readonly
libraryThe unique identifier of the library to which the element belongs.
The name of the library element.
The path of the library element.
If we know the namespace of an external plugin, this is the way to get their data.
The namespace for the shared data.
The key for which to retrieve the data.
Returns the shared data associated with the key as a string.
Represents a color element from a library in Penpot. This interface extends
LibraryElement
and includes properties specific to color elements.