Skip to content

Type to search the docs, API, and blog.

↑↓ navigate↵ openesc close
Zazz 0.7 alpha
API navigation

API

From CSS to Zazz

Every CSS property the utilities write, looked up by the property.

Utilities are named after Tailwind's classes, so align-items is --items and border-radius is --rounded. If you know the property and not the class, find it here. Physical names (width, padding-left) are listed too: the kit writes the logical property, so --pl pads the inline start, which is the right side in a right-to-left document.

A value is written the way the property takes it (--justify: space-between, --w: 100%). Spacing, margin, and sizing utilities also take a bare number as a step on the spacing scale, and a few utilities take a token by name; the utilities overview has the value rules.

CSS properties and the utilities that write them
CSS propertyUtilityValue
-webkit-line-clamp--line-clampline count (1 truncates)
align-items--itemskeyword
align-self--selfkeyword
anchor-name--anchor-namedashed ident (--toolbar), a list of them, or none
aspect-ratio--aspectany CSS value
background-color--bgcolor, or none (clears the color and any gradient)
background-image--bg-linear, --bg-radial, --bg-conic, --bg-stopsa gradient: the type carries the prelude, --bg-stops the color stops; --bg: none clears it
block-size--h, --sizescale number or length
border--bordera color (1px solid), a number (px wide in --color-border), or a length
border-block-end--border-ba color, a number (px), or a length
border-block-start--border-ta color, a number (px), or a length
border-bottom--border-ba color, a number (px), or a length; writes border-block-end, so it follows the writing direction
border-color--border-colorany CSS value
border-inline--border-xa color, a number (px), or a length; --border-y, --border-t, --border-r, --border-b, --border-l for the other sides
border-inline-end--border-ra color, a number (px), or a length
border-inline-start--border-la color, a number (px), or a length
border-left--border-la color, a number (px), or a length; writes border-inline-start, so it follows the writing direction
border-radius--roundedany CSS value
border-right--border-ra color, a number (px), or a length; writes border-inline-end, so it follows the writing direction
border-style--border-styleany CSS value
border-top--border-ta color, a number (px), or a length; writes border-block-start, so it follows the writing direction
border-width--border-widthany CSS value
bottom--bottomscale number or length; writes inset-block-end, so it follows the writing direction
box-shadow--shadow, --ring, --ring-color, --ring-offset, --ring-offset-colorone box-shadow: the shadow (by name, 2xs to 2xl, or any value) and the ring
color--textany CSS value
column-gap--gap-xscale number or length
cursor--cursorkeyword
display--displaykeyword, plus flex shorthands that set the direction: flex-row, flex-row-reverse, flex-col, flex-col-reverse, inline-flex-row, inline-flex-row-reverse, inline-flex-col, inline-flex-col-reverse
flex--flexany CSS value
flex-basis--basisany CSS value
flex-direction--display: flex-row, --display: flex-row-reverse, --display: flex-col, --display: flex-col-reverse, --display: inline-flex-row, --display: inline-flex-row-reverse, --display: inline-flex-col, --display: inline-flex-col-reversethe direction rides on --display; a plain flex at a tier resets it to row
flex-shrink--shrinkany CSS value
flex-wrap--flex-wrapkeyword
font-family--font-familyany CSS value
font-size--font-sizeany CSS value
font-style--font-stylekeyword
font-weight--font-weightnumber, or strong / heading / body (the role weight tokens)
gap--gapscale number or length
grid-auto-columns--auto-colsany CSS value
grid-auto-flow--grid-flowkeyword
grid-auto-rows--auto-rowsany CSS value
grid-column--band, --col-spanany CSS value
grid-column-end--col-endany CSS value
grid-column-start--col-startany CSS value
grid-row--row-spanspan count
grid-row-end--row-endany CSS value
grid-row-start--row-startany CSS value
grid-template-columns--grid-cols, --template-cols, --grid-fittrack count (equal tracks) or subgrid
grid-template-rows--grid-rows, --template-rowstrack count (equal tracks) or subgrid
height--h, --sizescale number or length; writes block-size, so it follows the writing direction
inline-size--w, --sizescale number or length
inset--insetscale number or length
inset-block--inset-yscale number or length
inset-block-end--bottomscale number or length
inset-block-start--topscale number or length
inset-inline--inset-xscale number or length
inset-inline-end--rightscale number or length
inset-inline-start--leftscale number or length
justify-content--justifykeyword
left--leftscale number or length; writes inset-inline-start, so it follows the writing direction
letter-spacing--trackingany CSS value
line-height--leadingany CSS value
margin--mscale number or length
margin-block--myscale number or length
margin-block-end--mbscale number or length
margin-block-start--mtscale number or length
margin-bottom--mbscale number or length; writes margin-block-end, so it follows the writing direction
margin-inline--mxscale number or length
margin-inline-end--mrscale number or length
margin-inline-start--mlscale number or length
margin-left--mlscale number or length; writes margin-inline-start, so it follows the writing direction
margin-right--mrscale number or length; writes margin-inline-end, so it follows the writing direction
margin-top--mtscale number or length; writes margin-block-start, so it follows the writing direction
max-block-size--max-hscale number or length
max-height--max-hscale number or length; writes max-block-size, so it follows the writing direction
max-inline-size--max-wscale number or length
max-width--max-wscale number or length; writes max-inline-size, so it follows the writing direction
min-block-size--min-hscale number or length
min-height--min-hscale number or length; writes min-block-size, so it follows the writing direction
min-inline-size--min-wscale number or length
min-width--min-wscale number or length; writes min-inline-size, so it follows the writing direction
object-fit--object-fitkeyword
object-position--object-positionany CSS value
opacity--opacityany CSS value
order--orderany CSS value
outline--outlineany CSS value
outline (focus)--focus-ringa primitive's focus ring and a plain element's focus outline: a signed width, negative keeps it inside
overflow--overflowkeyword
overflow-x--overflow-xkeyword
overflow-y--overflow-ykeyword
padding--pscale number or length
padding-block--pyscale number or length
padding-block-end--pbscale number or length
padding-block-start--ptscale number or length
padding-bottom--pbscale number or length; writes padding-block-end, so it follows the writing direction
padding-inline--pxscale number or length
padding-inline-end--prscale number or length
padding-inline-start--plscale number or length
padding-left--plscale number or length; writes padding-inline-start, so it follows the writing direction
padding-right--prscale number or length; writes padding-inline-end, so it follows the writing direction
padding-top--ptscale number or length; writes padding-block-start, so it follows the writing direction
place-content--place-contentalignment keyword (center, start, end, space-between, safe end, …)
place-items--place-itemsalignment keyword (center, start, end, stretch, safe end, …)
pointer-events--pointer-eventskeyword
position--positionkeyword
position-anchor--position-anchordashed ident naming an anchor, auto, none, or normal
position-area--position-areaone or two area keywords (block-start span-inline-end), or none
right--rightscale number or length; writes inset-inline-end, so it follows the writing direction
rotate--rotateany CSS value
row-gap--gap-yscale number or length
scale--scaleany CSS value
text-align--text-alignkeyword
text-decoration-line--text-decorationany CSS value
text-transform--text-transformkeyword
text-wrap--text-wrapkeyword
top--topscale number or length; writes inset-block-start, so it follows the writing direction
transition--transitionany CSS value
transition-delay--transition-delayany CSS value
transition-duration--transition-durationany CSS value
translate--translateany CSS value
visibility--visibilitykeyword
white-space--whitespacekeyword
width--w, --sizescale number or length; writes inline-size, so it follows the writing direction
z-index--zany CSS value