Community程式設計與開發github.com

設計系統

Token 架構、組件規格與簡報生成。三層 Token(原始→語意→組件)、CSS 變數、間距/字體排版比例、組件規格、策略性簡報建立。用於設計 Token、系統化設計、符合品牌的簡報。

設計系統 是什麼?

此技能「設計系統」為 AI 助手提供一套完整的設計系統管理與簡報生成功能,主要服務於 UI/UX 設計師與前端開發者。其核心是三層 Token 架構(原始 Token → 語意 Token → 組件 Token),透過 CSS 變數實現品牌設計的一致性與主題切換。使用者可以生成 CSS Token、驗證程式碼中是否有硬編碼值、並根據策略配置檔(CSV)動態產生符合品牌識別的簡報(包含 Chart.js 圖表與動畫)。該技能支援 Claude Code、Cursor 等平台,且依賴於「brand」與「ui-styling」兩個子技能來提取品牌顏色與樣式。具體運作流程包括:載入 Token 架構參考文件、執行 Node.js 指令碼產生並驗證 Token、以及利用 BM25 搜尋引擎與情境決策系統(Duarte Sparkline 模式)自動生成情感曲線豐富的簡報 HTML。最終的簡報必須通過 Token 合規性驗證,確保所有樣式都使用 CSS 變數而非硬編碼值。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/nextlevelbuilder/ui-ux-pro-max-skill/tree/main/.claude/skills/design-system

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

設計系統 是做什麼的?

Token 架構、組件規格、系統化設計、簡報生成。

使用時機

  • 設計 Token 建立
  • 組件狀態定義
  • CSS 變數系統
  • 間距/字體排版比例
  • 設計轉程式碼交接
  • Tailwind 主題設定
  • 簡報/簡報生成

Token 架構

載入:references/token-architecture.md

三層結構

原始(原始值)
       ↓
語意(用途別名)
       ↓
組件(組件專用)

範例:

/* 原始 */
--color-blue-600: #2563EB;

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

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

腳本路徑

此技能及其 references/ 中的腳本路徑是相對於包含此 SKILL.md 的目錄,而非專案目錄:scripts/<file> 指此技能自己的 scripts/ 資料夾;../<skill>/scripts/<file> 指與其並排安裝的子技能。請從該目錄(Claude Code 在載入技能時會將其報告為技能的基礎目錄)建構完整路徑,並將工作目錄保持在專案根目錄——腳本會讀寫相對於此的專案檔案,例如 docs/brand-guidelines.md、assets/design-tokens.json 或 src/。

快速入門

產生 Token:

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

驗證使用狀況:

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

參考資料

主題檔案
Token 架構references/token-architecture.md
原始 Tokenreferences/primitive-tokens.md
語意 Tokenreferences/semantic-tokens.md
組件 Tokenreferences/component-tokens.md
組件規格references/component-specs.md
狀態與變體references/states-and-variants.md
Tailwind 整合references/tailwind-integration.md

組件規格模式

屬性預設懸停啟用停用
背景primaryprimary-darkprimary-darkermuted
文字whitewhitewhitemuted-fg
邊框nonenonenonemuted-border
陰影smmdnonenone

腳本

腳本用途
generate-tokens.cjs從 JSON Token 設定產生 CSS
validate-tokens.cjs檢查程式碼中的硬編碼值
search-slides.pyBM25 搜尋 + 情境相關建議
slide-token-validator.py驗證簡報 HTML 是否符合 Token 規範
fetch-background.py從 Pexels/Unsplash 擷取圖片

範本

範本用途
design-tokens-starter.json含三層結構的入門 JSON

整合

搭配品牌: 從品牌顏色/字體提取原始 Token 搭配 ui-styling: 組件 Token → Tailwind 設定

技能依賴: brand, ui-styling 主要代理角色: ui-ux-designer, frontend-developer

簡報系統

使用設計 Token + Chart.js + 情境決策系統,製作符合品牌的簡報。

資料來源

檔案用途
docs/brand-guidelines.md品牌識別、語調、顏色
assets/design-tokens.jsonToken 定義(原始→語意→組件)
assets/design-tokens.cssCSS 變數(簡報中匯入)
assets/css/slide-animations.cssCSS 動畫函式庫

簡報搜尋(BM25)

# 基本搜尋(自動偵測領域)
python scripts/search-slides.py "投資人簡報"

# 特定領域搜尋
python scripts/search-slides.py "問題激化" -d copy
python scripts/search-slides.py "營收成長" -d chart

# 情境搜尋(高級系統)
python scripts/search-slides.py "問題投影片" --context --position 2 --total 9
python scripts/search-slides.py "行動呼籲" --context --position 9 --prev-emotion frustration

