frontend-design
БесплатноЗапускает вложенные скриптыНе проверенTransform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution. Use when…
от AnswerZhao★ 26 звёзд на GitHubОб этом скилле
Frontend Design Skill — Systematic & Creative Web Development
Skill Location: {project_path}/skills/frontend-design/
This skill transforms vague UI style requirements into executable, production-grade frontend code through a systematic design token approach while maintaining creative excellence. It ensures visual consistency, accessibility compliance, and maintainability across all deliverables.
When to Use This Skill (Trigger Patterns)
MUST apply this skill when:
- User requests any website, web application, or web component development
- User mentions design styles: "modern", "premium", "minimalist", "dark mode", "SaaS-style"
- Building dashboards, landing pages, admin panels, or any web UI
- User asks to "make it look better" or "improve the design"
- Creating component libraries or design systems
- User specifies frameworks: React, Vue, Svelte, Next.js, Nuxt, etc.
- Converting designs/mockups to code
- User mentions: Tailwind CSS, shadcn/ui, Material-UI, Chakra UI, etc.
Trigger phrases:
- "build a website/app/component"
- "create a dashboard/landing page"
- "design a UI for..."
- "make it modern/clean/premium"
- "style this with..."
- "convert this design to code"
DO NOT use for:
- Backend API development
- Pure logic/algorithm implementation
- Non-visual code tasks
Skill Architecture
This skill provides:
- SKILL.md (this file): Core methodology and guidelines
- examples/css/: Production-ready CSS examples
tokens.css- Design token systemcomponents.css- Reusable component stylesutilities.css- Utility classes
- examples/typescript/: TypeScript implementation examples
design-tokens.ts- Type-safe token definitionstheme-provider.tsx- Theme managementsample-components.tsx- Component examples
- templates/: Quick-start templates
tailwind-config.js- Tailwind configurationglobals.css- Global styles template
Core Principles (Non-Negotiable)
1. Dual-Mode Thinking: System + Creativity
Systematic Foundation:
- Design tokens first, UI components second
- No arbitrary hardcoded values (colors, spacing, shadows, radius)
- Consistent scales for typography, spacing, radius, elevation
- Complete state coverage (default/hover/active/focus/disabled + loading/empty/error)
- Accessibility as a constraint, not an afterthought
Creative Execution:
- AVOID generic "AI slop" aesthetics (Inter/Roboto fonts, purple gradients, cookie-cutter layouts)
- Choose BOLD aesthetic direction: brutalist, retro-futuristic, luxury, playful, editorial, etc.
- Make unexpected choices in typography, color, layout, and motion
- Each design should feel unique and intentionally crafted for its context
2. Tokens-First Methodology
Design Tokens → Component Styles → Page Layouts → Interactive States
Never skip token definition. All visual properties must derive from the token system.
3. Tech Stack Flexibility
Default stack (if unspecified):
- Framework: React + TypeScript
- Styling: Tailwind CSS
- Components: shadcn/ui
- Theme: CSS custom properties (light/dark modes)
Supported alternatives:
- Frameworks: Vue, Svelte, Angular, vanilla HTML/CSS
- Styling: CSS Modules, SCSS, Styled Components, Emotion
- Libraries: MUI, Ant Design, Chakra UI, Headless UI
4. Tailwind CSS Best Practices
⚠️ CRITICAL: Never use Tailwind via CDN
MUST use build-time integration:
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
Why build-time is mandatory:
- ✅ Enables tree-shaking (2-15KB vs 400KB+ bundle)
- ✅ Full design token customization
- ✅ IDE autocomplete and type safety
- ✅ Integrates with bundlers (Vite, webpack, Next.js)
CDN only acceptable for:
- Quick prototypes/demos
- Internal testing
Implementation Workflow
Phase 1: Design Analysis & Token Definition
Step 1: Understand Context
- Purpose: What problem does this solve? Who uses it?
- Aesthetic Direction: Choose ONE bold direction
- Technical Constraints: Framework, performance, accessibility needs
- Differentiation: What makes this memorable?
Step 2: Generate Design Tokens
Create comprehensive token system (see examples/css/tokens.css and examples/typescript/design-tokens.ts):
Semantic Color Slots (light + dark modes):
--background, --surface, --surface-subtle --text, --text-secondary, --text-muted --border, --border-subtle --primary, --primary-hover, --primary-active, --primary-foreground --secondary, --secondary-hover, --secondary-foreground --accent, --success, --warning, --dangerTypography Scale:
Display: 3.5rem/4rem (56px/64px), weight 700-800 H1: 2.5rem/3rem (40px/48px), weight 700 H2: 2rem/2.5rem (32px/40px), weight 600 H3: 1.5rem/2rem (24px/32px), weight 600 Body: 1rem/1.5rem (16px/24px), weight 400 Small: 0.875rem/1.25rem (14px/20px), we
Установить frontend-design в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл frontend-design?
Transform UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution. Use when building websites, web applications, React/Vue components, dashboards, landing pages, or any web UI requiring both design consistency and aesthetic quality.
Как установить скилл frontend-design?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл frontend-design запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic