Skip to content

Styles

The Styles object holds visual properties for an element. Every property is optional. Which properties are evaluated depends on the element type. Source: packages/schema/types/Styles.ts.

PropertyValue typeFigma key (if different)
aspectRatioAspectRatioValue
backgroundBlurBlur(via effects)
backgroundColorColorStylefills ADR 009
backgroundImageImageValue
TokenReference
fills (IMAGE) ADR 063
bottomPositionOffsety and constraints ADR 041
centerHorizontalOffsetPositionOffsetx and constraints ADR 041
centerVerticalOffsetPositionOffsety and constraints ADR 041
clipContentStyle
cornerRadiusStyle
Corners
cornerSmoothingStyle
crossAxisAlignmentCrossAxisAlignmentcounterAxisAlignItems ADR 040
effectsTokenReference
Effects
endPositionOffsetx and constraints ADR 041
fillColorColorStylefills ADR 013
fontFamilystring
TokenReference
(via typography)
fontSizenumber
TokenReference
(via typography)
fontStylestring
TokenReference
(via typography)
hangingListboolean(via typography)
hangingPunctuationboolean(via typography)
heightStyle
itemReverseZIndexStyle
itemSpacingStyle
ItemSpacing
layerBlurBlur(via effects)
layoutModeLayoutMode
layoutSizingHorizontalStyle
layoutSizingVerticalStyle
leadingTrimstring(via typography)
letterSpacingnumber
TokenReference
(via typography)
lineHeightnumber
string
TokenReference
(via typography)
listSpacingnumber(via typography)
lockedStyle
mainAxisAlignmentMainAxisAlignmentprimaryAxisAlignItems ADR 040
maxHeightStyle
maxLinesStyle
maxWidthStyle
minHeightStyle
minWidthStyle
opacityStyle
paddingStyle
Sides
paragraphIndentnumber
TokenReference
(via typography)
paragraphSpacingnumber
TokenReference
(via typography)
positionPositionlayoutPositioning ADR 041
primaryAxisSizingModeStyle
rotationStyle
shadowsShadow[](via effects)
startPositionOffsetx and constraints ADR 041
strokeAlignStyle
strokeDashPatternStrokeDashPatternstrokeDashes ADR 059
strokeWeightStyle
Sides
strokesColorStyle
textAlignHorizontalTextAlignHorizontaltextAlignHorizontal (remapped) ADR 064
textAlignVerticalStyle
textCasestring(via typography)
textColorColorStylefills ADR 009
textDecorationstring(via typography)
textOverflowTextOverflowtextTruncation (remapped) ADR 062
topPositionOffsety and constraints ADR 041
typographyTokenReference
Typography
visibleboolean
TokenReference
PropBinding
Conditional
widthStyle
wrapStylelayoutWrap ADR 039
wrapAlignmentWrapAlignmentcounterAxisAlignContent ADR 039

Element-type applicability (container/text/glyph/vectors/line) moves to per-property pages once those exist.