# Token families

Every preset token family: its class prefix, token namespace and native properties.

- ID: tokens/families
- Type: tokens
- Canonical: /reference/tokens/families
- Version: 2.1.8
- Source revision: 09fc2350ea80ed137ba7ca62c8e5926744b5a5dc (revision)
- Source: packages/preset/src/utilities.css
- Content digest: caa2c90f08253e4f88aa1129903d4405e11f11da3fb845161bc73fc3c5d78705
- Semantic digest: 83962260d6d56817dd052d2beebf7999a75804215dac050c47b26353145c099a
- Language: en

A token family connects a class prefix to a token namespace and the CSS properties it writes. These tables list every family registered by the preset, including families without preset values.

<a id="reading-a-family"></a>

## Read a family

The key alone does not identify a token. In `p-md`, `p-` reads the `spacing` namespace and `md` selects `--spacing-md`. The same key in another family can select a different token.

**The same key can select different tokens**

Each row resolves independently. The repeated md is a key within a namespace, not one global value shared by these classes.

- p-md selects --spacing-md and writes padding: var(--spacing-md).
- max-w-md selects --container-md and writes max-width: var(--container-md).
- font-md selects --font-size-md and writes font-size: var(--font-size-md). In the preset, md uniquely selects the font-size namespace among the font- families.
- The highlighted md fragments are the same key in separate namespaces. The arrows indicate lookup and property mapping, not dependencies between the three rows. The figure omits theme values and layer wrappers; the generated example below includes both.

```html
<div class="p-md max-w-md font-md">Content</div>
```

```css disclosure=generated-css
@layer theme{:root,:host{--font-size-md:1rem;--spacing-md:1rem;--container-md:28rem}}@layer utilities{.font-md{font-size:var(--font-size-md)}.max-w-md{max-width:var(--container-md)}.p-md{padding:var(--spacing-md)}}
```

Read each row as prefix → token name pattern → native properties. Replace `*` with a registered key. The linked value pages list available keys; the namespace column identifies the tokens the family accepts.

<a id="color"></a>

## Color palette and Color roles

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-b"></a>`b-` | `--color-*` | `border-color` |
| <a id="family-bb"></a>`bb-` | `--color-*` | `border-bottom-color` |
| <a id="family-bg"></a>`bg-` | `--color-*` | `background-color` |
| <a id="family-bl"></a>`bl-` | `--color-*` | `border-left-color` |
| <a id="family-br"></a>`br-` | `--color-*` | `border-right-color` |
| <a id="family-bt"></a>`bt-` | `--color-*` | `border-top-color` |
| <a id="family-bx"></a>`bx-` | `--color-*` | `border-inline-color` |
| <a id="family-by"></a>`by-` | `--color-*` | `border-block-color` |
| <a id="family-fg"></a>`fg-` | `--color-*` | `color` |
| <a id="family-bxe"></a>`bxe-` | `--color-*` | `border-inline-end-color` |
| <a id="family-bxs"></a>`bxs-` | `--color-*` | `border-inline-start-color` |
| <a id="family-bye"></a>`bye-` | `--color-*` | `border-block-end-color` |
| <a id="family-bys"></a>`bys-` | `--color-*` | `border-block-start-color` |
| <a id="family-fill"></a>`fill-` | `--color-*` | `fill` |
| <a id="family-caret"></a>`caret-` | `--color-*` | `caret-color` |
| <a id="family-accent"></a>`accent-` | `--color-*` | `accent-color` |
| <a id="family-stroke"></a>`stroke-` | `--color-*` | `stroke` |
| <a id="family-outline"></a>`outline-` | `--color-*` | `outline-color` |
| <a id="family-text-fill-color"></a>`text-fill-color-` | `--color-*` | `-webkit-text-fill-color` |

Values in [Color palette](/reference/tokens/color) and [Color roles](/reference/tokens/color-roles).

<a id="spacing"></a>

