$npx -y skills add ihlamury/design-skills --skill codaCoda's UI design system. Use when building interfaces inspired by Coda's aesthetic - light mode, Inter font, 4px grid.
| 1 | # Coda UI Skills |
| 2 | |
| 3 | Opinionated constraints for building Coda-style interfaces with AI agents. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference these guidelines when: |
| 8 | - Building light-mode interfaces |
| 9 | - Creating Coda-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 `#DCEBF4` for primary actions and focus states (`accent`) |
| 17 | - SHOULD reduce color palette (currently 21 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` | #000000 | rgb(0,0,0) | Cards, modals, raised surfaces | |
| 26 | | `surface-overlay` | #FEE0BC | rgb(254,224,188) | Overlays, tooltips, dropdowns | |
| 27 | | `text-primary` | #6D6D6D | rgb(109,109,109) | Headings, body text | |
| 28 | | `text-secondary` | #8E8E8E | rgb(142,142,142) | Secondary, muted text | |
| 29 | | `text-tertiary` | #41505D | rgb(65,80,93) | Additional text | |
| 30 | | `border-default` | #325395 | rgb(50,83,149) | Subtle borders, dividers | |
| 31 | | `accent` | #DCEBF4 | rgb(220,235,244) | Primary actions, links, focus | |
| 32 | | `destructive` | #F1E7E2 | rgb(241,231,226) | Error states, delete actions | |
| 33 | | `warning` | #FEE0BC | rgb(254,224,188) | Warning states, cautions | |
| 34 | |
| 35 | ## Typography |
| 36 | |
| 37 | - MUST use `Inter` as primary font family |
| 38 | - SHOULD use single font family for consistency |
| 39 | - MUST use `71px` / `700` for primary headings |
| 40 | - MUST use `16px` / `500` for body text |
| 41 | - SHOULD reduce font weights (currently 5 detected) |
| 42 | - MUST use `text-balance` for headings and `text-pretty` for body text |
| 43 | - SHOULD use `tabular-nums` for numeric data |
| 44 | - NEVER modify letter-spacing unless explicitly requested |
| 45 | |
| 46 | ### Text Styles |
| 47 | |
| 48 | | Style | Font | Size | Weight | Color | Count | |
| 49 | |-------|------|------|--------|-------|-------| |
| 50 | | `heading-1` | Inter | 71px | 700 | #26231F | 1 | |
| 51 | | `text-58px` | Inter | 58px | 700 | #27231F | 1 | |
| 52 | | `text-21px` | Inter | 21px | 400 | #8A7762 | 1 | |
| 53 | | `text-20px` | Inter | 20px | 400 | #919191 | 1 | |
| 54 | | `text-20px` | Inter | 20px | semi_bold | #4F4F4F | 1 | |
| 55 | | `text-20px` | Inter | 20px | semi_bold | #30271D | 1 | |
| 56 | | `text-19px` | Inter | 19px | 400 | #8E8E8E | 1 | |
| 57 | | `text-18px` | Inter | 18px | semi_bold | #878989 | 1 | |
| 58 | | `text-18px` | Inter | 18px | 500 | #595959 | 1 | |
| 59 | | `body` | Inter | 16px | 500 | #6D6D6D | 1 | |
| 60 | |
| 61 | ### Typography Reference |
| 62 | |
| 63 | **Font Families:** |
| 64 | - `Inter` (used 45x) |
| 65 | |
| 66 | **Font Sizes:** 7px, 9px, 10px, 11px, 12px, 13px, 14px, 15px, 16px, 18px, 19px, 20px, 21px, 58px, 71px |
| 67 | |
| 68 | ## Spacing |
| 69 | |
| 70 | - MUST use 4px grid for spacing |
| 71 | - SHOULD use spacing from scale: 1px, 3px, 4px, 5px, 6px, 9px, 10px, 12px |
| 72 | - SHOULD use 5px as default gap between elements |
| 73 | - NEVER use arbitrary spacing values (use design scale) |
| 74 | - SHOULD maintain consistent padding within containers |
| 75 | |
| 76 | ## Borders |
| 77 | |
| 78 | - MUST use border-radius from scale: 3px, 4px, 5px, 6px, 7px, 15px |
| 79 | - SHOULD limit border widths to: 1px, 2px, 3px |
| 80 | - SHOULD use 5px 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, 4px, 5px, 6px, 7px, 15px |
| 87 | |
| 88 | ## Layout |
| 89 | |
| 90 | - MUST design for 1920px base viewport width |
| 91 | - SHOULD use consistent element widths: 14px, 10px, 13px, 40px, 16px |
| 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: 1848px, height: 1080px |
| 100 | - **Main Content**: width: 1135px, height: 583px |
| 101 | - **Main Content**: width: 1135px, height: 584px |
| 102 | |
| 103 | ## Components |
| 104 | |
| 105 | - MUST use `0px` height for input fields |
| 106 | |
| 107 | ### Buttons |
| 108 | |
| 109 | | Variant | Background | Text | Border | Height | Radius | |
| 110 | |---------|------------|------|--------|--------|--------| |
| 111 | | Ghost | transparent | #41505D | none | - | - | |
| 112 | |
| 113 | ### Inputs |
| 114 | |
| 115 | - Height: `0px` |
| 116 | |
| 117 | ## Interactive States |
| 118 | |
| 119 | ### Focus |
| 120 | |
| 121 | - MUST use `2px` outline with accent color (`#DCEBF4`) |
| 122 | - MUST use `2px` outline-offset |
| 123 | - NEVER remove focus indicators |
| 124 | |
| 125 | ### Hover |
| 126 | |
| 127 | - Buttons (primary): lighten background by 10% |
| 128 | - Buttons (secondary): use `#000000` background |
| 129 | - List items: use `#000000` background |
| 130 | |
| 131 | ### Disabled |
| 132 | |
| 133 | - MUST use `opacity: 0.5` |
| 134 | - MUST use `cursor: not-allowed` |
| 135 | |
| 136 | ## Interaction |
| 137 | |
| 138 | - MUST use an `AlertDialog` for destructive or irreversible actions |
| 139 | - SHOULD use structural skeletons for loading states |
| 140 | - MUST show errors next to where the action happens |
| 141 | - NEVER block paste in `input` or `textarea` elements |
| 142 | - MUST add an `aria-label` to icon-only buttons |
| 143 | |
| 144 | # |