with one click
ui-design-system-ref
UI design system rules and patterns reference
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
UI design system rules and patterns reference
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Finish feature with tests, commit, and session closure
Start feature with branch and session tracking
Interactive wizard to configure the project
System-wide code audit with 8 modules
Environment-aware deployment with pre/post checks
Methodical codebase exploration and understanding
Based on SOC occupation classification
| name | ui-design-system-ref |
| description | UI design system rules and patterns reference |
Auto-loaded reference for frontend UI decisions, patterns, and consistency rules.
| Scenario | Use | Don't Use |
|---|---|---|
| 3+ items to switch between | Tabs | Multiple buttons |
| Filtering list/table data | Filter bar / chips | Tabs |
| Step-by-step process | Stepper / wizard | Tabs |
| Binary toggle | Switch | Checkbox (for settings) |
| Multiple selections | Checkboxes | Multi-select dropdown |
| Single selection (>5 options) | Select/dropdown | Radio buttons |
| Single selection (2-5 options) | Radio buttons / segmented control | Dropdown |
| Destructive action | Confirmation dialog | Inline action |
| Non-critical info | Toast notification | Dialog |
| Critical info/error | Alert banner or dialog | Toast |
┌─────────────────────────────┐
│ Header: Title + Actions │
├─────────────────────────────┤
│ Filters / Search Bar │
├─────────────────────────────┤
│ Table / List │
│ ┌───┬───────┬──────┬──────┐ │
│ │ │ Col 1 │ Col 2│ Acts │ │
│ ├───┼───────┼──────┼──────┤ │
│ │ │ │ │ │ │
│ └───┴───────┴──────┴──────┘ │
├─────────────────────────────┤
│ Pagination │
└─────────────────────────────┘
┌─────────────────────────────┐
│ Header: Back + Title + Acts │
├──────────┬──────────────────┤
│ Sidebar │ Main Content │
│ (nav/ │ ┌──────────────┐ │
│ meta) │ │ Section 1 │ │
│ │ ├──────────────┤ │
│ │ │ Section 2 │ │
│ │ └──────────────┘ │
└──────────┴──────────────────┘
┌─────────────────────────────┐
│ Header: Title + Save/Cancel │
├─────────────────────────────┤
│ Form Content │
│ ┌─────────────────────────┐ │
│ │ Field Group 1 │ │
│ ├─────────────────────────┤ │
│ │ Field Group 2 │ │
│ ├─────────────────────────┤ │
│ │ Field Group 3 │ │
│ └─────────────────────────┘ │
├─────────────────────────────┤
│ Footer: Actions │
└─────────────────────────────┘
dark:bg-gray-800, CSS: var(--bg-primary)filter: brightness(0.9) for images in dark modeUse consistent spacing tokens (not magic numbers):
xs: 4px (0.25rem)sm: 8px (0.5rem)md: 16px (1rem)lg: 24px (1.5rem)xl: 32px (2rem)2xl: 48px (3rem)| Context | Spacing |
|---|---|
| Between form fields | md (16px) |
| Between sections | xl (32px) |
| Inside cards | lg (24px) |
| Between buttons | sm (8px) |
| Page padding | lg to xl |
Before committing any frontend change:
| Purpose | Light Mode | Dark Mode |
|---|---|---|
| Background (primary) | White / Gray-50 | Gray-900 / Gray-950 |
| Background (secondary) | Gray-100 | Gray-800 |
| Text (primary) | Gray-900 | Gray-100 |
| Text (secondary) | Gray-600 | Gray-400 |
| Border | Gray-200 | Gray-700 |
| Accent | Brand color | Brand color (lighter variant) |
| Error | Red-600 | Red-400 |
| Success | Green-600 | Green-400 |
| Warning | Yellow-600 | Yellow-400 |
Note: These are guidelines. Use the project's actual design tokens if defined.