# Frontend Design Skill
A comprehensive skill for transforming UI style requirements into production-ready frontend code with systematic design tokens, accessibility compliance, and creative execution.
## 📦 Skill Location
```
{project_path}/skills/frontend-design/
```
## 📚 What's Included
### Documentation
- **SKILL.md** - Complete methodology and guidelines for frontend development
- **README.md** - This file (quick start and overview)
- **LICENSE** - MIT License
### CSS Examples (`examples/css/`)
- **tokens.css** - Complete design token system with semantic colors, typography, spacing, radius, shadows, and motion tokens
- **components.css** - Production-ready component styles (buttons, inputs, cards, modals, alerts, etc.)
- **utilities.css** - Utility classes for layout, typography, states, and responsive design
### TypeScript Examples (`examples/typescript/`)
- **design-tokens.ts** - Type-safe token definitions and utilities
- **theme-provider.tsx** - Complete theme management system (light/dark/system modes)
- **sample-components.tsx** - Production React components with full TypeScript support
- **utils.ts** - Utility functions for frontend development
### Templates (`templates/`)
- **tailwind.config.js** - Optimized Tailwind CSS configuration
- **globals.css** - Global styles and CSS custom properties
## 🚀 Quick Start
### When to Use This Skill
Use this skill when:
- Building websites, web applications, or web components
- User mentions design styles: "modern", "premium", "minimalist", "dark mode"
- Creating dashboards, landing pages, or any web UI
- User asks to "make it look better" or "improve the design"
- User specifies frameworks: React, Vue, Svelte, Next.js, etc.
### Basic Usage
1. **Read SKILL.md** first for complete methodology
2. **Choose a design direction** (Minimal SaaS, Bold Editorial, Soft & Organic, Dark Neon, Playful)
3. **Generate design tokens** using the token system
4. **Build components** using the provided examples
5. **Compose pages** from components
6. **Review & validate** against the checklist
### Installation
```bash
# Install dependencies
npm install -D tailwindcss postcss autoprefixer
npm install clsx tailwind-merge
# Initialize Tailwind
npx tailwindcss init -p
# Copy templates
cp templates/tailwind.config.js ./tailwind.config.js
cp templates/globals.css ./src/globals.css
# Import in your app
# React: import './globals.css' in main entry
# Next.js: import './globals.css' in _app.tsx or layout.tsx
```
## 🎨 Design Tokens System
All visual properties derive from semantic tokens:
### Colors
```css
--background, --surface, --text
--primary, --secondary, --accent
--success, --warning, --danger, --info
```
### Typography
```css
--font-size-{xs, sm, base, lg, xl, 2xl, 3xl, 4xl, 5xl}
--line-height-{tight, snug, normal, relaxed, loose}
--font-weight-{light, normal, medium, semibold, bold}
```
### Spacing (8px system)
```css
--spacing-{0.5, 1, 2, 3, 4, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48}
```
### Radius
```css
--radius-{xs, sm, md, lg, xl, 2xl, 3xl, full}
```
## 📖 Example Usage
### React Component with Tokens
```tsx
import { Button, Card, Input } from './examples/typescript/sample-components';
import { ThemeProvider } from './examples/typescript/theme-provider';
function App() {
return (
Create your account