## Spacing

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-m"></a>`m-` | `--spacing-*` | `margin` |
| <a id="family-p"></a>`p-` | `--spacing-*` | `padding` |
| <a id="family-ix"></a>`ix-` | `--spacing-*` | `inset-inline` |
| <a id="family-iy"></a>`iy-` | `--spacing-*` | `inset-block` |
| <a id="family-mb"></a>`mb-` | `--spacing-*` | `margin-bottom` |
| <a id="family-ml"></a>`ml-` | `--spacing-*` | `margin-left` |
| <a id="family-mr"></a>`mr-` | `--spacing-*` | `margin-right` |
| <a id="family-mt"></a>`mt-` | `--spacing-*` | `margin-top` |
| <a id="family-mx"></a>`mx-` | `--spacing-*` | `margin-inline` |
| <a id="family-my"></a>`my-` | `--spacing-*` | `margin-block` |
| <a id="family-pb"></a>`pb-` | `--spacing-*` | `padding-bottom` |
| <a id="family-pl"></a>`pl-` | `--spacing-*` | `padding-left` |
| <a id="family-pr"></a>`pr-` | `--spacing-*` | `padding-right` |
| <a id="family-pt"></a>`pt-` | `--spacing-*` | `padding-top` |
| <a id="family-px"></a>`px-` | `--spacing-*` | `padding-inline` |
| <a id="family-py"></a>`py-` | `--spacing-*` | `padding-block` |
| <a id="family-gap"></a>`gap-` | `--spacing-*` | `gap` |
| <a id="family-ixe"></a>`ixe-` | `--spacing-*` | `inset-inline-end` |
| <a id="family-ixs"></a>`ixs-` | `--spacing-*` | `inset-inline-start` |
| <a id="family-iye"></a>`iye-` | `--spacing-*` | `inset-block-end` |
| <a id="family-iys"></a>`iys-` | `--spacing-*` | `inset-block-start` |
| <a id="family-mxe"></a>`mxe-` | `--spacing-*` | `margin-inline-end` |
| <a id="family-mxs"></a>`mxs-` | `--spacing-*` | `margin-inline-start` |
| <a id="family-mye"></a>`mye-` | `--spacing-*` | `margin-block-end` |
| <a id="family-mys"></a>`mys-` | `--spacing-*` | `margin-block-start` |
| <a id="family-pxe"></a>`pxe-` | `--spacing-*` | `padding-inline-end` |
| <a id="family-pxs"></a>`pxs-` | `--spacing-*` | `padding-inline-start` |
| <a id="family-pye"></a>`pye-` | `--spacing-*` | `padding-block-end` |
| <a id="family-pys"></a>`pys-` | `--spacing-*` | `padding-block-start` |
| <a id="family-top"></a>`top-` | `--spacing-*` | `top` |
| <a id="family-left"></a>`left-` | `--spacing-*` | `left` |
| <a id="family-inset"></a>`inset-` | `--spacing-*` | `inset` |
| <a id="family-right"></a>`right-` | `--spacing-*` | `right` |
| <a id="family-bottom"></a>`bottom-` | `--spacing-*` | `bottom` |
| <a id="family-col-gap"></a>`col-gap-` | `--spacing-*` | `column-gap` |
| <a id="family-row-gap"></a>`row-gap-` | `--spacing-*` | `row-gap` |
| <a id="family-scroll-m"></a>`scroll-m-` | `--spacing-*` | `scroll-margin` |
| <a id="family-scroll-p"></a>`scroll-p-` | `--spacing-*` | `scroll-padding` |
| <a id="family-scroll-mb"></a>`scroll-mb-` | `--spacing-*` | `scroll-margin-bottom` |
| <a id="family-scroll-ml"></a>`scroll-ml-` | `--spacing-*` | `scroll-margin-left` |
| <a id="family-scroll-mr"></a>`scroll-mr-` | `--spacing-*` | `scroll-margin-right` |
| <a id="family-scroll-mt"></a>`scroll-mt-` | `--spacing-*` | `scroll-margin-top` |
| <a id="family-scroll-mx"></a>`scroll-mx-` | `--spacing-*` | `scroll-margin-inline` |
| <a id="family-scroll-my"></a>`scroll-my-` | `--spacing-*` | `scroll-margin-block` |
| <a id="family-scroll-pb"></a>`scroll-pb-` | `--spacing-*` | `scroll-padding-bottom` |
| <a id="family-scroll-pl"></a>`scroll-pl-` | `--spacing-*` | `scroll-padding-left` |
| <a id="family-scroll-pr"></a>`scroll-pr-` | `--spacing-*` | `scroll-padding-right` |
| <a id="family-scroll-pt"></a>`scroll-pt-` | `--spacing-*` | `scroll-padding-top` |
| <a id="family-scroll-px"></a>`scroll-px-` | `--spacing-*` | `scroll-padding-inline` |
| <a id="family-scroll-py"></a>`scroll-py-` | `--spacing-*` | `scroll-padding-block` |
| <a id="family-translate"></a>`translate-` | `--spacing-*` | `translate` |
| <a id="family-scroll-mxe"></a>`scroll-mxe-` | `--spacing-*` | `scroll-margin-inline-end` |
| <a id="family-scroll-mxs"></a>`scroll-mxs-` | `--spacing-*` | `scroll-margin-inline-start` |
| <a id="family-scroll-mye"></a>`scroll-mye-` | `--spacing-*` | `scroll-margin-block-end` |
| <a id="family-scroll-mys"></a>`scroll-mys-` | `--spacing-*` | `scroll-margin-block-start` |
| <a id="family-scroll-pxe"></a>`scroll-pxe-` | `--spacing-*` | `scroll-padding-inline-end` |
| <a id="family-scroll-pxs"></a>`scroll-pxs-` | `--spacing-*` | `scroll-padding-inline-start` |
| <a id="family-scroll-pye"></a>`scroll-pye-` | `--spacing-*` | `scroll-padding-block-end` |
| <a id="family-scroll-pys"></a>`scroll-pys-` | `--spacing-*` | `scroll-padding-block-start` |
| <a id="family-shape-margin"></a>`shape-margin-` | `--spacing-*` | `shape-margin` |
| <a id="family-word-spacing"></a>`word-spacing-` | `--spacing-*` | `word-spacing` |
| <a id="family-border-spacing"></a>`border-spacing-` | `--spacing-*` | `border-spacing` |
| <a id="family-outline-offset"></a>`outline-offset-` | `--spacing-*` | `outline-offset` |