決策系統 CSV

檔案用途
data/slide-strategies.csv15 種簡報結構 + 情感弧線 + 火花線節拍
data/slide-layouts.csv25 種佈局 + 組件變體 + 動畫
data/slide-layout-logic.csv目標 → 佈局 + break_pattern 標記
data/slide-typography.csv內容類型 → 字體排版比例
data/slide-color-logic.csv情感 → 顏色處理方式
data/slide-backgrounds.csv投影片類型 → 圖片類別(Pexels/Unsplash)
data/slide-copy.csv25 種文案撰寫公式(PAS、AIDA、FAB)
data/slide-charts.csv25 種圖表類型及 Chart.js 設定

情境決策流程

1. 解析目標/情境
        ↓
2. 搜尋 slide-strategies.csv → 取得策略 + 情感節拍
        ↓
3. 針對每張投影片:
   a. 查詢 slide-layout-logic.csv → 佈局 + break_pattern
   b. 查詢 slide-typography.csv → 字體比例
   c. 查詢 slide-color-logic.csv → 顏色處理方式
   d. 查詢 slide-backgrounds.csv → 需要的圖片
   e. 套用 slide-animations.css 中的動畫類別
        ↓
4. 使用設計 Token 產生 HTML
        ↓
5. 使用 slide-token-validator.py 驗證

模式打斷(Duarte Sparkline)

高級簡報會在情感之間交替以保持參與度:

「現狀」(挫折)↔「願景」(希望)

系統會在 1/3 和 2/3 位置計算模式打斷。

投影片要求

所有投影片必須:

  1. 匯入 assets/design-tokens.css - 單一事實來源
  2. 使用 CSS 變數:var(--color-primary)、var(--slide-bg) 等
  3. 使用 Chart.js 繪製圖表(不要只用 CSS 長條圖)
  4. 包含導航(鍵盤方向鍵、點擊、進度條)
  5. 內容置中對齊
  6. 專注於說服/轉換

Chart.js 整合

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script>

<canvas id="revenueChart"></canvas>
<script>
new Chart(document.getElementById('revenueChart'), {
    type: 'line',
    data: {
        labels: ['9月', '10月', '11月', '12月'],
        datasets: [{
            data: [5, 12, 28, 45],
            borderColor: '#FF6B6B',  // 使用品牌珊瑚色
            backgroundColor: 'rgba(255, 107, 107, 0.1)',
            fill: true,
            tension: 0.4
        }]
    }
});
</script>

Token 合規性

/* 正確 - 使用 Token */
background: var(--slide-bg);
color: var(--color-primary);
font-family: var(--typography-font-heading);

/* 錯誤 - 硬編碼 */
background: #0D0D0D;
color: #FF6B6B;
font-family: 'Space Grotesk';

參考實作

包含所有功能的運作範例:

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

指令

/slides:create "為 ClaudeKit 行銷製作 10 張投影片的投資人簡報"

最佳做法

  1. 永遠不要在組件中使用原始十六進位色碼 - 一定要參考 Token
  2. 語意層可啟用主題切換(淺色/深色)
  3. 組件 Token 可實現每個組件的自訂
  4. 使用 HSL 格式以便控制透明度
  5. 記錄每個 Token 的用途
  6. 簡報必須匯入 design-tokens.css 並獨佔使用 var()

Individual skills in this repo

This repo contains 7 individual skills — each has its own dedicated page.

banner-design

Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional generated or supplied visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter/X, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage.

brand

Brand voice, visual identity, messaging frameworks, asset management, brand consistency. Activate for branded content, tone of voice, marketing assets, brand compliance, style guides.

design

Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, MuAPI, or UberLLM AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.

nextlevelbuilder/ui-ux-pro-max

UI/UX design intelligence for web and mobile. Includes 50+ styles, 161 color palettes, 57 font pairings, 161 product types, 99 UX guidelines, and 25 chart types across 10 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, and HTML/CSS). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, and check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, and mobile app. Elements: button, modal, navbar, sidebar, card, table, form, and chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, and flat design. Topics: color systems, accessibility, animation, layout, typography, font pairing, spacing, interaction states, shadow, and gradient. Integrations: shadcn/ui MCP for component search and examples.

slides

Create strategic HTML presentations with Chart.js, design tokens, responsive layouts, copywriting formulas, and contextual slide strategies.

ui-styling

Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.

ui-ux-pro-max

UI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation. Searchable local data: 80 searchable styles (51 active), 194 product palettes and reasoning profiles, 74 font pairings, 141 UX guidelines, 105 icons, 20 GSAP presets, 25 chart types, and 23 stacks.

相關技能