Claude-skill-registry demo-design-tokens

Default design tokens for demo applications. Use when building demos without a formal design system. Provides colors, typography, spacing, shadows, and transitions.

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/demo-design-tokens" ~/.claude/skills/majiayu000-claude-skill-registry-demo-design-tokens && rm -rf "$T"
manifest: skills/data/demo-design-tokens/SKILL.md
source content

Demo Design Tokens

Overview

Pre-configured design tokens for graceful demo UI without a formal design system.

Color System

Brand Colors

--brand-primary: #2563EB;    /* Blue-600 */
--brand-secondary: #1E40AF;  /* Blue-800 */
--brand-accent: #7C3AED;     /* Violet-600 */

Neutral Colors

--neutral-50: #F8FAFC;   /* Background */
--neutral-100: #F1F5F9;  /* Surface alt */
--neutral-200: #E2E8F0;  /* Border */
--neutral-300: #CBD5E1;  /* Border hover */
--neutral-500: #64748B;  /* Text secondary */
--neutral-700: #334155;  /* Text primary */
--neutral-900: #0F172A;  /* Text emphasis */

Semantic Colors

/* Status */
--success: #22C55E;      /* Green-500 */
--warning: #EAB308;      /* Yellow-500 */
--error: #EF4444;        /* Red-500 */
--info: #3B82F6;         /* Blue-500 */

/* Severity (for data visualization) */
--severity-critical: #DC2626;  /* Red-600 */
--severity-high: #F97316;      /* Orange-500 */
--severity-medium: #EAB308;    /* Yellow-500 */
--severity-low: #3B82F6;       /* Blue-500 */
--severity-info: #6B7280;      /* Gray-500 */

/* Condition */
--condition-excellent: #22C55E;  /* Green-500 */
--condition-good: #84CC16;       /* Lime-500 */
--condition-fair: #EAB308;       /* Yellow-500 */
--condition-poor: #F97316;       /* Orange-500 */

Typography

Font Stack

--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
--font-mono: 'JetBrains Mono', 'SF Mono', monospace;

Type Scale

TokenSizeLine HeightWeightUse
--text-xs12px16px400Labels, captions
--text-sm14px20px400Secondary text
--text-base16px24px400Body
--text-lg18px28px500Emphasis
--text-xl20px28px600Card titles
--text-2xl24px32px600Section headers
--text-3xl30px36px700Page titles
--text-4xl36px40px700Hero text

Spacing Scale

Based on 4px grid:

TokenValueTailwind
--space-14pxp-1
--space-28pxp-2
--space-312pxp-3
--space-416pxp-4
--space-520pxp-5
--space-624pxp-6
--space-832pxp-8
--space-1040pxp-10
--space-1248pxp-12

Shadows

TokenValueUse
--shadow-sm0 1px 2px rgba(0,0,0,0.05)Subtle elevation
--shadow-md0 4px 6px rgba(0,0,0,0.1)Cards
--shadow-lg0 10px 15px rgba(0,0,0,0.1)Modals, dropdowns
--shadow-xl0 20px 25px rgba(0,0,0,0.15)Popovers

Border Radius

TokenValueUse
--radius-sm4pxButtons, inputs
--radius-md8pxCards
--radius-lg12pxModals
--radius-xl16pxLarge containers
--radius-full9999pxPills, avatars

Transitions

TokenValueUse
--duration-fast150msMicro-interactions
--duration-normal300msDefault
--duration-slow500msPage transitions
--ease-outcubic-bezier(0, 0, 0.2, 1)Entrances
--ease-in-outcubic-bezier(0.4, 0, 0.2, 1)Transitions

Tailwind Config Extension

// tailwind.config.ts
export default {
  theme: {
    extend: {
      colors: {
        brand: {
          primary: '#2563EB',
          secondary: '#1E40AF',
          accent: '#7C3AED',
        },
        severity: {
          critical: '#DC2626',
          high: '#F97316',
          medium: '#EAB308',
          low: '#3B82F6',
          info: '#6B7280',
        },
        condition: {
          excellent: '#22C55E',
          good: '#84CC16',
          fair: '#EAB308',
          poor: '#F97316',
        },
      },
      fontFamily: {
        sans: ['Inter', 'system-ui', 'sans-serif'],
        mono: ['JetBrains Mono', 'SF Mono', 'monospace'],
      },
    },
  },
};

Best Practices

  • Use semantic tokens over raw values
  • Maintain consistent spacing rhythm
  • Pair shadows with border radius
  • Test colors for WCAG contrast

Anti-Patterns

  • NO hardcoded hex values in components
  • NO inconsistent spacing values
  • NO mixing design systems