Values in [Spacing](/reference/tokens/spacing).

<a id="container"></a>

## Container sizes

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-h"></a>`h-` | `--container-*` | `height` |
| <a id="family-w"></a>`w-` | `--container-*` | `width` |
| <a id="family-basis"></a>`basis-` | `--container-*` | `flex-basis` |
| <a id="family-max-h"></a>`max-h-` | `--container-*` | `max-height` |
| <a id="family-max-w"></a>`max-w-` | `--container-*` | `max-width` |
| <a id="family-min-h"></a>`min-h-` | `--container-*` | `min-height` |
| <a id="family-min-w"></a>`min-w-` | `--container-*` | `min-width` |
| <a id="family-size-x"></a>`size-x-` | `--container-*` | `inline-size` |
| <a id="family-size-y"></a>`size-y-` | `--container-*` | `block-size` |
| <a id="family-max-size-x"></a>`max-size-x-` | `--container-*` | `max-inline-size` |
| <a id="family-max-size-y"></a>`max-size-y-` | `--container-*` | `max-block-size` |
| <a id="family-min-size-x"></a>`min-size-x-` | `--container-*` | `min-inline-size` |
| <a id="family-min-size-y"></a>`min-size-y-` | `--container-*` | `min-block-size` |

Values in [Container sizes](/reference/tokens/container).

