Archived docs Get your API Key
Get started
Tutorials
Guides
Reference
Help for AI agents
🤖 AI Assistant

Component CSS properties

Every group inside a component's settings object accepts CSS-like properties. They look almost identical to standard CSS — the example below uses six of them (vertical-align, horizontal-align, background-color, padding, border-radius, font-family, font-size, font-weight, color) on the basic/000 "Simple card" component:

{
  "type": "component",
  "component": "basic/000",
  "settings": {
    "card": {
      "vertical-align": "center",
      "horizontal-align": "center",
      "background-color": "#000000",
      "padding": "40px",
      "border-radius": "12px"
    },
    "headline": {
      "font-family": "Inter",
      "font-size": "5vw",
      "font-weight": "700",
      "color": "#ffffff"
    }
  }
}

The accepted keys inside each settings group (card, headline, …) come from the table below. Available groups and which properties are meaningful for each are documented on every component detail page.

These 101 CSS-like properties are accepted inside the settings groups of every component. Properties marked as animatable can be tweened over the component's intro duration.

PropertyUnitAnimatableDescription
durationmsyesDefines the duration of the animation
delaymsyesDefines the start delay of the animation
font-sizeDefines the font size of an item.
font-familyDefines the font family of an item.
font-weightDefines the font weight of an item.
colorDefines the color of an item.
opacityDefines the opacity of an item.
text-alignDefines how an item aligns horizontally.
text-overflowDefines the text overflow of an item.
text-shadowDefines the text shadow of an item.
text-decorationDefines the text decoration of an item.
text-transformDefines the text transform of an item.
white-spaceDefines the behavior of the white space of an item.
transformDefines the transform of an item.
transform-originDefines the transform origin of an item.
vertical-alignDefines how an item aligns vertically.
horizontal-alignDefines how an item aligns horizontally.
vertical-positionDefines how an item aligns vertically.
horizontal-positionDefines how an item aligns horizontally.
border-radiusDefines the border radius of an item.
border-top-left-radiusDefines the border top left radius of an item.
border-top-right-radiusDefines the border top right radius of an item.
border-bottom-left-radiusDefines the border bottom left radius of an item.
border-bottom-right-radiusDefines the border bottom right radius of an item.
borderDefines the border of an item.
border-colorDefines the border color of an item.
border-widthDefines the border width of an item.
border-styleDefines the border style of an item.
border-topDefines the border top of an item.
border-rightDefines the border right of an item.
border-bottomDefines the border bottom of an item.
border-leftDefines the border left of an item.
border-collapseDefines the border collapse of an item.
border-spacingDefines the border spacing of an item.
line-heightDefines the line height of an item.
letter-spacingDefines the letter spacing of an item.
dirDefines the direction of an item.
box-shadowDefines the box shadow of an item.
drop-shadowDefines the drop shadow of an item.
displayDefines the display of an item.
overflowDefines the overflow of an item.
overflow-xDefines the overflow x of an item.
overflow-yDefines the overflow y of an item.
paddingDefines the padding of an item.
padding-leftDefines the padding left of an item.
padding-topDefines the padding top of an item.
padding-rightDefines the padding right of an item.
padding-bottomDefines the padding bottom of an item.
marginDefines the margin of an item.
margin-leftDefines the margin left of an item.
margin-topDefines the margin top of an item.
margin-rightDefines the margin right of an item.
margin-bottomDefines the margin bottom of an item.
backgroundDefines the background of an item.
background-colorDefines the background color of an item.
background-sizeDefines the background size of an item.
background-repeatDefines the background repeat of an item.
background-positionDefines the background position of an item.
background-originDefines the background origin of an item.
background-imageDefines the background image of an item.
background-blend-modeDefines the background blend mode of an item.
background-clipDefines the background clip of an item.
leftDefines the left position of an item.
rightDefines the right position of an item.
topDefines the top position of an item.
bottomDefines the bottom position of an item.
widthDefines the width of an item.
heightDefines the height of an item.
srcDefines the source URL of an item, usually an image. Example: https://example.com/image.jpg
text-strokeDefines the text stroke of an item.
-webkit-text-strokeDefines the text stroke of an item.
-webkit-text-stroke-widthDefines the text stroke width of an item.
-webkit-text-stroke-colorDefines the text stroke color of an item.
paint-orderDefines the paint order of an item.
easingSets the easing function for an animation
outlineDefines the outline of an item.
outline-colorDefines the outline color of an item.
outline-widthDefines the outline width of an item.
outline-styleDefines the outline style of an item.
outline-offsetDefines the outline offset of an item.
rotateDefines the element 2D rotation
scaleDefines the element 2D scale
center-xDefines the center x position of a circle or ellipse.
center-yDefines the center y position of a circle or ellipse.
radiusDefines the radius of a circle.
radius-xDefines the radius x of an ellipse.
radius-yDefines the radius y of an ellipse.
stroke-widthDefines the stroke width of an item.
strokeDefines the stroke color of an item.
positionDefines the CSS position of an item.
justify-contentDefines the justify content of an item inside a flex container.
align-itemsDefines the align items of an item inside a flex container.
directionDefines the direction of the animation.
textDefines the text of an item.
htmlDefines the HTML content of an item. Only available for shape/html component.
pointsDefines the points of a polygon.
fillDefines the fill color of a polygon.
backdrop-filterDefines the backdrop filter of an item.
max-font-sizeDefines the maximum font size of an item when font-size is auto.
min-font-sizeDefines the minimum font size of an item when font-size is auto.
box-sizingDefines the box sizing behavior of an item.

See also