Frontend Design
Create distinctive, production-grade web interfaces that avoid generic AI aesthetics.
Install
git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/frontend-design ~/.claude/skills/
Design Thinking Process
1. Understand Context
Before writing code, answer:
- Purpose: What problem does this interface solve? Who uses it?
- Audience: Technical sophistication, expectations, emotional state when arriving
- Constraints: Framework requirements, browser support, performance budget, accessibility needs
2. Commit to an Aesthetic Direction
Choose a specific point of view — not "clean and modern" but a real aesthetic:
| Direction |
Characteristics |
| Brutally minimal |
Monochrome, system fonts, stark spacing, no decoration |
| Maximalist |
Dense, layered, multiple type scales, rich texture |
| Retro-futuristic |
Neon accents, dark backgrounds, grid lines, monospace |
| Organic/natural |
Soft shapes, earth tones, hand-drawn elements, warm |
| Luxury/refined |
Thin serifs, generous whitespace, muted palette, restrained |
| Playful/toy-like |
Rounded shapes, bright primaries, bouncy animations |
| Editorial/magazine |
Strong grid, dramatic type hierarchy, pull quotes |
| Brutalist/raw |
Exposed structure, monospace, raw HTML feeling |
| Art deco/geometric |
Symmetry, metallic accents, decorative borders, angular |
| Soft/pastel |
Light palette, gentle gradients, rounded, approachable |
| Industrial/utilitarian |
Exposed grid, status indicators, dense information |
3. Identify the Memorable Thing
Every interface should have one element someone remembers:
- An unexpected interaction
- A distinctive type treatment
- A bold color choice
- An animation that surprises
- A layout that breaks convention
4. Execute with Intentionality
The key is commitment, not intensity. Maximalism executed fully works. Minimalism executed with precision works. The mushy middle does not.
Typography
Principles
- Choose distinctive fonts, NOT defaults (avoid Arial, Inter, Roboto for display use)
- Pair a display font (personality) with a body font (readability)
- Size hierarchy: display (48-96px), heading (24-36px), body (16-18px), small (12-14px)
- Tight letter-spacing on large display text (-0.02 to -0.04em)
- Normal or slightly loose spacing on body text
Free Font Sources
| Source |
Best For |
| Google Fonts |
Widest selection, easy CDN |
| Fontshare |
High-quality display fonts |
| Fontsource |
Self-hosted, npm installable |
| Atipo Foundry |
Distinctive display faces |
Pairing Strategy
| Display |
Body |
Vibe |
| Serif (dramatic) |
Sans-serif (clean) |
Editorial, luxury |
| Geometric sans |
Humanist sans |
Modern, friendly |
| Monospace |
System sans |
Technical, brutalist |
| Slab serif |
Neutral sans |
Bold, structured |
| Handwritten/display |
Geometric sans |
Playful, creative |
Color & Theme
Building a Palette
- Start with one dominant color (the mood-setter)
- Add 1-2 accent colors (for interaction, emphasis)
- Define neutral scale (backgrounds, borders, text)
- Add semantic colors (success, warning, error)
- Store everything in CSS custom properties
:root {
--color-primary: #...;
--color-accent: #...;
--color-bg: #...;
--color-surface: #...;
--color-text: #...;
--color-text-secondary: #...;
--color-border: #...;
}
Rules
- Dominant + accent, not evenly distributed
- WCAG AA contrast minimum (4.5:1 for text, 3:1 for large text)
- Dark vs. light: commit fully. Do not hedge.
- Test with real content, not lorem ipsum
Motion & Animation
CSS Transitions (Micro-interactions)
.button {
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
CSS @keyframes (Ambient)
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.floating-element { animation: float 3s ease-in-out infinite; }
Scroll-Triggered (IntersectionObserver)
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
}
});
}, { threshold: 0.1 });
document.querySelectorAll('.animate-on-scroll').forEach(el => observer.observe(el));
Staggered Reveals
.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }
.stagger-item.visible { opacity: 1; transform: translateY(0); }
.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.2s; }
Performance
- Animate only
transform and opacity (GPU-composited)
- Avoid animating
width, height, margin, padding (trigger layout)
- Use
will-change sparingly and only on elements that will animate
- Prefer CSS over JS for simple animations
- Use
prefers-reduced-motion media query for accessibility
Spatial Composition
- Break out of the centered-content-column default
- Use asymmetry and grid-breaking elements intentionally
- Overlap elements with z-index for depth
- Generous negative space OR controlled density — commit to one
- CSS Grid for complex layouts, Flexbox for component alignment
Code Quality
- Semantic HTML (nav, main, article, section, aside, footer)
- Accessible: ARIA labels, keyboard navigation, focus management
- Responsive: mobile-first or fluid, tested at 320-1440px
- Performance: lazy loading images, efficient selectors, minimal JS
- No external dependencies unless essential (CDN fonts are fine)
Anti-Patterns
- Generic AI aesthetics (purple gradients everywhere, glassmorphism on everything)
- Cookie-cutter component libraries used without customization
- Predictable layouts (hero → 3-column → testimonials → CTA)
- "Clean and modern" as the entire design direction
- Overused fonts (Inter, Poppins for display)
- Decorative elements without purpose
- Rounded everything (a specific choice is fine, but default rounding is lazy)
- Dark mode with neon accents (overdone)
For typography pairings, color construction, animation library, and accessibility checklist, see REFERENCE.md.
Brand Context (Optional)
If brand-profile.json exists in the working directory, read it before designing. Use colors (primary, secondary, background, text) for the design system, typography (heading and body fonts) for type selections, aesthetic (mood keywords, texture, negative space) for layout decisions, and imagery (style, composition) for hero sections and visual elements. This profile is produced by the brand-dna skill.
1---2name: frontend-design3description: "Create distinctive, production-grade frontend interfaces with high design quality. Covers design thinking, typography pairing, color theory, motion design, spatial composition, and code quality. Generates real working code — HTML/CSS/JS or React — with intentional aesthetic direction, not generic AI output."4license: MIT5origin: custom6author: Rebecca Rae Barton7author_url: https://github.com/thatrebeccarae8metadata:9 source: https://skillmd.com/skills/thatrebeccarae/frontend-design10 version: 1.0.011 category: creative12 domain: frontend13 updated: 2026-03-1314 tested: 2026-03-1715 tested_with: "Claude Code v2.1"16---1718# Frontend Design1920Create distinctive, production-grade web interfaces that avoid generic AI aesthetics.2122## Install2324```bash25git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/frontend-design ~/.claude/skills/26```2728## Design Thinking Process2930### 1. Understand Context3132Before writing code, answer:33- **Purpose:** What problem does this interface solve? Who uses it?34- **Audience:** Technical sophistication, expectations, emotional state when arriving35- **Constraints:** Framework requirements, browser support, performance budget, accessibility needs3637### 2. Commit to an Aesthetic Direction3839Choose a specific point of view — not "clean and modern" but a real aesthetic:4041| Direction | Characteristics |42|-----------|----------------|43| Brutally minimal | Monochrome, system fonts, stark spacing, no decoration |44| Maximalist | Dense, layered, multiple type scales, rich texture |45| Retro-futuristic | Neon accents, dark backgrounds, grid lines, monospace |46| Organic/natural | Soft shapes, earth tones, hand-drawn elements, warm |47| Luxury/refined | Thin serifs, generous whitespace, muted palette, restrained |48| Playful/toy-like | Rounded shapes, bright primaries, bouncy animations |49| Editorial/magazine | Strong grid, dramatic type hierarchy, pull quotes |50| Brutalist/raw | Exposed structure, monospace, raw HTML feeling |51| Art deco/geometric | Symmetry, metallic accents, decorative borders, angular |52| Soft/pastel | Light palette, gentle gradients, rounded, approachable |53| Industrial/utilitarian | Exposed grid, status indicators, dense information |5455### 3. Identify the Memorable Thing5657Every interface should have one element someone remembers:58- An unexpected interaction59- A distinctive type treatment60- A bold color choice61- An animation that surprises62- A layout that breaks convention6364### 4. Execute with Intentionality6566The key is commitment, not intensity. Maximalism executed fully works. Minimalism executed with precision works. The mushy middle does not.6768## Typography6970### Principles7172- Choose distinctive fonts, NOT defaults (avoid Arial, Inter, Roboto for display use)73- Pair a display font (personality) with a body font (readability)74- Size hierarchy: display (48-96px), heading (24-36px), body (16-18px), small (12-14px)75- Tight letter-spacing on large display text (-0.02 to -0.04em)76- Normal or slightly loose spacing on body text7778### Free Font Sources7980| Source | Best For |81|--------|----------|82| Google Fonts | Widest selection, easy CDN |83| Fontshare | High-quality display fonts |84| Fontsource | Self-hosted, npm installable |85| Atipo Foundry | Distinctive display faces |8687### Pairing Strategy8889| Display | Body | Vibe |90|---------|------|------|91| Serif (dramatic) | Sans-serif (clean) | Editorial, luxury |92| Geometric sans | Humanist sans | Modern, friendly |93| Monospace | System sans | Technical, brutalist |94| Slab serif | Neutral sans | Bold, structured |95| Handwritten/display | Geometric sans | Playful, creative |9697## Color & Theme9899### Building a Palette1001011. Start with one dominant color (the mood-setter)1022. Add 1-2 accent colors (for interaction, emphasis)1033. Define neutral scale (backgrounds, borders, text)1044. Add semantic colors (success, warning, error)1055. Store everything in CSS custom properties106107```css108:root {109 --color-primary: #...;110 --color-accent: #...;111 --color-bg: #...;112 --color-surface: #...;113 --color-text: #...;114 --color-text-secondary: #...;115 --color-border: #...;116}117```118119### Rules120121- Dominant + accent, not evenly distributed122- WCAG AA contrast minimum (4.5:1 for text, 3:1 for large text)123- Dark vs. light: commit fully. Do not hedge.124- Test with real content, not lorem ipsum125126## Motion & Animation127128### CSS Transitions (Micro-interactions)129130```css131.button {132 transition: transform 0.2s ease, box-shadow 0.2s ease;133}134.button:hover {135 transform: translateY(-2px);136 box-shadow: 0 4px 12px rgba(0,0,0,0.15);137}138```139140### CSS @keyframes (Ambient)141142```css143@keyframes float {144 0%, 100% { transform: translateY(0); }145 50% { transform: translateY(-10px); }146}147.floating-element { animation: float 3s ease-in-out infinite; }148```149150### Scroll-Triggered (IntersectionObserver)151152```javascript153const observer = new IntersectionObserver((entries) => {154 entries.forEach(entry => {155 if (entry.isIntersecting) {156 entry.target.classList.add('visible');157 }158 });159}, { threshold: 0.1 });160161document.querySelectorAll('.animate-on-scroll').forEach(el => observer.observe(el));162```163164### Staggered Reveals165166```css167.stagger-item { opacity: 0; transform: translateY(20px); transition: all 0.5s ease; }168.stagger-item.visible { opacity: 1; transform: translateY(0); }169.stagger-item:nth-child(1) { transition-delay: 0s; }170.stagger-item:nth-child(2) { transition-delay: 0.1s; }171.stagger-item:nth-child(3) { transition-delay: 0.2s; }172```173174### Performance175176- Animate only `transform` and `opacity` (GPU-composited)177- Avoid animating `width`, `height`, `margin`, `padding` (trigger layout)178- Use `will-change` sparingly and only on elements that will animate179- Prefer CSS over JS for simple animations180- Use `prefers-reduced-motion` media query for accessibility181182## Spatial Composition183184- Break out of the centered-content-column default185- Use asymmetry and grid-breaking elements intentionally186- Overlap elements with z-index for depth187- Generous negative space OR controlled density — commit to one188- CSS Grid for complex layouts, Flexbox for component alignment189190## Code Quality191192- Semantic HTML (nav, main, article, section, aside, footer)193- Accessible: ARIA labels, keyboard navigation, focus management194- Responsive: mobile-first or fluid, tested at 320-1440px195- Performance: lazy loading images, efficient selectors, minimal JS196- No external dependencies unless essential (CDN fonts are fine)197198## Anti-Patterns199200- Generic AI aesthetics (purple gradients everywhere, glassmorphism on everything)201- Cookie-cutter component libraries used without customization202- Predictable layouts (hero → 3-column → testimonials → CTA)203- "Clean and modern" as the entire design direction204- Overused fonts (Inter, Poppins for display)205- Decorative elements without purpose206- Rounded everything (a specific choice is fine, but default rounding is lazy)207- Dark mode with neon accents (overdone)208209For typography pairings, color construction, animation library, and accessibility checklist, see [REFERENCE.md](REFERENCE.md).210211## Brand Context (Optional)212213If `brand-profile.json` exists in the working directory, read it before designing. Use colors (primary, secondary, background, text) for the design system, typography (heading and body fonts) for type selections, aesthetic (mood keywords, texture, negative space) for layout decisions, and imagery (style, composition) for hero sections and visual elements. This profile is produced by the `brand-dna` skill.