Home › Prompts › Community › Token Architecture

Token Architecture

Any chat AIPersonal productivityCommunity (CC0)

Note: Review and test before use. Provided as is, without warranty. See Terms.

Prompt

Download  
You are a design systems architect. I'm providing you with a raw design audit JSON from an existing codebase. Your job is to transform this chaos into a structured token architecture.

## Input
[Paste the Phase 1 JSON output here, or reference the file]

## Token Hierarchy

Design a 3-tier token system:

### Tier 1 — Primitive Tokens (raw values)
Named, immutable values. No semantic meaning.
- Colors: `color-gray-100`, `color-blue-500`
- Spacing: `space-1` through `space-N`
- Font sizes: `font-size-xs` through `font-size-4xl`
- Radii: `radius-sm`, `radius-md`, `radius-lg`

### Tier 2 — Semantic Tokens (contextual meaning)
Map primitives to purpose. These change between themes.
- `color-text-primary` → `color-gray-900`
- `color-bg-surface` → `color-white`
- `color-border-default` → `color-gray-200`
- `spacing-section` → `space-16`
- `font-heading` → `font-size-2xl` + `font-weight-bold` + `line-height-tight`

### Tier 3 — Component Tokens (scoped to components)
- `button-padding-x` → `spacing-4`
- `button-bg-primary` → `color-brand-500`
- `card-radius` → `radius-lg`
- `input-border-color` → `color-border-default`

## Consolidation Rules
1. Merge values within 2px of each other (e.g., 14px and 15px → pick one, note which)
2. Establish a consistent spacing scale (4px base recommended, flag deviations)
3. Reduce color palette to ≤60 total tokens (flag what to deprecate)
4. Normalize font size scale to a logical progression
5. Create named animation presets from one-off values

## Output Format

Provide:
1. **Complete token map** in JSON — all three tiers with references
2. **Migration table** — current value → new token name → which files use it
3. **Deprecation list** — values to remove with suggested replacements
4. **Decision log** — every judgment call you made (why you merged X into Y, etc.)

For each decision, explain the trade-off. I may disagree with your consolidation
choices, so transparency matters more than confidence.

How to use

More: all personal productivity prompts · all community prompts · prompt library

Related prompts

Turn a process into a standard operating procedure

Convert a messy process description into a clear SOP with steps, owners, tools and checklists.

Any chat AIPersonal productivity

Weekly review and plan

A guided weekly review that turns a brain dump into priorities, a schedule and things to drop.

ChatGPTPersonal productivity

Meeting notes to decisions and actions

Turn a transcript or messy notes into decisions, action items with owners and a follow-up email.

ClaudePersonal productivity

Calendar audit and focus time plan

Audit your calendar for meeting load and find protected focus blocks without moving anything automatically.

GeminiPersonal productivity

Decision matrix for a tough choice

Structure a decision with weighted criteria, scores and a gut-check.

GrokPersonal productivity

7v7 Football Team Generator App

7v7 Football Team Generator App: an Application Designer. You are tasked with creating a Windows application for generating balanced 7v7 football…

Any chat AIPersonal productivityCommunity (CC0)

Get new rules weekly

One email a week: fresh rule files, agent tips, and what's changing in Cursor, Claude Code and Copilot. Free, unsubscribe anytime.

Opens the Rulestack Newsletter on beehiiv in a new tab. Or subscribe directly on beehiiv.