OptionalstrokeThe optional color of the stroke, represented as a string (e.g., '#FF5733').
OptionalstrokeThe optional reference to an external file for the stroke color.
OptionalstrokeThe optional reference ID within the external file for the stroke color.
OptionalstrokeThe optional opacity level of the stroke color, ranging from 0 (fully transparent) to 1 (fully opaque). Defaults to 1 if omitted.
OptionalstrokeThe optional style of the stroke.
OptionalstrokeThe optional width of the stroke.
OptionalstrokeThe optional alignment of the stroke relative to the shape's boundary.
OptionalstrokeThe optional cap style for the start of the stroke.
OptionalstrokeThe optional cap style for the end of the stroke.
OptionalstrokeThe 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.