design-system

Token 架構、元件規格與投影片生成。三層 Token(原始→語意→元件)、CSS 變數、間距/字型尺度、元件規格、策略性投影片製作。適用於設計 Token、系統化設計、符合品牌規範的簡報。

npx skills add https://github.com/nextlevelbuilder/ui-ux-pro-max-skill --skill design-system

Design System

Token architecture, component specifications, systematic design, slide generation.

When to Use

  • Design token creation
  • Component state definitions
  • CSS variable systems
  • Spacing/typography scales
  • Design-to-code handoff
  • Tailwind theme configuration
  • Slide/presentation generation

Token Architecture

Load: references/token-architecture.md

Three-Layer Structure

Primitive (raw values)
       ↓
Semantic (purpose aliases)
       ↓
Component (component-specific)

Example:

/* Primitive */
--color-blue-600: #2563EB;

/* Semantic */
--color-primary: var(--color-blue-600);

/* Component */
--button-bg: var(--color-primary);

Script Paths

Script paths in this skill and its references/ are relative to the directory that contains this SKILL.md, not to the project: scripts/<file> is this skill's own scripts/ folder, and ../<skill>/scripts/<file> is a sibling sub-skill installed alongside it. Build the full path from that directory (Claude Code reports it as the skill's base directory when the skill loads) and keep the working directory at the project root — the scripts read and write project files such as docs/brand-guidelines.md, assets/design-tokens.json or src/ relative to it.

Quick Start

Generate tokens:

node scripts/generate-tokens.cjs --config tokens.json -o tokens.css

Validate usage:

node scripts/validate-tokens.cjs --dir src/

References

TopicFile
Token Architecturereferences/token-architecture.md
Primitive Tokensreferences/primitive-tokens.md
Semantic Tokensreferences/semantic-tokens.md
Component Tokensreferences/component-tokens.md
Component Specsreferences/component-specs.md
States & Variantsreferences/states-and-variants.md
Tailwind Integrationreferences/tailwind-integration.md

Component Spec Pattern

PropertyDefaultHoverActiveDisabled
Backgroundprimaryprimary-darkprimary-darkermuted
Textwhitewhitewhitemuted-fg
Bordernonenonenonemuted-border
Shadowsmmdnonenone

Scripts

ScriptPurpose
generate-tokens.cjsGenerate CSS from JSON token config
validate-tokens.cjsCheck for hardcoded values in code
search-slides.pyBM25 search + contextual recommendations
slide-token-validator.pyValidate slide HTML for token compliance
fetch-background.pyFetch images from Pexels/Unsplash

Templates

TemplatePurpose
design-tokens-starter.jsonStarter JSON with three-layer structure

Integration

With brand: Extract primitives from brand colors/typography With ui-styling: Component tokens → Tailwind config

Skill Dependencies: brand, ui-styling Primary Agents: ui-ux-designer, frontend-developer

Slide System

Brand-compliant presentations using design tokens + Chart.js + contextual decision system.

Source of Truth

FilePurpose
docs/brand-guidelines.mdBrand identity, voice, colors
assets/design-tokens.jsonToken definitions (primitive→semantic→component)
assets/design-tokens.cssCSS variables (import in slides)
assets/css/slide-animations.cssCSS animation library

Slide Search (BM25)

# Basic search (auto-detect domain)
python scripts/search-slides.py "investor pitch"

# Domain-specific search
python scripts/search-slides.py "problem agitation" -d copy
python scripts/search-slides.py "revenue growth" -d chart

# Contextual search (Premium System)
python scripts/search-slides.py "problem slide" --context --position 2 --total 9
python scripts/search-slides.py "cta" --context --position 9 --prev-emotion frustration

Decision System CSVs

FilePurpose
data/slide-strategies.csv15 deck structures + emotion arcs + sparkline beats
data/slide-layouts.csv25 layouts + component variants + animations
data/slide-layout-logic.csvGoal → Layout + break_pattern flag
data/slide-typography.csvContent type → Typography scale
data/slide-color-logic.csvEmotion → Color treatment
data/slide-backgrounds.csvSlide type → Image category (Pexels/Unsplash)
data/slide-copy.csv25 copywriting formulas (PAS, AIDA, FAB)
data/slide-charts.csv25 chart types with Chart.js config

Contextual Decision Flow

1. Parse goal/context
        ↓
2. Search slide-strategies.csv → Get strategy + emotion beats
        ↓
3. For each slide:
   a. Query slide-layout-logic.csv → layout + break_pattern
   b. Query slide-typography.csv → type scale
   c. Query slide-color-logic.csv → color treatment
   d. Query slide-backgrounds.csv → image if needed
   e. Apply animation class from slide-animations.css
        ↓
4. Generate HTML with design tokens
        ↓
5. Validate with slide-token-validator.py

Pattern Breaking (Duarte Sparkline)

Premium decks alternate between emotions for engagement:

"What Is" (frustration) ↔ "What Could Be" (hope)

System calculates pattern breaks at 1/3 and 2/3 positions.

Slide Requirements

