$npx -y skills add ihlamury/design-skills --skill ashbyAshby's UI design system. Use when building interfaces inspired by Ashby's aesthetic - dark mode, Inter font, 4px grid.
| 1 | # Ashby UI Skills |
| 2 | |
| 3 | Opinionated constraints for building Ashby-style interfaces with AI agents. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference these guidelines when: |
| 8 | - Building dark-mode interfaces |
| 9 | - Creating Ashby-inspired design systems |
| 10 | - Implementing UIs with Inter font and 4px grid |
| 11 | |
| 12 | ## Colors |
| 13 | |
| 14 | - MUST use dark backgrounds (lightness < 20) for primary surfaces - detected lightness: 9 |
| 15 | - MUST use `#0E1122` 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` | #0E1122 | rgb(14,17,34) | Page background | |
| 24 | | `surface-raised` | #FEFEFE | rgb(254,254,254) | Cards, modals, raised surfaces | |
| 25 | | `text-primary` | #D6D9DD | rgb(214,217,221) | Headings, body text | |
| 26 | | `text-secondary` | #34384D | rgb(52,56,77) | Secondary, muted text | |
| 27 | | `text-tertiary` | #797979 | rgb(121,121,121) | Additional text | |
| 28 | | `border-default` | #818288 | rgb(129,130,136) | Subtle borders, dividers | |
| 29 | |
| 30 | ## Typography |
| 31 | |
| 32 | - MUST use `Inter` as primary font family |
| 33 | - SHOULD use single font family for consistency |
| 34 | - MUST use `28px` / `700` for primary headings |
| 35 | - MUST use `24px` / `semi_bold` for body text |
| 36 | - SHOULD reduce font weights (currently 4 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 | 28px | 700 | #E6E8EB | 1 | |
| 46 | | `heading-2` | Inter | 25px | semi_bold | #D1D3D8 | 1 | |
| 47 | | `heading-3` | Inter | 24px | semi_bold | #E2E5E9 | 1 | |
| 48 | | `body` | Inter | 24px | semi_bold | #E0E2E6 | 1 | |
| 49 | | `body-secondary` | Inter | 24px | semi_bold | #D7D9DD | 1 | |
| 50 | | `text-19px` | Inter | 19px | semi_bold | #D6D9DD | 1 | |
| 51 | | `text-19px` | Inter | 19px | 400 | #507A5D | 1 | |
| 52 | | `text-16px` | Inter | 16px | 400 | #797979 | 1 | |
| 53 | | `text-15px` | Inter | 15px | 400 | #34384D | 1 | |
| 54 | | `caption` | Inter | 14px | 400 | #313549 | 1 | |
| 55 | |
| 56 | ### Typography Reference |
| 57 | |
| 58 | **Font Families:** |
| 59 | - `Inter` (used 16x) |
| 60 | |
| 61 | **Font Sizes:** 12px, 13px, 14px, 15px, 16px, 19px, 24px, 25px, 28px |
| 62 | |
| 63 | ## Spacing |
| 64 | |
| 65 | - MUST use 4px grid for spacing |
| 66 | - SHOULD use spacing from scale: 2px, 3px, 4px, 5px, 88px |
| 67 | - SHOULD use 2px 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: 10px |
| 74 | - MUST use 4px border width consistently |
| 75 | - SHOULD use 10px 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:** 10px |
| 82 | |
| 83 | ## Layout |
| 84 | |
| 85 | - MUST design for 1920px base viewport width |
| 86 | - SHOULD use consistent element widths: 560px, 17px, 564px, 1px, 79px |
| 87 | - SHOULD maintain text-heavy layout with clear hierarchy |
| 88 | - NEVER use `h-screen`, use `h-dvh` for full viewport height |
| 89 | - MUST respect `safe-area-inset` for fixed elements |
| 90 | - SHOULD use `size-*` for square elements instead of `w-*` + `h-*` |
| 91 | |
| 92 | ## Components |
| 93 | |
| 94 | - MUST use `0px` height for input fields |
| 95 | |
| 96 | ### Inputs |
| 97 | |
| 98 | - Height: `0px` |
| 99 | |
| 100 | ## Interactive States |
| 101 | |
| 102 | ### Focus |
| 103 | |
| 104 | - MUST use `2px` outline with accent color (`#5E6AD2`) |
| 105 | - MUST use `2px` outline-offset |
| 106 | - NEVER remove focus indicators |
| 107 | |
| 108 | ### Hover |
| 109 | |
| 110 | - Buttons (primary): lighten background by 10% |
| 111 | - Buttons (secondary): use `#FEFEFE` background |
| 112 | - List items: use `#FEFEFE` background |
| 113 | |
| 114 | ### Disabled |
| 115 | |
| 116 | - MUST use `opacity: 0.5` |
| 117 | - MUST use `cursor: not-allowed` |
| 118 | |
| 119 | ## Interaction |
| 120 | |
| 121 | - MUST use an `AlertDialog` for destructive or irreversible actions |
| 122 | - SHOULD use structural skeletons for loading states |
| 123 | - MUST show errors next to where the action happens |
| 124 | - NEVER block paste in `input` or `textarea` elements |
| 125 | - MUST add an `aria-label` to icon-only buttons |
| 126 | |
| 127 | ## Animation |
| 128 | |
| 129 | - NEVER add animation unless it is explicitly requested |
| 130 | - MUST animate only compositor props (`transform`, `opacity`) |
| 131 | - NEVER animate layout properties (`width`, `height`, `top`, `left`, `margin`, `padding`) |
| 132 | - SHOULD use `ease-out` on entrance animations |
| 133 | - NEVER exceed `200ms` for interaction feedback |
| 134 | - SHOULD respect `prefers-reduced-motion` |
| 135 | |
| 136 | ## Performance |
| 137 | |
| 138 | - NEVER animate large `blur()` or `backdrop-filter` surfaces |
| 139 | - NEVER apply `will-change` outside an active animation |
| 140 | - NEVER use `useEffect` for anything that can be expressed as render logic |