ui-ux-design-system
Expert in building premium, accessible UI/UX design systems for SaaS apps. Covers design tokens, component architecture with shadcn/ui and Radix, dark mode, glassmorphism, micro-animations, responsive layouts, and accessibility. Use when: ui, ux, design system, shadcn, radix, tailwind, dark mode, animation, accessibility, components, figma to code.
Best use case
ui-ux-design-system is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Expert in building premium, accessible UI/UX design systems for SaaS apps. Covers design tokens, component architecture with shadcn/ui and Radix, dark mode, glassmorphism, micro-animations, responsive layouts, and accessibility. Use when: ui, ux, design system, shadcn, radix, tailwind, dark mode, animation, accessibility, components, figma to code.
Teams using ui-ux-design-system should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ui-ux-design-system/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ui-ux-design-system Compares
| Feature / Agent | ui-ux-design-system | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Expert in building premium, accessible UI/UX design systems for SaaS apps. Covers design tokens, component architecture with shadcn/ui and Radix, dark mode, glassmorphism, micro-animations, responsive layouts, and accessibility. Use when: ui, ux, design system, shadcn, radix, tailwind, dark mode, animation, accessibility, components, figma to code.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# UI/UX Design System
**Role**: Senior Product Designer & Frontend Engineer
You create UIs people want to use. You understand that great UI is invisible — it just works. You design with hierarchy, whitespace, and contrast. You implement motion that communicates, not distracts. You never ship inaccessible UI. Your components are consistent because they share a design token system.
## Capabilities
- Design token system (colors, typography, spacing, radius, shadows)
- Component library with shadcn/ui + Radix primitives
- Dark mode (class-based, flicker-free)
- Glassmorphism & premium aesthetics
- Micro-animations with Framer Motion
- Responsive layouts (mobile-first)
- Accessibility (WCAG 2.1 AA)
- Loading states, skeletons, and empty states
## Patterns
### Design Token System
One source of truth for all visual values
**When to use**: Project setup, before writing any component styles
```css
/* app/globals.css */
@layer base {
:root {
/* Brand */
--brand-50: 220 100% 97%;
--brand-100: 220 96% 92%;
--brand-500: 220 90% 56%;
--brand-600: 220 88% 46%;
--brand-900: 220 60% 12%;
/* Semantic */
--background: 0 0% 100%;
--foreground: 220 20% 10%;
--card: 0 0% 100%;
--card-foreground: 220 20% 10%;
--muted: 220 14% 96%;
--muted-foreground: 220 10% 46%;
--border: 220 13% 91%;
--ring: 220 90% 56%;
--radius: 0.625rem;
/* Status */
--success: 142 76% 36%;
--warning: 38 92% 50%;
--destructive: 0 84% 60%;
}
.dark {
--background: 220 27% 8%;
--foreground: 210 40% 98%;
--card: 220 22% 12%;
--card-foreground: 210 40% 98%;
--muted: 220 20% 16%;
--muted-foreground: 220 14% 56%;
--border: 220 15% 20%;
--ring: 220 90% 56%;
}
}
```
### Premium Card Component
Glassmorphism with depth
**When to use**: Dashboard widgets, feature cards, pricing cards
```tsx
// components/ui/glass-card.tsx
import { cn } from '@/lib/utils';
interface GlassCardProps extends React.HTMLAttributes<HTMLDivElement> {
blur?: 'sm' | 'md' | 'lg';
}
export function GlassCard({ className, blur = 'md', children, ...props }: GlassCardProps) {
const blurMap = { sm: 'backdrop-blur-sm', md: 'backdrop-blur-md', lg: 'backdrop-blur-xl' };
return (
<div
className={cn(
'rounded-2xl border border-white/10 bg-white/5',
blurMap[blur],
'shadow-[0_8px_32px_rgba(0,0,0,0.12)]',
'transition-all duration-300 hover:bg-white/8 hover:border-white/20',
className
)}
{...props}
>
{children}
</div>
);
}
```
### Micro-Animations with Framer Motion
Animations that communicate state
**When to use**: Page transitions, list items, modals, hover states
```tsx
// components/ui/animated-list.tsx
'use client';
import { motion, AnimatePresence } from 'framer-motion';
const ITEM_VARIANTS = {
hidden: { opacity: 0, y: 16 },
visible: (i: number) => ({
opacity: 1, y: 0,
transition: { delay: i * 0.07, duration: 0.35, ease: [0.25, 0.46, 0.45, 0.94] },
}),
exit: { opacity: 0, y: -8, transition: { duration: 0.2 } },
};
export function AnimatedList({ items, renderItem }: {
items: { id: string }[];
renderItem: (item: any, i: number) => React.ReactNode;
}) {
return (
<AnimatePresence mode="popLayout">
{items.map((item, i) => (
<motion.div key={item.id} custom={i} variants={ITEM_VARIANTS}
initial="hidden" animate="visible" exit="exit"
layout
>
{renderItem(item, i)}
</motion.div>
))}
</AnimatePresence>
);
}
// Page transition wrapper
export function PageTransition({ children }: { children: React.ReactNode }) {
return (
<motion.div
initial={{ opacity: 0, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.4, ease: 'easeOut' }}
>
{children}
</motion.div>
);
}
```
### Loading States & Skeletons
Never show blank screens
**When to use**: Any async data boundary
```tsx
// Always pair data components with skeleton loaders
export function StatCardSkeleton() {
return (
<div className="rounded-2xl border p-6 animate-pulse space-y-3">
<div className="h-4 w-24 bg-muted rounded" />
<div className="h-8 w-16 bg-muted rounded" />
<div className="h-3 w-32 bg-muted rounded" />
</div>
);
}
// app/dashboard/page.tsx – Suspense boundary
import { Suspense } from 'react';
export default function DashboardPage() {
return (
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
<Suspense fallback={<StatCardSkeleton />}>
<RevenueCard />
</Suspense>
</div>
);
}
```
### Empty States
Guide users when no data exists
**When to use**: Tables, lists, dashboards with zero state
```tsx
export function EmptyState({
icon: Icon,
title,
description,
action,
}: {
icon: React.ElementType;
title: string;
description: string;
action?: { label: string; href: string };
}) {
return (
<div className="flex flex-col items-center justify-center py-16 text-center">
<div className="mb-4 rounded-2xl bg-muted p-4">
<Icon className="h-8 w-8 text-muted-foreground" />
</div>
<h3 className="text-lg font-semibold">{title}</h3>
<p className="mt-1 text-sm text-muted-foreground max-w-xs">{description}</p>
{action && (
<a href={action.href} className="mt-4 btn-primary">{action.label}</a>
)}
</div>
);
}
```
### Accessibility Checklist
WCAG 2.1 AA minimum
**When to use**: Every component before shipping
```
✅ Color contrast ≥ 4.5:1 (text), 3:1 (large text, UI components)
✅ All interactive elements keyboard-focusable (Tab order logical)
✅ aria-label on icon-only buttons
✅ role="alert" or aria-live on dynamic status messages
✅ Form inputs have associated <label> (not just placeholder)
✅ Images have meaningful alt text (decorative images use alt="")
✅ Focus ring visible (never 'outline: none' without replacement)
✅ Modal traps focus (use Radix Dialog or Headless UI)
✅ Reduced motion respected (prefers-reduced-motion media query)
```
## Anti-Patterns
### ❌ Hardcoding Colors Inline
**Why bad**: Breaks dark mode, impossible to theme, inconsistent.
**Instead**: Always use CSS variables / design tokens.
### ❌ Animation Without Purpose
**Why bad**: Feels flashy but slows users down. Users with vestibular disorders suffer.
**Instead**: Animate only to communicate state change. Always honor `prefers-reduced-motion`.
### ❌ Placeholder-Only Forms
**Why bad**: Placeholder disappears on focus/type, inaccessible to screen readers.
**Instead**: Always use visible `<label>` elements. Placeholder for hint text only.
### ❌ Mobile as Afterthought
**Why bad**: 60%+ of traffic is mobile. Broken mobile = angry users = churn.
**Instead**: Design mobile-first. Every component works at 320px wide.
## Related Skills
Works well with: `nextjs-saas-builder`, `seo-content-strategy`, `saas-marketing`Related Skills
web-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
vibe-techdesign
Create a Technical Design Document for your MVP. Use when the user wants to plan architecture, choose tech stack, or says "plan technical design", "choose tech stack", or "how should I build this".
ui-ux-designer
Create interface designs, wireframes, and design systems. Masters user research, accessibility standards, and modern design tools.
ui-designer
Generate and serve live HTML/CSS/JS UI designs from natural language prompts. Use when the user asks to design, create, build, or prototype a website, landing page, UI, dashboard, web page, or frontend mockup. Also triggers on requests to update, tweak, or iterate on a previously generated design. Replaces traditional UI design + frontend dev workflow.
ui-design
Applies consistent renderer UI/UX implementation patterns using a Vercel-inspired white theme, strong accessibility defaults, and repository component conventions.
ui-design-styles
Comprehensive guidance for applying modern UI design styles, including Soft UI, Dark Mode, Flat Design, Neumorphism, Glassmorphism, and Aurora UI Gradients. Use when a user asks to: (1) Apply a specific UI style to a project, (2) Create a modern, visually appealing UI prototype, (3) Improve accessibility while following design trends, or (4) Understand the technical implementation of specific UI effects like frosted glass or soft shadows.
ui-design-create-component
Guided component creation with proper patterns Use when: the user asks to run the `create-component` workflow and the task requires multi-step orchestration. Do not use when: the task is small, single-step, and can be completed directly without orchestration overhead.
ui-design-a11y
无障碍设计审查与修复能力。
u04425-experiment-design-for-nutrition-and-meal-planning
Operate the "Experiment design for nutrition and meal planning" capability in production for nutrition and meal planning workflows. Use when mission execution explicitly requires this capability and outcomes must be reproducible, policy-gated, and handoff-ready.
u2615-regression-sentinel-design-for-household-logistics
Operate the "regression sentinel design for household logistics" capability in production for regression sentinel design for household logistics workflows. Use when mission execution explicitly requires this capability and outcomes must be reproducible, policy-gated, and handoff-ready.
tool-design-style-selector
Use when you need to define or converge a project's visual direction. Scan project documentation to identify intent, then produce a design-system.md (either preserve existing style or pick from 30 presets). Triggers: design system, design spec, UI style, visual style, design tokens, color palette, typography, layout. Flow: scan → intent → (gate) preserve vs preset → deploy design-system.md after confirmation → (default) implement UI/UX per design-system.md (plan first, then execute).
test-pyramid-design
Design optimal test pyramids with unit/integration/E2E ratios. Identify anti-patterns and recommend architecture-specific testing strategies.