Skip to content

Type to search the docs, API, and blog.

↑↓ navigate↵ openesc close
  • Zazz 0.14 alpha

    Docs

    Style utilities CSS reference

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

    Utilities are mostly named after Tailwind's classes, so align-items is --items; border-radius is --radius. 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, sizing, and radius 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
    animation--animationany animation value, or a token: var(--spin), var(--ping), var(--pulse), var(--bounce)
    aspect-ratio--aspectany CSS value
    backdrop-filter--backdrop-filterany CSS value
    background-clip--bg-clipkeyword
    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 (between children)--divide, --divide-x, --divide-yon the container: a color, a number (px), a length, or none; a child's own border wins
    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-end-end-radius--radius-b, --radius-rnumber, length, or full: the two block-end corners
    border-end-start-radius--radius-b, --radius-lnumber, length, or full: the two block-end corners
    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--radiusnumber (× --spacing × --radius-multiplier), length, or full
    border-right--border-ra color, a number (px), or a length; writes border-inline-end, so it follows the writing direction
    border-start-end-radius--radius-t, --radius-rnumber, length, or full: the two block-start corners
    border-start-start-radius--radius-t, --radius-lnumber, length, or full: the two block-start corners
    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, --elevation, --ring, --ring-color, --ring-offset, --ring-offset-colorone box-shadow: the ring first, then the shadow (a token like var(--shadow-md) or any value), or else --elevation (a height)
    color--textany CSS value
    column-gap--gap-xscale number or length
    container--containerany CSS value
    container-name--container-nameany CSS value
    container-type--container-typeany CSS value
    corner-shape--corner-shaperound, squircle, bevel, or any corner-shape value
    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), grid-pile, which stacks the children in one cell, grid-gallery, which picks its column count from its child count, and subgrid, subgrid-col, subgrid-row, which take the parent grid's tracks
    filter--filterany CSS value
    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)
    grid-template-columns (by item count)--display: grid-galleryas many columns as fit, up to six, skipping a count that would leave one item alone in the last row (two columns excepted)
    grid-template-columns (subgrid)--display: subgrid-col, --display: subgrida grid that takes its columns from its parent grid; subgrid takes the rows too
    grid-template-rows--grid-rows, --template-rowstrack count (equal tracks)
    grid-template-rows (subgrid)--display: subgrid-row, --display: subgrida grid that takes its rows from its parent grid; subgrid takes the columns too
    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
    isolation--isolationkeyword
    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
    mask-image--mask-linear, --mask-stopsa linear-gradient mask: --mask-linear carries the direction, --mask-stops the stops
    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
    mix-blend-mode--mix-blendkeyword
    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-overflow--text-wrap: truncatewith overflow: hidden and no wrapping; --line-clamp clips to more lines
    text-transform--text-transformkeyword
    text-wrap--text-wrapkeyword, plus truncate (one line, ellipsis) and none (wraps normally)
    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

    Docs