Readonly
idThe unique identifier of the library.
Readonly
nameThe name of the library.
An array of color elements in the library.
An array of typography elements in the library.
An array of component elements in the library.
Creates a new color element in the library.
Returns a new LibraryColor
object representing the created color element.
Creates a new typography element in the library.
Returns a new LibraryTypography
object representing the created typography element.
Creates a new component element in the library using the provided shapes.
An array of Shape
objects representing the shapes to be included in the component.
Returns a new LibraryComponent
object representing the created component 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 library in Penpot, containing colors, typographies, and components.