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