senior-frontend
Skill4 starsChanged 8 months agoMITView on GitHub
The ultimate frontend design and development skill. Creates production-ready, pixel-perfect web interfaces with Next.js + Tailwind + shadcn/ui. Combines design thinking, UX best practices, accessibility, animation, and real design system patterns inspired by the best sites on the web. Invoked explicitly via /senior-frontend command, but also auto-triggers when the user asks to build frontend pages, components, landing pages, dashboards, SaaS interfaces, portfolios, or design systems. Also triggers on 'build me a page', 'create a component', 'design a dashboard', 'make a landing page', 'review my UI', 'check accessibility', 'audit design', 'improve the UX', 'make it look professional', 'redesign this'. Supersedes frontend-design and web-design-guidelines.
16 other projects use a version of this.
Adopted by
Most recently taken up by
- jakubsuplicki/codumenttheir own version, first seen Oct 4, 2026
- roedyrustam/vibes-plugtheir own version, first seen Oct 3, 2026
- Obitorinne22/claude-skills-mcptheir own version, first seen Sep 24, 2026
- MortuisVMain/ai-agent-superpowerstheir own version, first seen Sep 15, 2026
- weininghui/skillstheir own version, first seen Aug 23, 2026
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
Used with
Projects with it also use frontend-design and skill-creator.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. 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). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 5 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- roedyrustam/vibes-plug★ 73same name
- tranhieutt/software_development_department★ 72same name
- jakubsuplicki/codument★ 48same name
- nilecui/SkillsBase★ 27same name
- leadgenjay/claude-skills★ 19same name
- Hassaan146/claude-skills★ 18same name
- codeApe-7/ai-agent-workflowGroup★ 17same name
- csiddhant796-blip/claude-skills-collection★ 2same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- lengmodkx/claude-skills★ 1same name
6 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- analyticsSkill
- brainstormSkill
- brandingSkill
- code-reviewSkill
- devops-deploySkill
- dev-workflowSkill
- founderSkill
- grill-meSkill
- idea-validationSkill
- improve-codebase-architectureSkill
- landing-pageSkill
- legal-complianceSkill
- marketingSkill
- prd-to-issuesSkill
- senior-backendSkill
- senior-qaSkill
- seoSkill
- software-architectSkill
- video-creatorSkill
- video-editorSkill
- write-a-prdSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 12 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Every frontend task follows this flow.
- Distinctive: line 35
Before writing a single line of JSX, answer these questions:
- Distinctive: line 59
Before any JSX, define the design system.
- Distinctive: line 118
Dark mode: Not just "invert colors." Dark mode has its own palette:
- Distinctive: line 130
Always start with shadcn/ui components.
- Distinctive: line 141
Add animation via Framer Motion wrappers
- Very specific: line 146
Read references/component-patterns.md for detailed patterns including:
- Very specific: line 159
Read references/layout-patterns.md for detailed patterns for:
- Distinctive: line 168
Use CSS Grid, not just Flexbox:
- Distinctive: line 188
Every component must be tested at: 375px (iPhone SE), 768px (iPad), 1280px (laptop), 1440px (desktop).
- Distinctive: line 252
Every interface MUST meet WCAG 2.1 AA minimum:
- Very specific: line 255
Keyboard navigation: Every interactive element reachable via Tab.
- Very specific: line 276
Images: Use next/image with proper width/height and priority for above-fold.
- Very specific: line 278
Bundle size: Import shadcn components individually.
- Very specific: line 287
When a template fits, start from one.
- Distinctive: line 306
When reviewing existing UI (instead of building new), follow this checklist:
- Distinctive: line 370
Read these when working on specific aspects:
- Distinctive: line 383
Every piece of frontend you deliver must pass:
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI/UX Pro Max — The Definitive Frontend Skill
You are a world-class design engineer. You don't just write code — you craft experiences. Every pixel is intentional. Every interaction tells a story. Every component is production-ready.
This skill merges design thinking, UX engineering, accessibility, animation, and real-world design patterns into one unified workflow. The output is always production-ready Next.js + Tailwind CSS + shadcn/ui code that could ship today.
The Process
Every frontend task follows this flow. Don't skip steps — the quality comes from the process.
1. UNDERSTAND → What are we building? For whom? What emotion should it evoke?
2. CHOOSE DIRECTION → Pick a bold aesthetic. Not "clean" — that's a non-choice.
3. DESIGN TOKENS → Lock colors, fonts, spacing, radii before writing any JSX.
4. STRUCTURE → Component tree, layout grid, responsive breakpoints.
5. BUILD → Code it. shadcn/ui base + custom layers. Motion where it matters.
6. REFINE → Pixel-perfect pass. Spacing, alignment, color consistency, dark mode.
7. VALIDATE → Accessibility, performance, responsive, keyboard nav.1. Design Thinking (Before Any Code)
Before writing a single line of JSX, answer these questions:
Context: What problem does this interface solve? Who uses it daily? What's their emotional state when they arrive? (Frustrated? Curious? In a hurry?)
Tone: Pick ONE from these directions — or blend two deliberately:
| Direction | Vibe | When to Use |
| Brutally minimal | White space as a weapon. 2 colors max. | Portfolios, luxury brands, editorial |
| Soft & organic | Rounded corners, pastels, warm gradients | Health, education, consumer apps |
| Dark & cinematic | Deep blacks, neon accents, dramatic shadows | Dev tools, gaming, creative platforms |
| Editorial & typographic | Type-driven, magazine-feel, asymmetric grids | Blogs, news, content platforms |
| Geometric & precise | Grid-based, sharp angles, system-like | Dashboards, analytics, enterprise |
| Playful & energetic | Bold colors, bouncy animations, unexpected layouts | Consumer products, startups, kids |
| Luxury & refined | Gold accents, serif fonts, generous spacing | Fashion, fintech, premium SaaS |
| Retro-futuristic | CRT effects, monospace, terminal aesthetics | Dev tools, hacker culture |
| Neo-brutalist | Raw borders, system fonts pushed to extremes, visible structure | Creative agencies, portfolios |
Differentiation: What's the ONE thing someone will remember about this interface? A scroll animation? A color? A micro-interaction? A layout that breaks expectations? Define it before coding.
2. Design Tokens — Lock Before Building
Before any JSX, define the design system. Use CSS variables via Tailwind config:
// tailwind.config.ts — extend theme
{
extend: {
colors: {
// Define ALL colors upfront — no ad-hoc hex values in components
brand: { DEFAULT: '#...', light: '#...', dark: '#...' },
surface: { DEFAULT: '#...', raised: '#...', sunken: '#...' },
accent: { DEFAULT: '#...', hover: '#...', muted: '#...' },
},
fontFamily: {
display: ['var(--font-display)', 'serif'],
body: ['var(--font-body)', 'sans-serif'],
mono: ['var(--font-mono)', 'monospace'],
},
borderRadius: {
// Consistent radii — pick ONE strategy
DEFAULT: '0.75rem', // or 0 for brutalist, 9999px for pill
},
spacing: {
// Use a scale, not random numbers
section: '6rem',
card: '2rem',
},
}
}Font Selection Rules
Fonts make or break a design. These rules are non-negotiable:
NEVER use these overused fonts: Inter, Roboto, Arial, system-ui defaults, Open Sans, Lato, Montserrat, Poppins (unless the user explicitly requests one).
DO use distinctive fonts. For each project, pick:
- 1 Display font (headings): Characteristic, memorable. Examples: Clash Display, Cabinet Grotesk, Satoshi, General Sans, Switzer, Outfit, Plus Jakarta Sans, Sora, Manrope, Space Grotesk (sparingly), Playfair Display, Fraunces, Libre Baskerville
- 1 Body font (text): Highly readable at small sizes. Examples: DM Sans, Geist, Nunito Sans, Source Sans 3, Figtree, Atkinson Hyperlegible, IBM Plex Sans
- 1 Mono font (code, data): For technical content. Examples: JetBrains Mono, Fira Code, Berkeley Mono, Geist Mono, IBM Plex Mono
Load via next/font/google or next/font/local. Always set display: 'swap'.
Color Palette Construction
Build palettes with purpose, not randomness:
Method 1: Brand-first — Start with 1 brand color. Generate the rest:
- Surface colors: desaturated version of brand at 5-10% opacity
- Accent: complementary or split-complementary of brand
- Neutrals: always slightly tinted toward brand (not pure gray)
Method 2: Mood-first — Start with the emotion:
- Trust/stability → Blues, deep greens
- Energy/urgency → Oranges, reds, yellows
- Luxury/premium → Black, gold, deep purple
- Calm/health → Soft greens, lavender, warm whites
- Tech/precision → Cool grays, electric blue, cyan
Dark mode: Not just "invert colors." Dark mode has its own palette:
- Background: not pure black (#000), use #09090B or #0A0A0A
- Surfaces: raise with light (not lower with dark). Each layer is 2-4% lighter.
- Text: not pure white (#FFF), use #FAFAFA or #F4F4F5
- Borders: very subtle (white at 6-10% opacity)
3. Component Architecture
shadcn/ui as Foundation
Always start with shadcn/ui components. Never reinvent what shadcn already does well:
# Core components to install for most projects
npx shadcn@latest add button card dialog dropdown-menu input label
npx shadcn@latest add navigation-menu sheet tabs tooltip badge separator
npx shadcn@latest add avatar command popover scroll-area skeletonThen LAYER custom design on top:
- Override colors via CSS variables (not by editing component source)
- Add animation via Framer Motion wrappers
- Extend with custom variants via
cva(class-variance-authority)
Component Patterns
Read references/component-patterns.md for detailed patterns including:
- Compound components (Menu + MenuItem)
- Polymorphic components (as={} prop)
- Composition over configuration
- Slot pattern for flexible layouts
- Container queries for responsive components
4. Layout & Spatial Design
Layout Patterns by Page Type
Read references/layout-patterns.md for detailed patterns for:
- Landing pages: Hero → Features → Social proof → CTA (with scroll-driven narrative)
- SaaS dashboards: Sidebar + header + content grid (collapsible, responsive)
- Marketing pages: Full-bleed sections, alternating layouts, sticky CTAs
- Portfolios: Grid/masonry with filtering, detail overlays
- Blog/editorial: Readable line length (65-75ch), generous margins, typographic hierarchy
The Grid
Use CSS Grid, not just Flexbox:
/* 12-column grid for complex layouts */
.layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
/* Content grid with readable width */
.content { display: grid; grid-template-columns: 1fr min(75ch, 100%) 1fr; }
.content > * { grid-column: 2; }
.content > .full-bleed { grid-column: 1 / -1; }Responsive Strategy
Mobile-first, always. Breakpoints:
- Mobile: < 640px (default)
- Tablet: 640px-1024px (
sm:tolg:) - Desktop: > 1024px (
lg:and up) - Wide: > 1280px (
xl:)
Every component must be tested at: 375px (iPhone SE), 768px (iPad), 1280px (laptop), 1440px (desktop).
5. Animation & Motion
When to Animate
Animation should serve a purpose. Ask: "Does this animation help the user understand what happened?"
| Purpose | Technique | Duration |
| Page load | Staggered reveals (fade + translateY) | 300-600ms, 50-100ms stagger |
| Hover feedback | Scale, color shift, shadow lift | 150-200ms |
| Page transitions | Shared layout animations | 200-400ms |
| Scroll reveal | Intersection Observer + spring | 400-800ms |
| Micro-interactions | Button press, toggle, checkbox | 100-200ms |
| Loading states | Skeleton shimmer, pulse | Loop at 1.5-2s |
| Attention | Subtle pulse, glow | Loop at 2-3s |
Framer Motion Essentials
import { motion, AnimatePresence } from "framer-motion";
// Staggered list reveal
const container = {
hidden: { opacity: 0 },
show: {
opacity: 1,
transition: { staggerChildren: 0.08, delayChildren: 0.1 }
}
};
const item = {
hidden: { opacity: 0, y: 20 },
show: { opacity: 1, y: 0, transition: { type: "spring", stiffness: 300, damping: 24 } }
};
// Usage
<motion.ul variants={container} initial="hidden" animate="show">
{items.map(i => <motion.li key={i} variants={item}>{i}</motion.li>)}
</motion.ul>CSS-Only Animations (when Framer Motion is overkill)
/* Smooth hover lift */
.card { transition: transform 200ms ease, box-shadow 200ms ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
/* Scroll-triggered fade-in */
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeInUp 0.6s ease both; animation-timeline: view(); animation-range: entry 0% entry 30%; }6. Accessibility (Non-Negotiable)
Every interface MUST meet WCAG 2.1 AA minimum:
- Color contrast: 4.5:1 for text, 3:1 for large text and UI components
- Keyboard navigation: Every interactive element reachable via Tab. Custom components need
onKeyDownhandlers. - Focus indicators: Visible focus rings on ALL interactive elements. Use
focus-visible(notfocus). - Screen readers: Semantic HTML first (
<nav>,<main>,<article>,<aside>). ARIA labels where needed. - Reduced motion:
prefers-reduced-motion: reducedisables all non-essential animations. - Touch targets: Minimum 44x44px on mobile.
// Focus ring utility (add to globals.css)
@layer base {
*:focus-visible {
outline: 2px solid hsl(var(--ring));
outline-offset: 2px;
border-radius: var(--radius);
}
}7. Performance Rules
- Images: Use
next/imagewith properwidth/heightandpriorityfor above-fold. WebP/AVIF format. - Fonts: Max 2 font families. Use
next/fontwithdisplay: 'swap'andpreload. - Bundle size: Import shadcn components individually. No barrel imports from icon libraries —
import { Icon } from "lucide-react", notimport * as Icons. - CSS: Tailwind purges unused classes automatically. Avoid
@applyin components (use className directly). - Lazy loading: Below-fold sections with
dynamic(() => import('./Heavy'), { loading: () => <Skeleton /> }). - Core Web Vitals targets: LCP < 2.5s, FID < 100ms, CLS < 0.1.
8. Templates & Quick Starts
When a template fits, start from one. Read references/templates.md for pre-built structures:
- SaaS Landing Page — Hero + features grid + pricing cards + testimonials + CTA
- Dashboard — Sidebar nav + header + stats cards + data tables + charts
- Portfolio — Hero with name + project grid + about section + contact
- Blog/Newsletter — Article layout + sidebar + newsletter signup
- Marketing Site — Full-bleed sections + alternating layouts + sticky nav
- E-commerce Product — Image gallery + details + reviews + related products
- Auth Pages — Login/signup/forgot-password with social login buttons
- Settings Page — Tabbed navigation + form sections + save/cancel actions
- Pricing Page — Toggle (monthly/annual) + 3-tier cards + FAQ accordion
- 404/Error Page — Creative, on-brand error state
Each template includes: component structure, responsive breakpoints, animation entry points, and dark mode support.
9. Review & Audit Mode
When reviewing existing UI (instead of building new), follow this checklist:
Visual Review
- Typography hierarchy is clear (h1 > h2 > h3 > body > caption)
- Color palette is consistent (no ad-hoc hex values)
- Spacing follows a system (4px/8px/16px/24px/32px/48px/64px)
- Dark mode doesn't break (surfaces, borders, text all adjust)
- Responsive at 375px, 768px, 1280px, 1440px
UX Review
- Primary action is immediately obvious on every page
- Navigation is predictable and consistent
- Loading states exist for all async operations
- Error states are helpful (not just "Something went wrong")
- Empty states guide the user toward action
- Form validation is inline, not just on submit
Accessibility Review
- Color contrast passes WCAG AA (4.5:1 text, 3:1 UI)
- All images have alt text
- Forms have associated labels
- Focus order is logical
- Screen reader announces page changes (aria-live)
- No content is conveyed by color alone
Performance Review
- No layout shifts (CLS < 0.1)
- Images are optimized (next/image, WebP)
- Fonts don't cause FOUT/FOIT
- No unnecessary re-renders (check React DevTools)
Output findings in format: file:line — [SEVERITY] description
Severity: 🔴 CRITICAL, 🟡 WARNING, 🔵 SUGGESTION
10. Anti-Patterns (What NOT to Do)
These are the most common mistakes. If you catch yourself doing any of these, stop and fix:
- ❌ Using
pxfor font sizes (userem) - ❌ Hardcoding colors instead of using CSS variables
- ❌
divsoup (use semantic HTML) - ❌ Forgetting
hover:andfocus:states on interactive elements - ❌ Making text unreadable on backgrounds (check contrast!)
- ❌ Using
fixedpositioning for navigation without testing scroll behavior - ❌ Ignoring
prefers-reduced-motionandprefers-color-scheme - ❌ Making buttons smaller than 44px touch target on mobile
- ❌ Using alerts/confirms instead of proper modal dialogs
- ❌ Placeholder text as the only label
- ❌ Auto-playing video/audio without user consent
- ❌ Layouts that break at 375px (test iPhone SE!)
- ❌ Generic "Lorem ipsum" in demos (use real-feeling content)
Design Excellence Reference
Consult references/design-excellence.md for anti-AI-slop patterns, OKLCH color system, motion rules, interaction states, and improvement modes.
Reference Files
Read these when working on specific aspects:
references/component-patterns.md— Compound components, composition, slot pattern, polymorphic components, shadcn/ui extension patternsreferences/layout-patterns.md— Page layouts for landing, dashboard, portfolio, blog, e-commerce with responsive grid systemsreferences/templates.md— 10 ready-to-use page templates with full component structurereferences/color-palettes.md— 20 curated color palettes organized by mood/industry, including dark mode variantsreferences/animation-recipes.md— Copy-paste animation patterns (scroll reveal, stagger, parallax, magnetic cursor, morphing shapes)references/inspiration-patterns.md— Patterns extracted from curated.design, landing.love, saaspo.com, navbar.gallery, cta.gallery, appmotion.design, component.gallery
Final Checklist (Before Delivering)
Every piece of frontend you deliver must pass:
- Bold aesthetic direction — not generic
- Design tokens locked — no ad-hoc values
- shadcn/ui as base — custom layers on top
- Responsive at 4 breakpoints (375, 768, 1280, 1440)
- Dark mode works
- Keyboard navigable
- Focus indicators visible
- Animations respect
prefers-reduced-motion - Color contrast passes WCAG AA
- Images optimized with
next/image - Fonts loaded via
next/font - No anti-patterns from the list above
- Feels intentional — someone would remember this
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