ALL slides MUST:

  1. Import assets/design-tokens.css - single source of truth
  2. Use CSS variables: var(--color-primary), var(--slide-bg), etc.
  3. Use Chart.js for charts (NOT CSS-only bars)
  4. Include navigation (keyboard arrows, click, progress bar)
  5. Center align content
  6. Focus on persuasion/conversion

Chart.js Integration

<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.min.js"></script>

<canvas id="revenueChart"></canvas>
<script>
new Chart(document.getElementById('revenueChart'), {
    type: 'line',
    data: {
        labels: ['Sep', 'Oct', 'Nov', 'Dec'],
        datasets: [{
            data: [5, 12, 28, 45],
            borderColor: '#FF6B6B',  // Use brand coral
            backgroundColor: 'rgba(255, 107, 107, 0.1)',
            fill: true,
            tension: 0.4
        }]
    }
});
</script>

Token Compliance

/* CORRECT - uses token */
background: var(--slide-bg);
color: var(--color-primary);
font-family: var(--typography-font-heading);

/* WRONG - hardcoded */
background: #0D0D0D;
color: #FF6B6B;
font-family: 'Space Grotesk';

Reference Implementation

Working example with all features:

assets/designs/slides/claudekit-pitch-251223.html

Command

/slides:create "10-slide investor pitch for ClaudeKit Marketing"

Best Practices

  1. Never use raw hex in components - always reference tokens
  2. Semantic layer enables theme switching (light/dark)
  3. Component tokens enable per-component customization
  4. Use HSL format for opacity control
  5. Document every token's purpose
  6. Slides must import design-tokens.css and use var() exclusively

來自 nextlevelbuilder 的更多技能

ckm:design-system
nextlevelbuilder
Token 架構、元件規格與投影片生成。三層 Token(原始→語意→元件)、CSS 變數、間距/字型比例、元件規格、策略性投影片製作。適用於設計 Token、系統化設計、符合品牌規範的簡報。
designdevelopmentcreative
ckm:design
nextlevelbuilder
全方位設計技能:品牌識別、設計標記、UI樣式、標誌生成(55種風格,Gemini AI)、企業識別方案(50項交付物,CIP模擬圖)、HTML簡報(Chart.js)、橫幅設計(22種風格,社群/廣告/網頁/印刷)、圖示設計(15種風格,SVG,Gemini 3.1 Pro)、社群照片(HTML→截圖,多平台)。動作:設計標誌、建立CIP、生成模擬圖、製作投影片、設計橫幅、生成圖示、建立社群照片、社群媒體圖片、品牌...
designcreativemedia
ckm:ui-styling
nextlevelbuilder
使用 shadcn/ui 元件(基於 Radix UI + Tailwind 建構)、Tailwind CSS 工具優先樣式及基於畫布的視覺設計,打造美觀且無障礙的使用者介面。適用於建構使用者介面、實作設計系統、建立響應式版面、新增無障礙元件(對話框、下拉選單、表單、表格)、自訂主題與色彩、實作深色模式、產生視覺設計與海報,或在應用程式中建立一致的樣式模式。
designdevelopmentcreative
ckm:brand
nextlevelbuilder
品牌語調、視覺識別、訊息框架、資產管理、品牌一致性。適用於品牌內容、語氣、行銷素材、品牌合規、風格指南。
designmarketingcreative
ckm:slides
nextlevelbuilder
使用 Chart.js、設計標記、響應式佈局、文案撰寫公式及情境式投影片策略,建立具策略性的 HTML 簡報。
designcreative
ckm:banner-design
nextlevelbuilder
為社交媒體、廣告、網站主視覺、創意素材及印刷品設計橫幅。提供多種藝術方向選項,搭配AI生成視覺效果。動作:設計、創作、生成橫幅。平台:Facebook、Twitter/X、LinkedIn、YouTube、Instagram、Google Display、網站主視覺、印刷品。風格:極簡、漸層、粗體字型、照片式、插畫風、幾何、復古、玻璃擬態、3D、霓虹、雙色調、編輯式、拼貼。使用ui-ux-pro-max、frontend-design、ai-artist、ai-multimodal技能。
designcreativemarketing
banner-design
nextlevelbuilder
We need to translate the given text from English to Traditional Chinese. The text describes a banner design skill. We must preserve the name "banner-design" but it's not in the text, so we don't include it. We preserve product names, protocol names, URLs, numbers, technical terms. The text includes platform names like Facebook, Twitter/X, LinkedIn, etc., and style names like minimalist, gradient, etc. Also skill names like ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal. These should remain as is. Translate the rest into Traditional Chinese. Let's translate: "Design banners for social media, ads, website heroes, creative assets, and print." -> "為社交媒體、廣告、網站主視覺、創意素材和印刷品設計橫幅。" "Multiple art direction options with AI-generated visuals." -> "多種藝術方向選項,搭配AI生成的視覺效果。" "Actions: design, create, generate banner." -> "動作:設計、建立、生成橫幅。" "Platforms:
slides
nextlevelbuilder
使用Chart.js、設計標記、響應式佈局、文案撰寫公式及情境式投影片策略,建立具策略性的HTML簡報。
designcreativedocument