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