OptionalcolorThe color value of the library color.
OptionalopacityThe opacity value of the library color.
OptionalgradientThe gradient value of the library color, if it's a gradient.
OptionalimageThe image data of the library color, if it's an image fill.
ReadonlyidThe unique identifier of the library element.
ReadonlylibraryThe unique identifier of the library to which the element belongs.
The name of the library element.
The path of the library element.
Converts the library color into a fill object.
Returns a Fill object representing the color as a fill.
Converts the library color into a stroke object.
Returns a Stroke object representing the color as a stroke.
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.
Sets the shared plugin-specific data for the given namespace and key.
The namespace for the shared data.
The key for which to set the data.
The data to set for the key.
Retrieves all the keys for the shared plugin-specific data in the given namespace.
The namespace for the shared data.
Returns an array of strings representing all the keys in the namespace.
Represents a color element from a library in Penpot. This interface extends
LibraryElementand includes properties specific to color elements.