Design Style Skill
Purpose
This skill helps Claude Code create beautiful, distinctive frontend interfaces by automatically retrieving design system prompts from the prompts/ directory. Instead of producing generic UI, this skill enables Claude to build interfaces with specific design aesthetics like Neo-brutalism, Modern Dark, Luxury, Cyberpunk, and more.
When to Use
This skill is automatically invoked when:
- - User asks to build a web page, landing page, or web application
- User requests a UI component with a specific design style
- User mentions frontend, React, Vue, or web development
- User asks for a specific aesthetic (e.g., "make it look modern and dark" or "use a brutalist style")
Available Design Styles
The following design systems are available in the prompts/ directory:
- - Academia - Scholarly, classic, refined
- ArtDeco - Luxurious 1920s glamour
- Bauhaus - Functionalist, geometric minimalism
- BoldTypography - Type-driven design
- Botanical - Nature-inspired, organic
- Claymorphism - Soft, clay-like 3D elements
- Cyberpunk - Futuristic, neon, high-tech
- Enterprise - Professional, corporate, scalable
- FlatDesign - Clean, minimal, 2D
- Fluent2 - Microsoft Fluent 2 Design System
- HumanistLiterary - Warm, literary, conversational (Claude aesthetic)
- Industrial - Raw, mechanical, utilitarian
- Kinetic - Dynamic, motion-focused
- Luxury - Premium, elegant, sophisticated
- Material - Google Material Design
- Maximalism - Bold, expressive, abundant
- MinimalDrak - Minimal dark theme (note: typo in original)
- ModernDark - Contemporary dark UI with depth
- Monochrome - Black and white, high contrast
- Neo-brutalism - Bold, raw, colorful brutalism
- Neumorphism - Soft UI, skeuomorphic
- Newsprint - Newspaper-inspired
- Organic - Natural, flowing forms
- PlayfulGeometric - Fun geometric shapes
- Professional - Clean, business-focused
- Retro - Vintage, nostalgic
- Saas - Modern SaaS aesthetic
- Sketch - Hand-drawn, artistic
- Swiss - International Typographic Style
- TerminalCLI - Command-line interface aesthetic
- Vaporwave - 80s/90s aesthetic, nostalgic
- Web3 - Decentralized, crypto-inspired
How It Works
Step 1: Understand User Intent
When the user requests frontend work, first determine:
- 1. Tech stack - What framework are they using? (React, Vue, Next.js, etc.)
- Design preference - Did they mention a specific style or aesthetic?
- Component scope - Single component, full page, or entire application?
Step 2: Select Design Style
If user specifies a style:
- - Match their request to available styles (e.g., "brutalist" → Neo-brutalism)
- Case-insensitive matching (brutalism, Brutalism, BRUTALISM all work)
If user doesn't specify:
- - For modern, professional projects → ModernDark or Professional
- For creative, bold projects → Neo-brutalism or BoldTypography
- For minimal, clean projects → FlatDesign or Swiss
- For enterprise/corporate → Enterprise
Ask the user if you're uncertain about which style fits their needs.
Step 3: Retrieve Design System
Use the Read tool to load the appropriate prompt file:
CODEBLOCK0
For example:
- - INLINECODE2
- INLINECODE3
- INLINECODE4
Step 4: Apply Design System
Once you've loaded the design system prompt:
- 1. Internalize the design philosophy - Understand the core principles, visual signatures, and differentiation factors
- Extract design tokens - Colors, typography, spacing, shadows, borders
- Follow component patterns - Use the specified button styles, card layouts, etc.
- Apply the "Bold Factor" - Implement signature elements that make the design authentic
- Avoid anti-patterns - Don't use techniques that break the aesthetic
Step 5: Build with Context
Before writing code:
- - Identify the user's existing tech stack
- Understand their component architecture
- Note any constraints (CSS frameworks, design libraries, etc.)
When writing code:
- - Match their existing patterns and conventions
- Centralize design tokens in CSS variables or a config file
- Create reusable, composable components
- Explain your architectural choices briefly
Quality standards:
- - Preserve or improve accessibility
- Ensure responsive design across devices
- Make deliberate, creative design choices (not generic boilerplate)
- Leave the codebase cleaner than you found it
Examples
Example 1: User Specifies Style
User: "Create a landing page for my SaaS product with a neo-brutalist design"
Skill Actions:
- 1. Detect keywords: "landing page", "neo-brutalist"
- Map "neo-brutalist" → INLINECODE5
- Read the design system prompt
- Ask clarifying questions: "What tech stack are you using? React, Vue, or plain HTML/CSS?"
- Build the landing page following Neo-brutalism principles (thick borders, hard shadows, bold colors, etc.)
Example 2: User Doesn't Specify Style
User: "Help me build a portfolio website"
Skill Actions:
- 1. Detect: "portfolio website" (creative context)
- Suggest options: "Would you like a specific design style? I can create it in Modern Dark (sophisticated), Neo-brutalism (bold and creative), or Swiss (minimal and clean)."
- User responds with preference
- Load appropriate prompt and build
Example 3: Component Request
User: "Add a contact form to my Next.js app. Make it look modern and professional."
Skill Actions:
- 1. Keywords: "Next.js", "modern and professional"
- Select:
ModernDark.md (modern) or Professional.md (professional) - Read design system
- Build form component matching their Next.js patterns
- Use design tokens from the prompt (colors, typography, shadows, etc.)
Quick Reference Commands
When implementing, you can quickly reference specific sections:
Colors:
CODEBLOCK1
Typography:
CODEBLOCK2
Component Patterns:
CODEBLOCK3
Tips for Best Results
- 1. Read the full prompt - Don't just skim. The design philosophy and differentiation sections are critical.
- Implement signature elements - Every design system has a "Bold Factor" section. These elements are what make it authentic.
- Avoid anti-patterns - Each prompt lists what NOT to do. Follow these rules strictly.
- Ask questions - If the user's needs are unclear, ask before building.
- Match existing code - Don't fight their tech stack. Integrate the design system into their existing patterns.
Notes
- - All design system prompts follow the same structure:
<role> and <design-system> sections - Prompts include detailed color palettes, typography scales, component patterns, and implementation examples
- Each style is production-ready and has been carefully crafted for visual distinctiveness
- The prompts are designed to prevent generic, AI-looking interfaces
Future Enhancements
Potential improvements to this skill:
- - Style combination support (e.g., "Cyberpunk + Minimal")
- Custom style creation workflow
- Design token extraction to JSON/CSS
- Component library generation from prompts
设计风格技能
目的
本技能通过自动从prompts/目录中检索设计系统提示,帮助Claude Code创建美观、独特的前端界面。该技能使Claude能够构建具有特定设计美学(如新粗野主义、现代暗色、奢华、赛博朋克等)的界面,而非生成通用UI。
使用时机
本技能在以下情况下自动调用:
- - 用户要求构建网页、落地页或Web应用程序
- 用户请求具有特定设计风格的UI组件
- 用户提及前端、React、Vue或Web开发
- 用户要求特定美学风格(例如让它看起来现代且暗色或使用粗野主义风格)
可用设计风格
prompts/目录中提供以下设计系统:
- - Academia - 学术、经典、精致
- ArtDeco - 奢华1920年代魅力
- Bauhaus - 功能主义、几何极简主义
- BoldTypography - 字体驱动设计
- Botanical - 自然灵感、有机
- Claymorphism - 柔软、粘土般3D元素
- Cyberpunk - 未来主义、霓虹、高科技
- Enterprise - 专业、企业级、可扩展
- FlatDesign - 简洁、极简、2D
- Fluent2 - 微软Fluent 2设计系统
- HumanistLiterary - 温暖、文学、对话式(Claude美学)
- Industrial - 原始、机械、实用主义
- Kinetic - 动态、运动导向
- Luxury - 高端、优雅、精致
- Material - 谷歌Material Design
- Maximalism - 大胆、表现力强、丰富
- MinimalDrak - 极简暗色主题(注:原文拼写错误)
- ModernDark - 具有深度的现代暗色UI
- Monochrome - 黑白、高对比度
- Neo-brutalism - 大胆、原始、多彩粗野主义
- Neumorphism - 柔软UI、拟物化
- Newsprint - 报纸风格
- Organic - 自然、流动形态
- PlayfulGeometric - 趣味几何形状
- Professional - 简洁、商务导向
- Retro - 复古、怀旧
- Saas - 现代SaaS美学
- Sketch - 手绘、艺术感
- Swiss - 国际排版风格
- TerminalCLI - 命令行界面美学
- Vaporwave - 80/90年代美学、怀旧
- Web3 - 去中心化、加密风格
工作原理
第一步:理解用户意图
当用户请求前端工作时,首先确定:
- 1. 技术栈 - 他们使用什么框架?(React、Vue、Next.js等)
- 设计偏好 - 他们是否提到特定风格或美学?
- 组件范围 - 单个组件、完整页面还是整个应用?
第二步:选择设计风格
如果用户指定了风格:
- - 将他们的请求与可用风格匹配(例如粗野主义→ Neo-brutalism)
- 不区分大小写匹配(brutalism、Brutalism、BRUTALISM均可)
如果用户未指定:
- - 现代专业项目 → ModernDark或Professional
- 创意大胆项目 → Neo-brutalism或BoldTypography
- 极简简洁项目 → FlatDesign或Swiss
- 企业/公司项目 → Enterprise
如果不确定哪种风格适合用户需求,请询问用户。
第三步:检索设计系统
使用读取工具加载相应的提示文件:
读取:prompts/<风格名称>.md
例如:
- - prompts/Neo-brutalism.md
- prompts/ModernDark.md
- prompts/Cyberpunk.md
第四步:应用设计系统
加载设计系统提示后:
- 1. 内化设计理念 - 理解核心原则、视觉特征和差异化因素
- 提取设计令牌 - 颜色、排版、间距、阴影、边框
- 遵循组件模式 - 使用指定的按钮样式、卡片布局等
- 应用大胆因子 - 实现使设计真实可信的标志性元素
- 避免反模式 - 不使用破坏美学的技术
第五步:结合上下文构建
编写代码前:
- - 识别用户现有的技术栈
- 理解他们的组件架构
- 注意任何约束条件(CSS框架、设计库等)
编写代码时:
- - 匹配他们现有的模式和约定
- 将设计令牌集中到CSS变量或配置文件中
- 创建可复用、可组合的组件
- 简要解释你的架构选择
质量标准:
- - 保持或改善可访问性
- 确保跨设备的响应式设计
- 做出深思熟虑、创造性的设计选择(而非通用模板)
- 使代码库比你发现时更整洁
示例
示例1:用户指定风格
用户:为我的SaaS产品创建一个新粗野主义设计的落地页
技能操作:
- 1. 检测关键词:落地页、新粗野主义
- 映射新粗野主义→ prompts/Neo-brutalism.md
- 读取设计系统提示
- 提出澄清问题:你使用什么技术栈?React、Vue还是纯HTML/CSS?
- 按照新粗野主义原则构建落地页(粗边框、硬阴影、大胆颜色等)
示例2:用户未指定风格
用户:帮我建一个作品集网站
技能操作:
- 1. 检测:作品集网站(创意背景)
- 建议选项:你想要特定的设计风格吗?我可以创建现代暗色(精致)、新粗野主义(大胆创意)或瑞士风格(极简简洁)。
- 用户回复偏好
- 加载相应提示并构建
示例3:组件请求
用户:给我的Next.js应用添加一个联系表单。让它看起来现代且专业。
技能操作:
- 1. 关键词:Next.js、现代且专业
- 选择:ModernDark.md(现代)或Professional.md(专业)
- 读取设计系统
- 构建匹配他们Next.js模式表单组件
- 使用提示中的设计令牌(颜色、排版、阴影等)
快速参考命令
实现时,可以快速参考特定部分:
颜色:
Grep:模式Token|Value|Usage路径prompts/<风格>.md
排版:
Grep:模式Font|Weight|Size路径prompts/<风格>.md
组件模式:
Grep:模式Button|Card|Input路径prompts/<风格>.md
最佳效果提示
- 1. 阅读完整提示 - 不要只浏览。设计理念和差异化部分至关重要。
- 实现标志性元素 - 每个设计系统都有大胆因子部分。这些元素使其真实可信。
- 避免反模式 - 每个提示都列出了不该做什么。严格遵守这些规则。
- 提出问题 - 如果用户需求不明确,在构建前先询问。
- 匹配现有代码 - 不要对抗他们的技术栈。将设计系统集成到他们现有的模式中。
备注
- - 所有设计系统提示遵循相同结构:<角色>和<设计系统>部分
- 提示包括详细调色板、排版比例、组件模式和实现示例
- 每种风格均可投入生产使用,并经过精心设计以确保视觉独特性
- 这些提示旨在防止生成通用、AI风格的界面
未来增强
本技能的潜在改进:
- - 风格组合支持(例如赛博朋克+极简)
- 自定义风格创建工作流
- 设计令牌提取到JSON/CSS
- 从提示生成组件库