Create distinctive, production-grade frontend interfaces with high design quality using structured SOPs and comprehensive UI/UX guidelines. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Also use when the user asks about typography, padding, spacing, sizing, layout systems, font pairing, color palettes, animation/motion design, responsive design, or UI component patterns. Generates creative, polished code and UI design that avoids generic AI aesthetics. Trigger this skill for any frontend design, UI/UX design, web design, component creation, or design system task.
This skill guides creation of distinctive, production-grade frontend interfaces. It provides structured SOPs, design systems, and comprehensive guidelines to produce premium results - not generic "AI slop." Implement real working code with exceptional attention to aesthetic details and creative choices.
The user provides frontend requirements: a component, page, application, or interface to build. They may include context about the purpose, audience, or technical constraints.
Follow this structured process for any non-trivial frontend project. This mirrors how real product design teams work and produces dramatically better results than jumping straight to code.
Before writing any code, establish clear context and direction.
1. Project Brief - Understand the fundamentals:
2. Content Per Section - Define content before design:
3. Mood Board and Aesthetic Direction - Commit to a BOLD direction:
4. Style Guide (living document) - Create a single source of truth:
Build section by section with isolated context.
After building each section:
Based on review findings:
Typography is the single most impactful design decision. It sets the entire tone.
Choose fonts that are beautiful, unique, and characterful. Pair a distinctive display font with a refined body font.
Display Font Categories (for headings, hero text, statements):
Body Font Categories (for paragraphs, UI text, labels):
Font Pairing Rules:
Use a consistent modular scale. Recommended: Major Third (1.250) for most projects.
--text-xs: 0.75rem (12px) - Captions, labels, metadata
--text-sm: 0.875rem (14px) - Small body, secondary text
--text-base: 1rem (16px) - Body text baseline
--text-lg: 1.125rem (18px) - Lead paragraphs, emphasis
--text-xl: 1.25rem (20px) - Section intros
--text-2xl: 1.5rem (24px) - H4, card titles
--text-3xl: 1.875rem (30px) - H3, section headers
--text-4xl: 2.25rem (36px) - H2, major sections
--text-5xl: 3rem (48px) - H1, page titles
--text-6xl: 3.75rem (60px) - Hero headlines
--text-7xl: 4.5rem (72px) - Display, statement text
Headings: line-height: 1.1 - 1.2 (tight, creates visual weight)
Body: line-height: 1.5 - 1.7 (comfortable reading)
UI elements: line-height: 1.3 - 1.4 (compact but readable)
Letter Spacing:
Font Weights:
Responsive Scaling: Reduce heading sizes by ~20-30% on mobile. Use CSS clamp() for fluid scaling:
font-size: clamp(2rem, 5vw, 3.75rem);
For the full typography reference including font specimen examples, read references/typography-scale.md.