<a id="radius"></a>

## Radius

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-r"></a>`r-` | `--radius-*` | `border-radius` |
| <a id="family-rbl"></a>`rbl-` | `--radius-*` | `border-bottom-left-radius` |
| <a id="family-rbr"></a>`rbr-` | `--radius-*` | `border-bottom-right-radius` |
| <a id="family-ree"></a>`ree-` | `--radius-*` | `border-end-end-radius` |
| <a id="family-res"></a>`res-` | `--radius-*` | `border-end-start-radius` |
| <a id="family-rse"></a>`rse-` | `--radius-*` | `border-start-end-radius` |
| <a id="family-rss"></a>`rss-` | `--radius-*` | `border-start-start-radius` |
| <a id="family-rtl"></a>`rtl-` | `--radius-*` | `border-top-left-radius` |
| <a id="family-rtr"></a>`rtr-` | `--radius-*` | `border-top-right-radius` |

Values in [Radius](/reference/tokens/radius).

<a id="shadow"></a>

## Shadow

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-shadow"></a>`shadow-` | `--shadow-*` | `box-shadow` |

Values in [Shadow](/reference/tokens/shadow).

<a id="font"></a>

## Font

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-font"></a>`font-` | `--font-family-*` | `font-family` |
| `font-` | `--font-size-*` | `font-size` |
| `font-` | `--font-weight-*` | `font-weight` |

Values in [Font](/reference/tokens/font).

<a id="text"></a>

## Text

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-text"></a>`text-` | `--text-*` | `font-size, line-height, letter-spacing` |

Values in [Text](/reference/tokens/text).

<a id="leading"></a>

## Leading

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-leading"></a>`leading-` | `--leading-*` | `line-height` |

Values in [Leading](/reference/tokens/leading).

<a id="tracking"></a>

## Tracking

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-tracking"></a>`tracking-` | `--tracking-*` | `letter-spacing` |

Values in [Tracking](/reference/tokens/tracking).

<a id="motion"></a>

## Motion

| Prefix | Token namespace | Properties |
| --- | --- | --- |
| <a id="family-animate"></a>`animate-` | `--animate-*` | `animation` |
| <a id="family-animation"></a>`animation-` | `--duration-*` | `animation-duration` |
| `animation-` | `--easing-*` | `animation-timing-function` |
| <a id="family-transition"></a>`transition-` | `--duration-*` | `transition-duration` |
| `transition-` | `--easing-*` | `transition-timing-function` |
| <a id="family-animation-delay"></a>`animation-delay-` | `--duration-*` | `animation-delay` |
| <a id="family-transition-delay"></a>`transition-delay-` | `--duration-*` | `transition-delay` |

Values in [Motion](/reference/tokens/motion).

<a id="resolution-boundaries"></a>

## Resolution boundaries

`font-` has separate families for `--font-family-*`, `--font-size-*` and `--font-weight-*`. A key must select one of them. If the key exists in more than one of these namespaces, the class is ambiguous and emits no CSS.

Register tokens in `@theme`. A native custom property outside it does not register a key, and a new namespace does not automatically create a utility family. Define a matching `@utility` pattern when adding a new family.

`--color-text-muted` belongs to the `color` namespace with key `text-muted`. Color roles use the same families as palette colors; they are not separate utility namespaces.

This index describes token-consuming families. Fixed spellings, such as `w-full`, keep their definition even when a token has the same key. Direct-value functions, such as `p(4)`, and native declarations, such as `(padding:1rem)`, accept values without a token lookup.

See [token registration and resolution](/reference/rules/modes#namespace-resolution) and [utility definitions](/reference/directives/definitions#utilities) and [declaration forms](/reference/rules/declarations) and [building a theme](/guide/theme#define-tokens).

## Related reference

- [rules/modes](/reference/rules/modes.md)
- [rules/declarations](/reference/rules/declarations.md)
- [directives/definitions](/reference/directives/definitions.md)
