# Tracking

The preset letter-spacing scale.

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

<a id="consumers"></a>

## Classes

| Class | Property | Declarations |
| --- | --- | --- |
| [`tracking-<name>`](/reference/tokens/families#family-tracking) | `letter-spacing` | `letter-spacing: var(--tracking-<name>)` |

Tight keys already contain negative lengths; use `tracking-tight` directly. A signed token form such as `-tracking-tight` is not supported.

<a id="values"></a>

## Values

The nonzero preset values use em, relative to the font size where letter-spacing is declared. `tracking-normal` supplies zero; use `(letter-spacing:normal)` for the native keyword.

| Class | Variable | Value |
| --- | --- | --- |
| `tracking-tightest` | `--tracking-tightest` | `-.072em` |
| `tracking-tighter` | `--tracking-tighter` | `-.04em` |
| `tracking-tight` | `--tracking-tight` | `-.02em` |
| `tracking-normal` | `--tracking-normal` | `0` |
| `tracking-wide` | `--tracking-wide` | `.02em` |
| `tracking-wider` | `--tracking-wider` | `.04em` |
| `tracking-widest` | `--tracking-widest` | `.12em` |

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

## Inherited spacing keeps its computed length

`tracking-widest` supplies `.12em`. At a 16px font size it computes to 1.92px. A child with a 32px font inherits that length; it does not automatically double the spacing.

**Reapplying em tracking recalculates its length**

Both children have the same font and size. The inherited letter-spacing length stays 1.92px; reapplying the class evaluates .12em at the child’s 32px font size.

- The parent uses font-md and tracking-widest. With a 16px root font size, its .12em tracking computes to a 1.92px length.
- Both child samples use font-3xl, or 32px, and the same word and font.
- The first child inherits the computed 1.92px letter spacing. The second reapplies tracking-widest, so .12em computes against 32px and becomes 3.84px.
- The second text box is wider even though the glyph size is unchanged. The colored guides show layout widths, not glyph-ink bounds or borders emitted by tracking.

Apply `tracking-widest` on the child to evaluate `.12em` against its own 32px font size, producing 3.84px. This differs from the unitless ratios used by Leading.

Letter spacing adjusts the spacing of text rather than stretching the glyph shapes. It can change line wrapping; keep the container free to grow and inspect the actual font and language.

A `text-*` treatment includes a letter-spacing declaration. On the same element and under the same conditions, a `tracking-*` utility follows that recipe and can override its spacing. For a literal length, use a native declaration such as `(letter-spacing:-.03em)`.

See [Leading](/reference/tokens/leading#inherited-ratio) and [Text treatment companions](/reference/tokens/text#primary-and-companions) and [native tracking behavior](https://www.w3.org/TR/css-text-3/#letter-spacing-property).

<a id="usage"></a>

## Usage

Compare the same phrase at one font size with two tracking values.

```html
<div>
  <p class="… font-lg tracking-tight">Letter spacing shapes this line.</p>
  <p class="… font-lg tracking-widest">Letter spacing shapes this line.</p>
</div>
```

```css disclosure=generated-css
@layer theme{:root,:host{--tracking-tight:-.02em;--tracking-widest:.12em;--font-size-lg:1.125rem}}@layer utilities{.font-lg{font-size:var(--font-size-lg)}.tracking-tight{letter-spacing:var(--tracking-tight)}.tracking-widest{letter-spacing:var(--tracking-widest)}}
```

<a id="customize"></a>

## Customize

Change a preset value or add a token: `--tracking-display` creates `tracking-display`.

```css
@theme {
  --tracking-tight: -.03em;
  --tracking-display: -.05em;
}
```

```css disclosure=generated-css
@layer theme{:root,:host{--tracking-display:-.05em}}@layer utilities{.tracking-display{letter-spacing:var(--tracking-display)}}
```

See [theme directives](/reference/directives/theme) and [Typography](/guide/typography#without-vs-with-text-token).

## Related reference

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