Design References 标志

Design References

组织
MadAppGang
design-references

Predefined design system references for UI reviews. Includes Material Design 3, Apple Human Interface Guidelines, Tailwind UI, Ant Design, and Shadcn/ui. Use when conducting design reviews against established design systems.

概览

发布者MadAppGang
代码仓库claude-code
技能名称design-references
星标数
281
复刻数
26
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 MadAppGang 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Design References AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/MadAppGang/claude-code/tree/main/plugins/dev/skills/design/design-references
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MadAppGang/claude-code.git /tmp/claude-code
mkdir -p .claude/skills
cp -r /tmp/claude-code/plugins/dev/skills/design/design-references .claude/skills/design-references
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Design References,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Design References。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Design References 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Design References Skill

Overview

This skill provides predefined design system references that the ui agent can use when reviewing designs. Each reference includes design principles, color guidelines, typography rules, spacing patterns, and component patterns.

Available Design Systems

Material Design 3 (Google)

Reference ID: material-3 Official URL: https://m3.material.io/

Design Principles
  1. Adaptive & Accessible - Responsive across devices, accessible to all
  2. Personal & Customizable - Dynamic color, personalization
  3. Expressive - Motion, shape, and color express brand
Color System
  • Dynamic Color - Colors derived from user wallpaper or brand
  • Tonal Palettes - 13 tones per color (0-100)
  • Color Roles:
    • Primary: Main brand color
    • Secondary: Accent elements
    • Tertiary: Contrast and balance
    • Error: Destructive actions
    • Surface: Backgrounds and containers
    • On-*: Text/icon colors on surfaces

Key Metrics:

  • Text contrast: 4.5:1 minimum (WCAG AA)
  • Large text contrast: 3:1 minimum
  • Non-text contrast: 3:1 minimum
Typography

Type Scale (Default):

RoleSizeWeightLine Height
Display Large57sp40064sp
Display Medium45sp40052sp
Display Small36sp40044sp
Headline Large32sp40040sp
Headline Medium28sp40036sp
Headline Small24sp40032sp
Title Large22sp40028sp
Title Medium16sp50024sp
Title Small14sp50020sp
Body Large16sp40024sp
Body Medium14sp40020sp
Body Small12sp40016sp
Label Large14sp50020sp
Label Medium12sp50016sp
Label Small11sp50016sp

Font: Roboto (sans-serif)

Spacing

Baseline Grid: 4dp Common Values: 4, 8, 12, 16, 24, 32, 48, 64, 96, 128

Component Patterns
  • Buttons: Filled, Outlined, Text, Elevated, Tonal
  • Cards: Elevated, Filled, Outlined
  • Navigation: Rail, Bar, Drawer
  • Inputs: Filled, Outlined
  • Dialogs: Basic, Full-screen, Date picker
Review Checklist
  • Dynamic color theming applied correctly
  • Type scale follows M3 specs
  • 4dp baseline grid followed
  • Touch targets minimum 48dp
  • Elevation levels correct (0-5)
  • Shape scale appropriate (Extra small to Extra large)

Apple Human Interface Guidelines (iOS/macOS)

Reference ID: apple-hig Official URL: https://developer.apple.com/design/human-interface-guidelines/

Design Principles
  1. Clarity - Text readable, icons precise, ornaments subtle
  2. Deference - Content over chrome, minimal UI
  3. Depth - Visual layers, motion conveys hierarchy
Color System

System Colors:

ColorLight ModeDark ModeUsage
Blue#007AFF#0A84FFLinks, interactive elements
Green#34C759#30D158Success, positive actions
Indigo#5856D6#5E5CE6Accent
Orange#FF9500#FF9F0AWarnings, attention
Pink#FF2D55#FF375FAccent
Purple#AF52DE#BF5AF2Accent
Red#FF3B30#FF453ADestructive, errors
Teal#5AC8FA#64D2FFAccent
Yellow#FFCC00#FFD60AWarnings

Semantic Colors:

  • Label (Primary, Secondary, Tertiary, Quaternary)
  • Fill (Primary through Quaternary)
  • Background (Primary, Secondary, Tertiary)
  • Separator
Typography

SF Pro (San Francisco):

StyleSizeWeightLeading
Large Title34ptBold41pt
Title 128ptRegular34pt
Title 222ptRegular28pt
Title 320ptRegular25pt
Headline17ptSemi-Bold22pt
Body17ptRegular22pt
Callout16ptRegular21pt
Subheadline15ptRegular20pt
Footnote13ptRegular18pt
Caption 112ptRegular16pt
Caption 211ptRegular13pt
Spacing

iOS Standard Margins: 16pt (compact), 20pt (regular) macOS Standard Margins: 20pt

Component Patterns
  • Navigation: Tab Bar, Sidebar, Navigation Bar
  • Buttons: System, Custom, Icon-only
  • Lists: Plain, Grouped, Inset Grouped
  • Forms: Grouped sections with headers
Review Checklist
  • SF Pro or SF Mono fonts used
  • System colors or semantically appropriate custom colors
  • Touch targets minimum 44pt x 44pt
  • Standard margins respected
  • Navigation patterns match platform conventions
  • Dark mode support with proper semantic colors

Tailwind UI

Reference ID: tailwind-ui Official URL: https://tailwindui.com/

Design Principles
  1. Utility-First - Compose styles from atomic classes
  2. Responsive - Mobile-first, breakpoint prefixes
  3. Consistent - Design tokens as class names
