design-tokens

Design system foundation. Colors, typography, spacing. Single source of truth. No raw values.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "design-tokens" with this command: npx skills add soborbo/claudeskills/soborbo-claudeskills-design-tokens

Design Tokens Skill

One config. Consistent design. Zero guessing.

Purpose

Foundation layer for all UI. Every visual property comes from here.

Output

tokens_generated: true
tailwind_config: "tailwind.config.mjs"
css_variables: "src/styles/tokens.css"
design_token_verdict: PASS | WARN | FAIL

Single Source of Truth

This skill is the ONLY source for visual tokens. All UI skills consume from here. No local overrides.

Cross-references:

  • section-skeleton → uses spacing/colors
  • astro-components → uses all tokens
  • frontend-design → uses all tokens

Token Categories

TypeTokensUsage
Semanticprimary-*, accent, neutral-*Use in components
Utilityspacing.*, font-*, shadow-*Internal mapping only

Rule: Components use semantic tokens. Utility for internal only.

Token Usage Scope

TokenAllowedForbidden
accentCTAs, links, highlightsBody text, backgrounds
primary-900Headlines, body textButtons
primary-100Section backgroundsText
neutral-200Borders, dividersCTAs

Wrong scope = WARN.

Forbidden Raw Values

TypeForbiddenUse Instead
Colors#FF6B35, rgb()bg-accent, text-primary-900
Spacingmt-[23px]mt-6
Font sizestext-[18px]text-lg
Shadowsshadow-[...]shadow-card
Radiusrounded-[12px]rounded-lg

Any raw value in component = FAIL.

A11y Contrast Requirements

CombinationMin RatioStandard
Body text on white4.5:1AA
Body text on primary-1004.5:1AA
Large text (≥18px)3:1AA
CTA text on accent4.5:1AA
UI components3:1AA

Contrast fail = FAIL.

Color System

Required

ColorTokensPurpose
Primary50-950 scaleBrand, text, backgrounds
AccentDEFAULT, hover, lightCTAs, links
Neutral50-900 scaleBorders, backgrounds
Semanticsuccess, error, warningFeedback

Usage

TokenUse For
primary-900Headlines, body
primary-700Secondary text
primary-100Light section bg
accentCTAs, links
accent-hoverButton hover

Typography (Fluid Scale)

TokenRangeUse
text-base16-18pxBody
text-lg18-20pxLead
text-2xl24-32pxH3
text-3xl30-40pxH2
text-4xl/5xl36-64pxH1

Font: Intersystem-uisans-serif

Spacing (8px Grid)

TokenValueUse
py-12 md:py-2048/80pxSection padding Y
px-4 md:px-816/32pxSection padding X
gap-6 md:gap-824/32pxComponent gap
p-4 md:p-616/24pxCard padding

Design Token Verdict

design_token_verdict: PASS | WARN | FAIL
issues: []
ConditionVerdict
Raw value in componentFAIL
Contrast failFAIL
Missing required tokenFAIL
Wrong token scopeWARN
Missing shade in scaleWARN
All rules passPASS

FAIL States

Condition
Hardcoded hex in component
Arbitrary spacing [Xpx]
Contrast ratio below AA
Missing primary scale
Missing accent colors

WARN States

Condition
Token used in wrong scope
Missing optional shades
Non-standard font loaded

Brand Intake

brand_intake:
  primary_color: "#XXXXXX"
  accent_color: "#XXXXXX"
  font: Inter | Poppins | System
  style: Modern | Classic | Playful
  industry: removals | cleaning | trades | legal

References

Definition of Done

  • tailwind.config.mjs generated
  • tokens.css with CSS variables
  • Primary has full scale (50-950)
  • Accent has hover + light
  • Contrast passes AA
  • No raw values in components
  • design_token_verdict = PASS

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

astro-seo

No summary provided by upstream source.

Repository SourceNeeds Review
General

astro-ux

No summary provided by upstream source.

Repository SourceNeeds Review
General

astro-a11y

No summary provided by upstream source.

Repository SourceNeeds Review
General

astro-animations

No summary provided by upstream source.

Repository SourceNeeds Review