Skip to content

Type to search the docs, API, and blog.

↑↓ navigate↵ openesc close
Zazz 0.7 alpha
API navigation

API

Typography

Font, text layout, and text color.

Reach for a role first (data-ui="text-lg", native headings), then override one property with a utility. --font-weight takes a number or the role weights strong, heading, and body; standard names such as medium are not CSS, so write 500. Text color is --text, with state tiers.

Reference

Typography utilities
UtilityWritesValueTiersNotes
--font-familyfont-familyany CSS valuebreakpoints
--font-sizefont-sizeany CSS valuebreakpoints--before-font-size / --after-font-size
--font-weightfont-weightnumber, or strong / heading / body (the role weight tokens)breakpointsKeywords: heading, body, strong; --before-font-weight / --after-font-weight
--font-stylefont-stylekeywordbreakpoints
--leadingline-heightany CSS valuebreakpoints
--trackingletter-spacingany CSS valuebreakpoints
--line-clamp-webkit-line-clampline count (1 truncates)breakpoints
--text-aligntext-alignkeywordbreakpointsworks tier-only
--text-decorationtext-decoration-lineany CSS valuebreakpoints, statesworks tier-only
--text-transformtext-transformkeywordbreakpoints
--text-wraptext-wrapkeywordbreakpointsworks tier-only
--whitespacewhite-spacekeywordbreakpoints
--textcolorany CSS valuebreakpoints, states--before-text / --after-text