Optional
strokeThe optional color of the stroke, represented as a string (e.g., '#FF5733').
Optional
strokeThe optional reference to an external file for the stroke color.
Optional
strokeThe optional reference ID within the external file for the stroke color.
Optional
strokeThe optional opacity level of the stroke color, ranging from 0 (fully transparent) to 1 (fully opaque). Defaults to 1 if omitted.
Optional
strokeThe optional style of the stroke.
Optional
strokeThe optional width of the stroke.
Optional
strokeThe optional alignment of the stroke relative to the shape's boundary.
Optional
strokeThe optional cap style for the start of the stroke.
Optional
strokeThe optional cap style for the end of the stroke.
Optional
strokeThe optional gradient stroke defined by a Gradient object.
Represents stroke properties in Penpot. You can add a stroke to any shape except for groups. This interface includes properties for defining the color, style, width, alignment, and caps of a stroke.