Design system
Design tokens, typography scales, spacing systems, color theory, and visual hierarchy principles for creating cohesive, polished interfaces with Tailwind CSS.From its SKILL.md
npx -y skills add connorbell133/ui-ux-plugins --skill design-systemAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.3 KB, as published. Nobody here has run it
Visual Design System
Typography Scale
Use a modular scale with 1.25 ratio for consistent visual rhythm:
| Role | Tailwind Class | Size | Weight | Line Height |
|---|---|---|---|---|
| Display | text-5xl | 48px | font-bold | leading-tight |
| H1 | text-4xl | 36px | font-bold | leading-tight |
| H2 | text-2xl | 24px | font-semibold | leading-tight |
| H3 | text-xl | 20px | font-semibold | leading-snug |
| H4 | text-lg | 18px | font-medium | leading-snug |
| Body | text-base | 16px | font-normal | leading-relaxed |
| Small | text-sm | 14px | font-normal | leading-normal |
| Caption | text-xs | 12px | font-medium | leading-normal |
Rules:
- Use
tracking-tighton display and H1 headings for visual density - Body text line length: 45-75 characters (use
max-w-proseormax-w-2xl) - Use
text-muted-foregroundfor secondary/supporting text - Weight hierarchy: bold → semibold → medium → normal (never skip two levels)
Spacing System
4px base unit. Every spacing value should be a multiple of 4:
| Scale | Tailwind | Pixels | Usage |
|---|---|---|---|
| xs | gap-1 / p-1 | 4px | Tight spacing between inline elements |
| sm | gap-2 / p-2 | 8px | Related items within a group |
| md | gap-3 / p-3 | 12px | Default component internal padding |
| base | gap-4 / p-4 | 16px | Standard component padding, list item gaps |
| lg | gap-6 / p-6 | 24px | Section padding, card content padding |
| xl | gap-8 / p-8 | 32px | Major section gaps, page horizontal padding |
| 2xl | gap-12 / p-12 | 48px | Between major page sections |
| 3xl | gap-16 / p-16 | 64px | Page vertical padding, hero sections |
Rules:
- Component internal padding:
p-4top-6 - Gap between components in a grid/list:
gap-4togap-6 - Page horizontal margins:
px-6topx-16 - Vertical space between page sections:
py-12topy-16 - Maintain consistent spacing rhythm — don't mix
gap-5andgap-6in the same view
Color Theory
Semantic Color System (shadcn)
Use the semantic color tokens, not raw colors:
- Primary (
bg-primary) — Brand color. Main CTAs, active navigation, selected states. - Secondary (
bg-secondary) — Supporting actions. Secondary buttons, hover backgrounds. - Muted (
bg-muted) — Subtle backgrounds. Sidebar, code blocks, disabled states. - Accent (
bg-accent) — Highlight color. Hover states, active rows, chips. - Destructive (
bg-destructive) — Danger/delete. Error states, destructive buttons, alerts.
Custom Palette Guidelines
When establishing a color direction for a project:
- Choose one primary hue and build variants using HSL (adjust lightness ±10-20%)
- Neutral grays for backgrounds: use 2-3 shades (white → very light gray → light gray)
- Text grays: high contrast for primary text (
text-foreground), medium for secondary (text-muted-foreground) - Semantic colors are non-negotiable: green=success, amber=warning, red=error, blue=info
- Contrast ratios: 4.5:1 minimum for normal text, 3:1 for large text (>18px bold)
Color Usage Patterns
- Backgrounds: Max 3 levels (page bg → card bg → nested element bg)
- Borders: Use sparingly.
border-borderat 1px for card boundaries. Use whitespace/shadow instead of borders when possible. - Status indicators: Colored dot + text label (never color alone — accessibility)
- Charts/data viz: Use 5-7 distinct hues at similar saturation. Avoid red/green pairs for colorblind users.
Visual Hierarchy
Establish importance through these tools, in order of impact:
- Size — Largest element draws the eye first. Page title > section title > body text.
- Color/Contrast — High contrast elements read as more important. Primary color for CTAs.
- Weight — Bolder text appears more important. Use weight to differentiate headings from body.
- Position — Top-left reads first (F-pattern for content, Z-pattern for landing pages). Place primary actions at natural scan endpoints.
- Whitespace — Elements surrounded by space feel more important. Don't crowd important elements.
Common hierarchies:
- Dashboard: KPI cards (largest, top) → Charts (medium) → Tables/lists (detailed, bottom)
- Settings: Navigation (sidebar, persistent) → Section heading → Form fields → Save button (bottom-right)
- Landing page: Hero (full-width, bold) → Features (grid) → Social proof → CTA
Elevation & Depth
Shadow scale creates visual layering:
| Level | Tailwind | Usage |
|---|---|---|
| Flat | no shadow | Inline elements, backgrounds |
| Raised | shadow-sm | Cards, list items |
| Elevated | shadow-md | Dropdown menus, popovers |
| Floating | shadow-lg | Tooltips, floating action buttons |
| Overlay | shadow-xl | Modals, dialog boxes |
Rules:
- Cards:
shadow-smdefault,shadow-mdon hover for interactive cards - Modals:
shadow-xl+backdrop-blur-smon the overlay background - Focus rings:
ring-2 ring-ring ring-offset-2— visible, consistent, accessible - Don't combine heavy shadows with heavy borders — choose one depth technique
Motion Principles
Animation durations and easing for Framer Motion and CSS transitions:
| Interaction | Duration | Easing |
|---|---|---|
| Micro-interaction (hover, focus) | 150-200ms | ease-out |
| Element enter/appear | 200-300ms | ease-out / [0.16, 1, 0.3, 1] |
| Element exit/disappear | 150-200ms | ease-in |
| Page transition | 300-500ms | ease-in-out |
| Layout shift | 200-400ms | spring (stiffness: 300, damping: 30) |
| Stagger delay (list items) | 50-100ms per item | — |
Rules:
- Entrances are slightly slower than exits (builds anticipation vs quick dismissal)
- Use
springphysics for layout animations — feels more natural than linear easing - Stagger children for lists/grids: creates a "cascade" effect that guides the eye
- Never animate more than 2 properties simultaneously on a single element
- Reduce motion for
prefers-reduced-motion— usemotion-safe:Tailwind modifier