Skip to content
Back to skills

W3c Brand Token System

ASecurity

Enforce professional standards for brand governance through "Design Tokens." This skill focuses on the **W3C Design Token Community Group (DTCG)** standard to ensure 1:1 synchronization between **Figma** designs and **Tailwind/CSS** implementation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 24, 2026
designgo

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 24, 2026

npx -y skills add iDorgham/Workspace-Factory --skill w3c-brand-token-system --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of W3c Brand Token System?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for W3c Brand Token System
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/idorgham-w3c-brand-token-system/badge)](https://www.skillsdirectory.com/skills/idorgham-w3c-brand-token-system)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
type: Skill
subagents: [core-validator, integrity-bot]
agents: [master-guide, swarm-router]
dependencies: [core-orchestration, global-sync]
version: 1.0.0
---



# πŸ—οΈ W3C Brand Token System (Design-to-Code)

## Purpose
Enforce professional standards for brand governance through "Design Tokens." This skill focuses on the **W3C Design Token Community Group (DTCG)** standard to ensure 1:1 synchronization between **Figma** designs and **Tailwind/CSS** implementation.

---

## Technique 1 β€” Token Hierarchy (The "CoreThree" levels)

### 1. Primitive Tokens (Global)
- **Definition**: The raw values of the brand (e.g., `color-blue-500`, `font-size-base`).
- **Rule**: Never use Primitives directly in UI. They are the "source of truth" but carry no semantic meaning.

### 2. Semantic Tokens (Contextual)
- **Definition**: Mapping primitives to meaning (e.g., `action-primary-color`, `text-header-large`).
- **Rule**: These are the "Workhorse" tokens. Use these for 90% of all design and development work.

### 3. Component Tokens (Specific)
- **Definition**: Tokens tied to a specific UI element (e.g., `button-primary-background-hover`).
- **Rule**: Use only for high-complexity components with specific state variations.

---

## Technique 2 β€” Figma to Tailwind Pipeline

- **Naming Convention**: Use kebab-case following the `category-type-item-state` pattern (e.g., `color-brand-primary-hover`).
- **Standard**: All tokens must be exportable via **Style Dictionary** format to ensure they can be consumed by both JSON-based Figma plugins and CSS variable files.

---

## Technique 3 β€” Typography & Spacing Tokens

### Proportional Relationships
- **Scale**: Use a **Modular Scale** (e.g., 1.250 Major Third) for font sizes to ensure mathematical harmony.
- **Rhythm**: Map spacing tokens to the **8pt Grid** (e.g., `space-1` = 4px, `space-2` = 8px).

---

## πŸ›‘οΈ Critical Failure Modes (Anti-Patterns)

| Anti-Pattern | Result | Correction |
| :--- | :--- | :--- |
| **Ad-hoc Hex Codes** | Brand Drift / Visual Debt | Every color must be linked to a Semantic Token. No hardcoded hex values. |
| **Inconsistent Naming** | Friction between teams | Enforce the `category-type-item` naming convention across Figma and CSS. |
| **Missing Dark Mode logic** | Accessibility failure | Every Semantic Token must have a defined **Alias** for Dark Mode themes. |

---

## Success Criteria (Token QA)
- [ ] JSON export passes W3C Token validation.
- [ ] Tailwind config correctly imports all Semantic Tokens.
- [ ] Figma styles are 1:1 mapped to the Code implementation.
- [ ] Modular scale for typography is mathematically consistent.

Files in this skill

  • SKILL.md2.6 KB
  • core.py373 B
  • manifest.yaml192 B
  • tests/test_core.py311 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in design β†’

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.