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