When to Use
User needs web UI built. Agent handles landing pages, dashboards, forms, component libraries, and any frontend requiring production polish.
Quick Reference
| Topic |
File |
| Stack & tooling |
stack.md |
| Typography rules |
typography.md |
| Color systems |
colors.md |
| Mobile patterns |
mobile.md |
| Animation |
animation.md |
| Examples |
examples.md |
Core Rules
1. Mobile-First Always
- Start with mobile layout, enhance upward
- Every grid must collapse to single column
- Touch targets minimum 44x44px
- Test on real devices, not just simulators
2. Typography Matters
- Avoid generic fonts (Inter, Roboto, Arial)
- Use dramatic size jumps (2x+), not timid increments
- Body text 16-18px minimum
- See
typography.md for specific recommendations
3. Color with Purpose
- 70-20-10 rule: primary, secondary, accent
- Commit to light OR dark — no muddy mid-grays
- Never solid white backgrounds — add depth
- See
colors.md for CSS variables and patterns
4. Feedback on Every Interaction
- Acknowledge taps within 100ms
- Optimistic updates for instant feel
- Loading states for operations >1s
- Preserve user input on errors
5. Accessibility Non-Negotiable
- Color contrast 4.5:1 (text), 3:1 (UI)
- Focus states on all interactive elements
- Semantic HTML (nav, main, section, article)
- Keyboard navigation works for everything
6. Performance from Start
- Lazy load below-fold content
- Image placeholders prevent layout shift
- Code split heavy components
- Target LCP <2.5s, CLS <0.1
7. One Memorable Element
- Every page needs one unforgettable design choice
- Typography treatment, hero animation, unusual layout
- Timid designs fail — commit to an aesthetic
Frontend Traps
| Trap |
Consequence |
Fix |
| Generic fonts |
Looks like every other site |
Use distinctive fonts |
| Solid white backgrounds |
Flat, lifeless |
Add gradients, grain, depth |
| Mobile as afterthought |
Broken for 60% of users |
Mobile-first always |
| Form error clears input |
User rage |
Preserve input, highlight error |
| No loading states |
User thinks broken |
Show progress immediately |
| Timid type scale |
No visual hierarchy |
Use 2x+ jumps for headlines |
Scope
This skill ONLY:
- Provides frontend patterns and guidelines
- Recommends stack and tooling choices
- Guides responsive implementation
This skill NEVER:
- Makes network requests
- Accesses user data
- Stores any information
Security & Privacy
This skill is read-only guidance. No data is collected, sent, or stored.
Feedback
- If useful:
clawhub star frontend
- Stay updated:
clawhub sync
1---2name: frontend-design-23slug: frontend4version: "1.0.2"5homepage: https://clawic.com/skills/frontend6description: Frontend development with React, Next.js, Tailwind CSS. Build landing pages, dashboards, forms, components. Responsive, accessible, performant UI.7changelog: "Renamed to better reflect design-focused capabilities and guidance."8metadata:9 source: https://skillmd.com/skills/johnalbertini14-glitch/frontend-design-210 clawdbot:11 emoji: 🖥️12 requires:13 bins: []14 os:15 - linux16 - darwin17 - win3218---1920## When to Use2122User needs web UI built. Agent handles landing pages, dashboards, forms, component libraries, and any frontend requiring production polish.2324## Quick Reference2526| Topic | File |27|-------|------|28| Stack & tooling | `stack.md` |29| Typography rules | `typography.md` |30| Color systems | `colors.md` |31| Mobile patterns | `mobile.md` |32| Animation | `animation.md` |33| Examples | `examples.md` |3435## Core Rules3637### 1. Mobile-First Always38- Start with mobile layout, enhance upward39- Every grid must collapse to single column40- Touch targets minimum 44x44px41- Test on real devices, not just simulators4243### 2. Typography Matters44- Avoid generic fonts (Inter, Roboto, Arial)45- Use dramatic size jumps (2x+), not timid increments46- Body text 16-18px minimum47- See `typography.md` for specific recommendations4849### 3. Color with Purpose50- 70-20-10 rule: primary, secondary, accent51- Commit to light OR dark — no muddy mid-grays52- Never solid white backgrounds — add depth53- See `colors.md` for CSS variables and patterns5455### 4. Feedback on Every Interaction56- Acknowledge taps within 100ms57- Optimistic updates for instant feel58- Loading states for operations >1s59- Preserve user input on errors6061### 5. Accessibility Non-Negotiable62- Color contrast 4.5:1 (text), 3:1 (UI)63- Focus states on all interactive elements64- Semantic HTML (nav, main, section, article)65- Keyboard navigation works for everything6667### 6. Performance from Start68- Lazy load below-fold content69- Image placeholders prevent layout shift70- Code split heavy components71- Target LCP <2.5s, CLS <0.17273### 7. One Memorable Element74- Every page needs one unforgettable design choice75- Typography treatment, hero animation, unusual layout76- Timid designs fail — commit to an aesthetic7778## Frontend Traps7980| Trap | Consequence | Fix |81|------|-------------|-----|82| Generic fonts | Looks like every other site | Use distinctive fonts |83| Solid white backgrounds | Flat, lifeless | Add gradients, grain, depth |84| Mobile as afterthought | Broken for 60% of users | Mobile-first always |85| Form error clears input | User rage | Preserve input, highlight error |86| No loading states | User thinks broken | Show progress immediately |87| Timid type scale | No visual hierarchy | Use 2x+ jumps for headlines |8889## Scope9091This skill ONLY:92- Provides frontend patterns and guidelines93- Recommends stack and tooling choices94- Guides responsive implementation9596This skill NEVER:97- Makes network requests98- Accesses user data99- Stores any information100101## Security & Privacy102103This skill is read-only guidance. No data is collected, sent, or stored.104105## Feedback106107- If useful: `clawhub star frontend`108- Stay updated: `clawhub sync`