$npx -y skills add ihlamury/design-skills --skill clerkClerk's UI design system. Use when building interfaces inspired by Clerk's aesthetic - light mode, Inter font, 4px grid.
| 1 | # Clerk UI Skills |
| 2 | |
| 3 | Opinionated constraints for building Clerk-style interfaces with AI agents. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference these guidelines when: |
| 8 | - Building light-mode interfaces |
| 9 | - Creating Clerk-inspired design systems |
| 10 | - Implementing UIs with Inter font and 4px grid |
| 11 | |
| 12 | ## Colors |
| 13 | |
| 14 | - SHOULD use light backgrounds for primary surfaces |
| 15 | - MUST use `#FEFEFE` as page background (`surface-base`) |
| 16 | - MUST use `#C4A9F3` for primary actions and focus states (`accent`) |
| 17 | - SHOULD reduce color palette (currently 12 colors detected) |
| 18 | - MUST maintain text contrast ratio of at least 4.5:1 for accessibility |
| 19 | |
| 20 | ### Semantic Tokens |
| 21 | |
| 22 | | Token | HEX | RGB | Usage | |
| 23 | |-------|-----|-----|-------| |
| 24 | | `surface-base` | #FEFEFE | rgb(254,254,254) | Page background | |
| 25 | | `surface-raised` | #090909 | rgb(9,9,9) | Cards, modals, raised surfaces | |
| 26 | | `text-primary` | #5C5C5C | rgb(92,92,92) | Headings, body text | |
| 27 | | `text-secondary` | #98979D | rgb(152,151,157) | Secondary, muted text | |
| 28 | | `text-tertiary` | #2F2F2F | rgb(47,47,47) | Additional text | |
| 29 | | `border-default` | #E4E4E1 | rgb(228,228,225) | Subtle borders, dividers | |
| 30 | | `accent` | #C4A9F3 | rgb(196,169,243) | Primary actions, links, focus | |
| 31 | |
| 32 | ## Typography |
| 33 | |
| 34 | - MUST use `Inter` as primary font family |
| 35 | - SHOULD use single font family for consistency |
| 36 | - MUST use `66px` / `700` for primary headings |
| 37 | - MUST use `26px` / `700` for body text |
| 38 | - SHOULD reduce font weights (currently 4 detected) |
| 39 | - MUST use `text-balance` for headings and `text-pretty` for body text |
| 40 | - SHOULD use `tabular-nums` for numeric data |
| 41 | - NEVER modify letter-spacing unless explicitly requested |
| 42 | |
| 43 | ### Text Styles |
| 44 | |
| 45 | | Style | Font | Size | Weight | Color | Count | |
| 46 | |-------|------|------|--------|-------|-------| |
| 47 | | `heading-1` | Inter | 66px | 700 | #262628 | 1 | |
| 48 | | `body` | Inter | 26px | 700 | #292929 | 1 | |
| 49 | | `text-19px` | Inter | 19px | 500 | #4D4D4D | 1 | |
| 50 | | `text-18px` | Inter | 18px | 500 | #303030 | 1 | |
| 51 | | `text-18px` | Inter | 18px | 400 | #525252 | 1 | |
| 52 | | `text-17px` | Inter | 17px | 500 | #E9E9E9 | 1 | |
| 53 | | `text-17px` | Inter | 17px | 400 | #838285 | 1 | |
| 54 | | `text-16px` | Inter | 16px | 500 | #2F2F2F | 1 | |
| 55 | | `text-16px` | Inter | 16px | 300 | #F5F5F5 | 1 | |
| 56 | | `text-15px` | Inter | 15px | 400 | #BDBDBD | 1 | |
| 57 | |
| 58 | ### Typography Reference |
| 59 | |
| 60 | **Font Families:** |
| 61 | - `Inter` (used 28x) |
| 62 | |
| 63 | **Font Sizes:** 9px, 11px, 12px, 14px, 15px, 16px, 17px, 18px, 19px, 26px, 66px |
| 64 | |
| 65 | ## Spacing |
| 66 | |
| 67 | - MUST use 4px grid for spacing |
| 68 | - SHOULD use spacing from scale: 1px, 2px, 4px, 5px, 16px, 37px, 49px, 51px |
| 69 | - SHOULD use 5px as default gap between elements |
| 70 | - NEVER use arbitrary spacing values (use design scale) |
| 71 | - SHOULD maintain consistent padding within containers |
| 72 | |
| 73 | ## Borders |
| 74 | |
| 75 | - MUST use border-radius from scale: 4px, 6px, 7px |
| 76 | - MUST use 1px border width consistently |
| 77 | - SHOULD use 6px as default border-radius |
| 78 | - NEVER use arbitrary border-radius values (use design scale) |
| 79 | - SHOULD use subtle borders (1px) for element separation |
| 80 | |
| 81 | ### Border Radius Reference |
| 82 | |
| 83 | **Scale:** 4px, 6px, 7px |
| 84 | |
| 85 | ## Layout |
| 86 | |
| 87 | - MUST design for 1920px base viewport width |
| 88 | - SHOULD use consistent element widths: 8px, 52px, 44px, 363px, 71px |
| 89 | - SHOULD maintain text-heavy layout with clear hierarchy |
| 90 | - NEVER use `h-screen`, use `h-dvh` for full viewport height |
| 91 | - MUST respect `safe-area-inset` for fixed elements |
| 92 | - SHOULD use `size-*` for square elements instead of `w-*` + `h-*` |
| 93 | |
| 94 | ### Detected Layout Patterns |
| 95 | |
| 96 | - **Main Content**: width: 1920px, height: 584px |
| 97 | |
| 98 | ## Components |
| 99 | |
| 100 | - MUST use `0px` height for input fields |
| 101 | |
| 102 | ### Buttons |
| 103 | |
| 104 | | Variant | Background | Text | Border | Height | Radius | |
| 105 | |---------|------------|------|--------|--------|--------| |
| 106 | | Ghost | transparent | #BDBDBD | none | - | - | |
| 107 | |
| 108 | ### Inputs |
| 109 | |
| 110 | - Height: `0px` |
| 111 | |
| 112 | ## Interactive States |
| 113 | |
| 114 | ### Focus |
| 115 | |
| 116 | - MUST use `2px` outline with accent color (`#C4A9F3`) |
| 117 | - MUST use `2px` outline-offset |
| 118 | - NEVER remove focus indicators |
| 119 | |
| 120 | ### Hover |
| 121 | |
| 122 | - Buttons (primary): lighten background by 10% |
| 123 | - Buttons (secondary): use `#090909` background |
| 124 | - List items: use `#090909` background |
| 125 | |
| 126 | ### Disabled |
| 127 | |
| 128 | - MUST use `opacity: 0.5` |
| 129 | - MUST use `cursor: not-allowed` |
| 130 | |
| 131 | ## Interaction |
| 132 | |
| 133 | - MUST use an `AlertDialog` for destructive or irreversible actions |
| 134 | - SHOULD use structural skeletons for loading states |
| 135 | - MUST show errors next to where the action happens |
| 136 | - NEVER block paste in `input` or `textarea` elements |
| 137 | - MUST add an `aria-label` to icon-only buttons |
| 138 | |
| 139 | ## Animation |
| 140 | |
| 141 | - NEVER add animation unless it is explicitly requested |
| 142 | - MUST animate only compositor props (`transform`, `opacity`) |
| 143 | - NEVER animate layout properties (`width`, `height`, `top`, `left`, `margin`, `padding`) |
| 144 | - SHOULD use `ease-out` on entrance animations |
| 145 | - NEVER exceed `200ms` for interaction feedback |
| 146 | - SHOULD respect `prefers-reduced-motion` |
| 147 | |
| 148 | ## Performance |
| 149 | |
| 150 | - NEVER animate large `bl |