Color System

Tailwind Colors (50-950 shades):

  • Slate, Gray, Zinc, Neutral, Stone (Grays)
  • Red, Orange, Amber, Yellow (Warm)
  • Lime, Green, Emerald, Teal (Cool greens)
  • Cyan, Sky, Blue, Indigo, Violet, Purple, Fuchsia, Pink, Rose

Usage Patterns:

  • Primary: blue-600 (buttons, links)
  • Secondary: gray-600 (secondary text)
  • Success: green-600
  • Warning: amber-600
  • Error: red-600
  • Background: white / gray-50
  • Surface: gray-100 / gray-800
Typography

Font Scale:

ClassSizeLine Height
text-xs12px16px
text-sm14px20px
text-base16px24px
text-lg18px28px
text-xl20px28px
text-2xl24px32px
text-3xl30px36px
text-4xl36px40px
text-5xl48px48px
text-6xl60px60px
text-7xl72px72px
text-8xl96px96px
text-9xl128px128px

Font Weights: thin(100) to black(900)

Spacing Scale
ClassValue
00px
px1px
0.52px
14px
28px
312px
416px
520px
624px
832px
1040px
1248px
1664px
2080px
2496px
Component Patterns
  • Buttons: Primary, Secondary, Soft, Outline
  • Forms: Stacked, Inline, with validation states
  • Cards: Simple, with header, with footer
  • Navigation: Navbar, Sidebar, Tabs
Review Checklist
  • Spacing uses Tailwind scale (4px base)
  • Typography uses Tailwind type scale
  • Colors from Tailwind palette
  • Consistent hover/focus states
  • Responsive breakpoints (sm, md, lg, xl, 2xl)
  • Dark mode with dark: variants

Ant Design

Reference ID: ant-design Official URL: https://ant.design/

Design Principles
  1. Natural - Align with user mental models
  2. Certain - Predictable, consistent behavior
  3. Meaningful - Purpose-driven design
  4. Growing - Support user skill progression
Color System

Functional Colors:

RoleHexUsage
Primary#1677ffBrand, primary actions
Success#52c41aPositive feedback
Warning#faad14Warnings, attention
Error#ff4d4fErrors, destructive
Info#1677ffInformational

Neutral Colors: 13 shades of gray (#fff to #000)

Typography

Font Family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue

RoleSizeWeight
h138px600
h230px600
h324px600
h420px600
h516px600
Base14px400
Small12px400
Spacing

Base Unit: 4px Scale: 4, 8, 12, 16, 20, 24, 32, 40, 48

Component Patterns
  • Forms: Horizontal, Vertical, Inline layouts
  • Tables: Sortable, Filterable, Paginated
  • Modals: Confirm, Info, with footer
  • Data Entry: Extensive input types
Review Checklist
  • 14px base font size
  • 4px spacing base unit
  • Functional colors for feedback
  • Form layouts consistent
  • Table patterns for data display
  • Enterprise-grade density (compact option)

Shadcn/ui

Reference ID: shadcn-ui Official URL: https://ui.shadcn.com/

Design Principles
  1. Copy-Paste - Components you own, not import
  2. Accessible - Built on Radix UI primitives
  3. Customizable - CSS variables for theming
  4. Composable - Small, focused components
Color System

CSS Variables Based:

css
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5.9% 10%;
--radius: 0.5rem;
Typography

Inter (default) or system font stack

VariantSizeWeightLeading
h136px80040px
h230px60036px
h324px60032px
h420px60028px
p16px40028px
lead20px40028px
large18px60028px
small14px50020px
muted14px40020px
Spacing

Tailwind-based: 4px base (matches Tailwind scale)

Component Patterns
  • Buttons: Default, Secondary, Destructive, Outline, Ghost, Link
  • Forms: Built on Radix primitives
  • Dialogs: AlertDialog, Dialog, Sheet
  • Data Display: Table, DataTable, Cards
Review Checklist
  • CSS variables for theming
  • Radix UI primitives for accessibility
  • Border radius using --radius variable
  • Focus rings using --ring variable
  • Consistent variant naming
  • Dark mode via class strategy

Usage in Reviews

Selecting a Design Reference

The ui agent will check for style in this order:

  1. Project Style (.claude/design-style.md) - Highest priority
  2. Predefined Reference (via Design Reference: directive or user selection)
  3. Auto-detect (if recognizable patterns found)
  4. Generic Best Practices (fallback)

Review with Specific Reference

Task: ui

Review this dashboard screenshot against Material Design 3 guidelines.

Design Reference: material-3

Image: screenshots/dashboard.png

Write review to: ${SESSION_PATH}/reviews/design-review/gemini.md

Combining Project Style + Reference

Task: ui

Review using:
- Project Style: .claude/design-style.md (brand colors, custom tokens)
- Base Reference: shadcn-ui (component patterns, accessibility)

Image: screenshots/form.png

常见问题

Design References AI 技能有什么作用?

Predefined design system references for UI reviews. Includes Material Design 3, Apple Human Interface Guidelines, Tailwind UI, Ant Design, and Shadcn/ui. Use when conducting design reviews against established design systems.

为什么在 TypingMind 中使用 Design References?

因为您只需安装一次,就能搭配任何模型使用。Design References 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Design References?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/MadAppGang/claude-code/tree/main/plugins/dev/skills/design/design-references。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Design References?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Design References 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Design References 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Design References AI 技能免费吗?

是的。MadAppGang 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