---
id: portfolio.ds.primitive-scale
name: "Primitive Scale"
type: token
status: active
relations: [{"type":"related_to","target":"portfolio.ds.primitive-scale-legacy"}]
sources: ["packages/design-system/src/styles/tokens.css","packages/design-system/src/components/ComponentDetailBody.astro","apps/portfolio-site/src/lib/designSystemDocData.ts","apps/portfolio-site/src/lib/designSystemRegistry.ts","apps/portfolio-site/src/design-system/docs/primitive-scale.astro"]
catalog: ["apps/portfolio-site/src/design-system/docs/primitive-scale.astro"]
previews: []
---
# Primitive Scale

## Purpose
An independent responsive primitive distance scale for owner-directed refinement.

## Contract
- The catalog entry is nested in the non-clickable expandable `Tokens` menu item after the static line.
- Canonical route: `/design-system/primitive-scale/`.
- Own independent `--primitive-space-*` values, not aliases to the legacy `--space-*` family.
- Component contracts declare their own adoption of this scale. This token does not maintain a reverse list of consumers.
- Values use rem units relative to the root font size. Tablet, Desktop and Ultra-wide retain the base values.
- The base scale contains every step from Space 1 through Space 12: `n * 0.25rem`, or 4px through 48px in 4px increments at the default 16px root. Space 9 is 36px; Space 10 is 40px. Legacy values are unchanged.
- Mobile (up to 640px) shifts each token to the previous token's base value, except Space 1, which stays at 0.25rem. Space 2 shifts to 0.25rem as well. Use literal values so shifts do not cascade through already-shifted neighbors.
- The shared Preview frame applies the selected breakpoint profile independently of the browser viewport; sample labels and rendered lengths follow the same values.
- Placement below the line does not imply completed review or approval for adoption.

## Current Tokens
| Token | Tablet / Desktop / Ultra-wide | Mobile |
| --- | --- | --- |
| `--primitive-space-1` | 0.25rem / 4px | 0.25rem / 4px |
| `--primitive-space-2` | 0.5rem / 8px | 0.25rem / 4px |
| `--primitive-space-3` | 0.75rem / 12px | 0.5rem / 8px |
| `--primitive-space-4` | 1rem / 16px | 0.75rem / 12px |
| `--primitive-space-5` | 1.25rem / 20px | 1rem / 16px |
| `--primitive-space-6` | 1.5rem / 24px | 1.25rem / 20px |
| `--primitive-space-7` | 1.75rem / 28px | 1.5rem / 24px |
| `--primitive-space-8` | 2rem / 32px | 1.75rem / 28px |
| `--primitive-space-9` | 2.25rem / 36px | 2rem / 32px |
| `--primitive-space-10` | 2.5rem / 40px | 2.25rem / 36px |
| `--primitive-space-11` | 2.75rem / 44px | 2.5rem / 40px |
| `--primitive-space-12` | 3rem / 48px | 2.75rem / 44px |

Pixel equivalents assume the default 16px root font size.

## Use
- Review and refine the isolated scale in its Design System preview.

## Do Not Use
- Do not automatically migrate components, templates or semantic spacing mappings.
- Do not redefine legacy tokens through this scale.

## Accessibility
- Keep text labels and values alongside distance samples; sample length alone must not convey the token identity.
- Preserve rem units so values follow the root font size.

## Verification
- Confirm the entry is nested under `Tokens` after the static menu line and resolves at its flat canonical route.
- Confirm the tokens are independent literals with no aliases to Primitive Scale (Legacy).
- Confirm the Mobile selector shifts every step except Space 1 and that Tablet/Desktop/Ultra-wide restore the base values even on a mobile viewport.
