# Utilities — Typography

> Font family, size, weight, text color, decoration, alignment, wrapping, and list styles.

- Compact index: [utilities.compact.md](https://next.0build.dev/docs/utilities.compact.md)
- Full reference: [utilities.md](https://next.0build.dev/docs/utilities.md)
- JSON: [utilities/typography.json](https://next.0build.dev/registry/utilities/typography.json)

## Color

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/color.css`

- Supports `dark:` for dark mode and `/o` opacity variants via `color-opacity`.

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.color` | `color: var(--color)` | `--color` | — |
| `.dark:color` | `color: var(--dark-color)` | `--dark-color` | dark |

## Color Opacity

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/color-opacity.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.color/o` | `color: color-mix(in oklab, var(--color) var(--color-o, 100%), transparent)` | `--color`, `--color-o` | /o |
| `.dark:color/o` | `color: color-mix( in oklab, var(--dark-color) var(--dark-color-o, 100%), transparent )` | `--dark-color`, `--dark-color-o` | dark, /o |

## Content

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/content.css`, `src/css/constants/content.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.content-before::before` | `content: var(--content-before, '')` | `--content-before` | — |
| `.content-after::after` | `content: var(--content-after, '')` | `--content-after` | — |
| `.dark:content-before::before` | `content: var(--dark-content-before, '')` | `--dark-content-before` | dark |
| `.dark:content-after::after` | `content: var(--dark-content-after, '')` | `--dark-content-after` | dark |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.content-none` | `content: none` | `utilities` |

## Font Family

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/font-family.css`, `src/css/core-components/font-family.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.font-family` | `font-family: var(--font-family)` | `--font-family` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.font-mono` | `font-family: var(--font-family-mono)` | `components` |
| `.font-sans` | `font-family: var(--font-family-sans)` | `components` |
| `.font-serif` | `font-family: var(--font-family-serif)` | `components` |

## Font Size

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/font-size.css`, `src/css/core-components/font-size.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.font-size` | `font-size: var(--font-size)` | `--font-size` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.text-xs` | `font-size: var(--font-size-xs)`, `line-height: var(--font-size-xs--line-height)` | `components` |
| `.text-sm` | `font-size: var(--font-size-sm)`, `line-height: var(--font-size-sm--line-height)` | `components` |
| `.text-base` | `font-size: var(--font-size-base)`, `line-height: var(--font-size-base--line-height)` | `components` |
| `.text-lg` | `font-size: var(--font-size-lg)`, `line-height: var(--font-size-lg--line-height)` | `components` |
| `.text-xl` | `font-size: var(--font-size-xl)`, `line-height: var(--font-size-xl--line-height)` | `components` |
| `.text-2xl` | `font-size: var(--font-size-2xl)`, `line-height: var(--font-size-2xl--line-height)` | `components` |
| `.text-3xl` | `font-size: var(--font-size-3xl)`, `line-height: var(--font-size-3xl--line-height)` | `components` |
| `.text-4xl` | `font-size: var(--font-size-4xl)`, `line-height: var(--font-size-4xl--line-height)` | `components` |
| `.text-5xl` | `font-size: var(--font-size-5xl)`, `line-height: var(--font-size-5xl--line-height)` | `components` |
| `.text-6xl` | `font-size: var(--font-size-6xl)`, `line-height: var(--font-size-6xl--line-height)` | `components` |
| `.text-7xl` | `font-size: var(--font-size-7xl)`, `line-height: var(--font-size-7xl--line-height)` | `components` |
| `.text-8xl` | `font-size: var(--font-size-8xl)`, `line-height: var(--font-size-8xl--line-height)` | `components` |
| `.text-9xl` | `font-size: var(--font-size-9xl)`, `line-height: var(--font-size-9xl--line-height)` | `components` |

## Font Smoothing

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/font-smoothing.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.antialiased` | `-webkit-font-smoothing: antialiased`, `-moz-osx-font-smoothing: grayscale` | `utilities` |
| `.subpixel-antialiased` | `-webkit-font-smoothing: auto`, `-moz-osx-font-smoothing: auto` | `utilities` |

## Font Style

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/font-style.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.italic` | `font-style: italic` | `utilities` |
| `.not-italic` | `font-style: normal` | `utilities` |

## Font Variant Numeric

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/font-variant-numeric.css`, `src/css/core-components/font-variant-numeric.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.normal-nums` | `font-variant-numeric: normal` | `utilities` |
| `.ordinal` | `--tw-ordinal: ordinal`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.slashed-zero` | `--tw-slashed-zero: slashed-zero`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.lining-nums` | `--tw-numeric-figure: lining-nums`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.oldstyle-nums` | `--tw-numeric-figure: oldstyle-nums`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.proportional-nums` | `--tw-numeric-spacing: proportional-nums`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.tabular-nums` | `--tw-numeric-spacing: tabular-nums`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.diagonal-fractions` | `--tw-numeric-fraction: diagonal-fractions`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |
| `.stacked-fractions` | `--tw-numeric-fraction: stacked-fractions`, `font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)` | `components` |

## Font Weight

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/font-weight.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.font-black` | `font-weight: 900` | `utilities` |
| `.font-bold` | `font-weight: 700` | `utilities` |
| `.font-extrabold` | `font-weight: 800` | `utilities` |
| `.font-extralight` | `font-weight: 200` | `utilities` |
| `.font-light` | `font-weight: 300` | `utilities` |
| `.font-medium` | `font-weight: 500` | `utilities` |
| `.font-normal` | `font-weight: 400` | `utilities` |
| `.font-semibold` | `font-weight: 600` | `utilities` |
| `.font-thin` | `font-weight: 100` | `utilities` |

## Hyphens

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/hyphens.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.hyphens-none` | `-webkit-hyphens: none`, `hyphens: none` | `utilities` |
| `.hyphens-manual` | `-webkit-hyphens: manual`, `hyphens: manual` | `utilities` |
| `.hyphens-auto` | `-webkit-hyphens: auto`, `hyphens: auto` | `utilities` |

## Letter Spacing

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/letter-spacing.css`, `src/css/constants/letter-spacing.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.tracking` | `letter-spacing: var(--tracking)` | `--tracking` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.-tracking-normal` | `letter-spacing: -0em` | `utilities` |
| `.-tracking-tight` | `letter-spacing: 0.025em` | `utilities` |
| `.-tracking-tighter` | `letter-spacing: 0.05em` | `utilities` |
| `.-tracking-wide` | `letter-spacing: -0.025em` | `utilities` |
| `.-tracking-wider` | `letter-spacing: -0.05em` | `utilities` |
| `.-tracking-widest` | `letter-spacing: -0.1em` | `utilities` |
| `.tracking-normal` | `letter-spacing: 0em` | `utilities` |
| `.tracking-tight` | `letter-spacing: -0.025em` | `utilities` |
| `.tracking-tighter` | `letter-spacing: -0.05em` | `utilities` |
| `.tracking-wide` | `letter-spacing: 0.025em` | `utilities` |
| `.tracking-wider` | `letter-spacing: 0.05em` | `utilities` |
| `.tracking-widest` | `letter-spacing: 0.1em` | `utilities` |

## Line Clamp

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/line-clamp.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.line-clamp-1` | `overflow: hidden`, `display: -webkit-box`, `-webkit-box-orient: vertical`, `-webkit-line-clamp: 1` | `utilities` |
| `.line-clamp-2` | `overflow: hidden`, `display: -webkit-box`, `-webkit-box-orient: vertical`, `-webkit-line-clamp: 2` | `utilities` |
| `.line-clamp-3` | `overflow: hidden`, `display: -webkit-box`, `-webkit-box-orient: vertical`, `-webkit-line-clamp: 3` | `utilities` |
| `.line-clamp-4` | `overflow: hidden`, `display: -webkit-box`, `-webkit-box-orient: vertical`, `-webkit-line-clamp: 4` | `utilities` |
| `.line-clamp-5` | `overflow: hidden`, `display: -webkit-box`, `-webkit-box-orient: vertical`, `-webkit-line-clamp: 5` | `utilities` |
| `.line-clamp-6` | `overflow: hidden`, `display: -webkit-box`, `-webkit-box-orient: vertical`, `-webkit-line-clamp: 6` | `utilities` |
| `.line-clamp-none` | `overflow: visible`, `display: block`, `-webkit-box-orient: horizontal`, `-webkit-line-clamp: none` | `utilities` |

## Line Height

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/line-height.css`, `src/css/constants/line-height.css`

- `.leading` multiplies `--leading` by `var(--spacing)`; `.[leading]` takes a raw unitless or length value.

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.leading` | `line-height: calc(var(--spacing) * var(--leading))` | `--leading` | scaled |
| `.[leading]` | `line-height: var(--leading)` | `--leading` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.leading-loose` | `line-height: 2` | `utilities` |
| `.leading-none` | `line-height: 1` | `utilities` |
| `.leading-normal` | `line-height: 1.5` | `utilities` |
| `.leading-relaxed` | `line-height: 1.625` | `utilities` |
| `.leading-snug` | `line-height: 1.375` | `utilities` |
| `.leading-tight` | `line-height: 1.25` | `utilities` |

## List Style Image

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/list-style-image.css`, `src/css/constants/list-style-image.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.list-image` | `list-style-image: var(--list-image)` | `--list-image` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.list-image-none` | `list-style-image: none` | `utilities` |

## List Style Position

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/list-style-position.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.list-inside` | `list-style-position: inside` | `utilities` |
| `.list-outside` | `list-style-position: outside` | `utilities` |

## List Style Type

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/list-style-type.css`, `src/css/constants/list-style-type.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.list` | `list-style-type: var(--list)` | `--list` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.list-decimal` | `list-style-type: decimal` | `utilities` |
| `.list-disc` | `list-style-type: disc` | `utilities` |
| `.list-none` | `list-style-type: none` | `utilities` |

## Overflow Wrap

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/overflow-wrap.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.wrap-break-word` | `overflow-wrap: break-word` | `utilities` |
| `.wrap-anywhere` | `overflow-wrap: anywhere` | `utilities` |
| `.wrap-normal` | `overflow-wrap: normal` | `utilities` |

## Text Align

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/text-align.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.text-left` | `text-align: left` | `utilities` |
| `.text-center` | `text-align: center` | `utilities` |
| `.text-right` | `text-align: right` | `utilities` |
| `.text-justify` | `text-align: justify` | `utilities` |
| `.text-start` | `text-align: start` | `utilities` |
| `.text-end` | `text-align: end` | `utilities` |

## Text Decoration Color

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/text-decoration-color.css`, `src/css/constants/text-decoration-color.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.decoration` | `text-decoration-color: var(--decoration)` | `--decoration` | — |
| `.dark:decoration` | `text-decoration-color: var(--dark-decoration)` | `--dark-decoration` | dark |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.decoration-inherit` | `text-decoration-color: inherit` | `utilities` |
| `.decoration-current` | `text-decoration-color: currentColor` | `utilities` |
| `.decoration-transparent` | `text-decoration-color: transparent` | `utilities` |

## Text Decoration Color Opacity

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/text-decoration-color-opacity.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.decoration/o` | `text-decoration-color: color-mix( in oklab, var(--decoration) var(--decoration-o, 100%), transparent )` | `--decoration`, `--decoration-o` | /o |
| `.dark:decoration/o` | `text-decoration-color: color-mix( in oklab, var(--dark-decoration) var(--dark-decoration-o, 100%), transparent )` | `--dark-decoration`, `--dark-decoration-o` | dark, /o |

## Text Decoration Line

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/text-decoration-line.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.underline` | `text-decoration-line: underline` | `utilities` |
| `.overline` | `text-decoration-line: overline` | `utilities` |
| `.line-through` | `text-decoration-line: line-through` | `utilities` |
| `.no-underline` | `text-decoration-line: none` | `utilities` |

## Text Decoration Style

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/text-decoration-style.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.decoration-solid` | `text-decoration-style: solid` | `utilities` |
| `.decoration-double` | `text-decoration-style: double` | `utilities` |
| `.decoration-dotted` | `text-decoration-style: dotted` | `utilities` |
| `.decoration-dashed` | `text-decoration-style: dashed` | `utilities` |
| `.decoration-wavy` | `text-decoration-style: wavy` | `utilities` |

## Text Decoration Thickness

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/text-decoration-thickness.css`, `src/css/constants/text-decoration-thickness.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.decoration-thickness` | `text-decoration-thickness: var(--decoration-thickness)` | `--decoration-thickness` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.decoration-from-font` | `text-decoration-thickness: from-font` | `utilities` |
| `.decoration-auto` | `text-decoration-thickness: auto` | `utilities` |

## Text Indent

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/text-indent.css`

- `.indent` multiplies `--indent` by `var(--spacing)`; `.[indent]` accepts raw values.

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.indent` | `text-indent: calc(var(--spacing) * var(--indent))` | `--indent` | scaled |
| `.[indent]` | `text-indent: var(--indent)` | `--indent` | — |

## Text Overflow

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/text-overflow.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.truncate` | `overflow: hidden`, `text-overflow: ellipsis`, `white-space: nowrap` | `utilities` |
| `.text-ellipsis` | `text-overflow: ellipsis` | `utilities` |
| `.text-clip` | `text-overflow: clip` | `utilities` |

## Text Transform

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/text-transform.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.uppercase` | `text-transform: uppercase` | `utilities` |
| `.lowercase` | `text-transform: lowercase` | `utilities` |
| `.capitalize` | `text-transform: capitalize` | `utilities` |
| `.normal-case` | `text-transform: none` | `utilities` |

## Text Underline Offset

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/text-underline-offset.css`, `src/css/constants/text-underline-offset.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.underline-offset` | `text-underline-offset: var(--underline-offset)` | `--underline-offset` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.underline-offset-auto` | `text-underline-offset: auto` | `utilities` |

## Text Wrap

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/text-wrap.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.text-wrap` | `text-wrap: wrap` | `utilities` |
| `.text-nowrap` | `text-wrap: nowrap` | `utilities` |
| `.text-balance` | `text-wrap: balance` | `utilities` |
| `.text-pretty` | `text-wrap: pretty` | `utilities` |

## Vertical Align

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/vertical-align.css`, `src/css/constants/vertical-align.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.align` | `vertical-align: var(--align)` | `--align` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.align-baseline` | `vertical-align: baseline` | `utilities` |
| `.align-top` | `vertical-align: top` | `utilities` |
| `.align-middle` | `vertical-align: middle` | `utilities` |
| `.align-bottom` | `vertical-align: bottom` | `utilities` |
| `.align-text-top` | `vertical-align: text-top` | `utilities` |
| `.align-text-bottom` | `vertical-align: text-bottom` | `utilities` |
| `.align-sub` | `vertical-align: sub` | `utilities` |
| `.align-super` | `vertical-align: super` | `utilities` |

## White Space

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/white-space.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.whitespace-normal` | `white-space: normal` | `utilities` |
| `.whitespace-nowrap` | `white-space: nowrap` | `utilities` |
| `.whitespace-pre` | `white-space: pre` | `utilities` |
| `.whitespace-pre-line` | `white-space: pre-line` | `utilities` |
| `.whitespace-pre-wrap` | `white-space: pre-wrap` | `utilities` |
| `.whitespace-break-spaces` | `white-space: break-spaces` | `utilities` |

## Word Break

> responsive (`sm:`–`2xl:`) · sources: `src/css/constants/word-break.css`

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.break-normal` | `overflow-wrap: normal`, `word-break: normal` | `utilities` |
| `.break-words` | `overflow-wrap: break-word` | `utilities` |
| `.break-all` | `word-break: break-all` | `utilities` |
| `.break-keep` | `word-break: keep-all` | `utilities` |
