Styleguide
Generate a complete HTML/React styleguide page for your project based on your design preferences.
от allierays★ 38 звёзд на GitHub
Установить Styleguide в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Styleguide Generator
Generate a complete HTML/React styleguide page for your project based on your design preferences.
Instructions
This skill creates a /styleguide route that displays all your UI components, making it easy for AI to understand and replicate your design system.
Phase 1: Discovery
First, understand the project:
Check the tech stack:
- Look for
package.jsonto identify the framework (React, Vue, Next.js, etc.) - Check for existing styling solution (Tailwind, CSS Modules, styled-components, etc.)
- Find the components directory structure
- Look for any existing design tokens or theme files
Check for existing components:
- Search for
components/orsrc/components/ - Look for existing Button, Input, Card components
- Note any UI library usage (shadcn, MUI, Chakra, etc.)
Phase 2: Interview the User
Ask these questions to understand their design vision. Present them as a friendly conversation:
1. "What's the vibe you're going for?"
Offer examples:
- Clean & Minimal - Lots of whitespace, subtle shadows, muted colors
- Bold & Vibrant - Saturated colors, strong contrasts, energetic
- Dark & Moody - Dark backgrounds, neon accents, atmospheric
- Soft & Friendly - Rounded corners, pastels, warm feeling
- Professional & Corporate - Conservative, trustworthy, structured
- Playful & Fun - Bright colors, animations, personality
- Neon Glass - Glassmorphism, glows, futuristic
- Other - Let them describe it
2. "What are your brand colors?"
Ask for:
- Primary color - Main brand color (buttons, links, accents)
- Secondary color - Supporting color
- Accent color - For highlights and CTAs (optional)
If they don't have colors, suggest palettes based on their vibe:
- Clean: Blue (#3B82F6) + Gray
- Bold: Orange (#F97316) + Purple (#8B5CF6)
- Dark: Cyan (#06B6D4) + Purple (#A855F7)
- Soft: Pink (#EC4899) + Lavender (#A78BFA)
- Professional: Navy (#1E40AF) + Gold (#F59E0B)
3. "Light mode, dark mode, or both?"
- Light mode only
- Dark mode only
- Both (with toggle)
4. "What's your border radius preference?"
- Sharp - 0px (modern, editorial)
- Subtle - 4px (clean, professional)
- Rounded - 8px (friendly, approachable)
- Pill - 9999px for buttons (playful)
- Mixed - Rounded cards, pill buttons
5. "Any specific components you need?"
Common ones to include:
- Buttons (primary, secondary, ghost, destructive)
- Form inputs (text, select, checkbox, radio, toggle)
- Cards
- Modals/Dialogs
- Alerts/Toasts
- Navigation
- Tables
- Badges/Tags
Phase 3: Generate the Styleguide
Create a styleguide page at /styleguide (or their preferred route).
File structure for React/Next.js:
src/
├── pages/styleguide.tsx (or app/styleguide/page.tsx for Next.js App Router)
└── styles/
└── design-tokens.css (optional CSS variables)
Include these sections:
1. Design Tokens
<section id="tokens">
<h2>Design Tokens</h2>
{/* Colors */}
<div className="grid grid-cols-5 gap-4">
<div className="h-20 rounded-lg bg-primary" title="Primary" />
<div className="h-20 rounded-lg bg-secondary" title="Secondary" />
<div className="h-20 rounded-lg bg-accent" title="Accent" />
<div className="h-20 rounded-lg bg-background" title="Background" />
<div className="h-20 rounded-lg bg-foreground" title="Foreground" />
</div>
{/* Typography Scale */}
<div className="space-y-2 mt-8">
<p className="text-xs">xs - 12px</p>
<p className="text-sm">sm - 14px</p>
<p className="text-base">base - 16px</p>
<p className="text-lg">lg - 18px</p>
<p className="text-xl">xl - 20px</p>
<p className="text-2xl">2xl - 24px</p>
<p className="text-3xl">3xl - 30px</p>
<p className="text-4xl">4xl - 36px</p>
</div>
{/* Spacing */}
<div className="flex items-end gap-2 mt-8">
<div className="w-1 h-1 bg-primary" title="1 - 4px" />
<div className="w-2 h-2 bg-primary" title="2 - 8px" />
<div className="w-3 h-3 bg-primary" title="3 - 12px" />
<div className="w-4 h-4 bg-primary" title="4 - 16px" />
<div className="w-6 h-6 bg-primary" title="6 - 24px" />
<div className="w-8 h-8 bg-primary" title="8 - 32px" />
</div>
</section>
2. Buttons
<section id="buttons">
<h2>Buttons</h2>
{/* Variants */}
<div className="flex flex-wrap gap-4">
<Button variant="primary">Primary</Button>
<Button variant="secondary">Secondary</Button>
<Button variant="ghost">Ghost</Button>
<Button variant="destructive">Destructive</Button>
<Button variant="link">Link</Button>
</div>
{/* Sizes */}
<div className="flex items-center gap-4 mt-4">
<Button size="sm">Small</Button>
<Button size="md">Medium</Button>
<Button size="lg">Large</Button>
</div>
{/* States */}
<div className="flex flex-wrap gap-4 mt-4">
<Button>Default</Button>
<Button disabled>Disabled</Button>
<Button loading>Loading<
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Styleguide?
Generate a complete HTML/React styleguide page for your project based on your design preferences.
Как установить скилл Styleguide?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Styleguide запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
AnthropicGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
webapp-testing
AnthropicToolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
brand-guidelines
AnthropicApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
web-artifacts-builder
AnthropicSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…