Skip to content
Agentmart
Submit a tool

brand-system-tokens

Use when establishing or migrating to a token-based design system.

Skill by x3allamerican

IndexedApache-2.0
Write a review

Chalk Labs

Need help deploying brand-system-tokens?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/x3allamerican-brand-system-tokens

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when establishing or migrating to a token-based design system. Covers the multi-layer token architecture (primitive → semantic → component), naming conventions, theming patterns, and how to migrate from hard-coded values without a full rewrite.

Use cases: design, frontend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/brand-system-tokens

What's inside

Skill name
brand-system-tokens
Description
Use when establishing or migrating to a token-based design system. Covers the multi-layer token architecture (primitive → semantic → component), naming conventions, theming patterns, and how to migrate from hard-coded values without a full rewrite.
License
Apache-2.0
Instructions
87 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Brand System Tokens

A token system is the contract between design and code. Without it, every component is reinventing the wheel.

## Token layers (three deep)

### Primitive tokens (raw values)
```css
--blue-500: #3B82F6;
--gray-50: #F8FAFC;
--space-4: 16px;
--radius-md: 8px;
```

Raw values. Never used directly in UI components.

### Semantic tokens (intent-based)
```css
--color-text-primary: var(--gray-50);
--color-bg: var(--gray-900);
--color-accent: var(--teal-500);
--space-card-padding: var(--space-5);
--radius-card: var(--radius-md);
```

Semantic = "what role this color plays." This layer is what changes between themes.

### Component tokens (per-component)
```css
.button-primary {
  --bg: var(--color-accent);
  --text: var(--color-bg);
  --padding: var(--space-3) var(--space-5);
}
```

Per-component overrides if needed. Most components only use semantic tokens.

## Naming conventions

| Prefix | Example | Use |
|---|---|---|
| `color-` | `--color-bg`, `--color-text-primary` | Colors |
| `space-` | `--space-4`, `--space-card-padding` | Spacing |
| `radius-` | `--radius-md` | Border radius |
| `shadow-` | `--shadow-card` | Box shadows |
| `motion-` | `--motion-fast` | Durations |
| `font-` | `--font-display`, `--font-body` | Type stacks |

Use consistent prefixes. Avoid abbreviations.

## Theming with tokens

Theme = swap semantic tokens to point at different primitives:

```css
:root {
  --color-bg: var(--gray-900);
  --color-text-primary: var(--gray-50);
}
[data-theme="light"] {
  --color-bg: var(--gray-50);
  --color-text-primary: var(--gray-900);
}
```

Components don't change. Just toggle `data-theme` on root.

## Migrating from hard-coded values

Step 1: Audit existing colors / spacing. Count unique values.
Step 2: Build the token ladder based on what's actually used.
Step 3: Replace component-by-component. Use grep + sed to find all `#3B82F6` and replace with `var(--color-accent)`.
Step 4: Test theming works by adding light theme variant.

## Common mistakes

- One layer only (no primitive layer, semantic only) — can't share primitives across themes
- Too many semantic tokens (`--color-button-primary-bg-hover-active-light`) — keep it sparse
- Semantic names that lock to color ("blue") instead of intent ("primary")
- Token tree too deep (4+ levels) — hard to debug

## Where this fits in X3 Compass

X3 Compass uses two-layer (primitive + semantic) in `brand/palette.css`. Components consume semantic tokens. Future light-mode = swap semantic vars on `:root`.

From x3allamerican/design-skills-fleetsafety, Apache-2.0.

More from x3allamerican/design-skills-fleetsafety

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
May 13, 2026 (5 months ago)
Last release
May 13, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from x3allamerican

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get brand-system-tokens running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying brand-system-tokens?

CallGet help
Cite this page

brand-system-tokens skill. Agent Mart. https://agentmart.dev/skills/x3allamerican-brand-system-tokens (last updated 2026-10-24)