vector
An arbitrary vector shape that is not recognised as a glyph.
Path
component-api:anatomy.<element>.type: vector
Styles
Written on the element, not this anatomy entry — under a variant, slot content, or a composition. The style keys an element of this type may carry:
aspectRatio · bottom · centerHorizontalOffset · centerVerticalOffset · cornerSmoothing · effects · end · fillColor · height · layoutSizingHorizontal · layoutSizingVertical · locked · maxHeight · maxWidth · minHeight · minWidth · opacity · position · rotation · start · strokeAlign · strokeDashPattern · strokeWeight · strokes · top · visible · width
Themes
Selected on the element, not this anatomy entry. Any element may select a theme for a token group, or inherit one from the nearest ancestor — deciding what its subtree’s token references resolve to.
Platform bindings
Figma
Disposition: approximated · Realised by: VECTOR node
Rules: typeDetection — with text, glyph, container, line, ellipse, rectangle, polygon, star
Capture records the type, position and styles — never the path geometry, which the schema does not carry. Render therefore creates an empty vector node of the right size and styling: the shape’s actual paths are lost on any round trip. The declared seam, not an accident.
CSS
Disposition: approximated · Realised by: Css
Rules: elementSelectors — with text, glyph, container, slot, instance, line, ellipse, rectangle
Box, fill and stroke only. Path geometry is not expressible as a rule block, so a vector styles as the rectangle it occupies.
React
Disposition: approximated · Realised by: a styled div occupying the vector’s box
Path geometry is not in the spec, so nothing can draw it. The declared seam, shared with the Figma binding’s render direction.
Web Components
Disposition: approximated · Realised by: a styled div occupying the vector’s box
Path geometry is not in the spec on any platform; the box emits, the shape is lost.
Decisions
None.
Source
| Format | File |
|---|---|
| JSON Schema | packages/schema/schema/component.schema.json |
| TypeScript | packages/schema/types/Element.ts |
| Specification | §2, §11 |