Supported CSS Properties
Satori supports a robust subset of CSS. Key properties include:Layout
Layout
display: flex(Default for most elements)flex-directionjustify-contentalign-itemsalign-contentflex-wrapflex(shorthand and individual grow/shrink/basis)position(relative,absolute)top,right,bottom,left
Typography
Typography
font-family-font-size-font-weight-font-style-text-align-color-line-height-letter-spacing-text-overflow(clip,ellipsis) -overflow(hidden,visible) -white-space(normal,nowrap,pre-wrap)
Visuals
Visuals
background-color-background-image(linear-gradient, radial-gradient, url) -background-size,background-position,background-repeat-border(and individual sides) -border-radius-box-shadow-opacity-transform
Sizing & Spacing
Sizing & Spacing
width,heightmin-width,min-height,max-width,max-heightpadding(and individual sides)margin(and individual sides)gap
Tailwind-like Utilities
OGify includes a utility class processor (similar toclsx + a mini-Tailwind engine) that maps class names to styles.
Common Mappings
- Layout
- Sizing
- Typography
- Visuals
flex,flex-row,flex-colitems-center,items-start,items-end,items-stretchjustify-center,justify-start,justify-between,justify-aroundabsolute,relative,inset-0