$npx -y skills add ihlamury/design-skills --skill matterMatter's UI design system. Use when building interfaces inspired by Matter's aesthetic - dark mode, Inter font, 4px grid.
| 1 | # Matter UI Skills |
| 2 | |
| 3 | Opinionated constraints for building Matter-style interfaces with AI agents. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference these guidelines when: |
| 8 | - Building dark-mode interfaces |
| 9 | - Creating Matter-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: 0 |
| 15 | - MUST use `#000000` as page background (`surface-base`) |
| 16 | - MUST use `#5560EC` for primary actions and focus states (`accent`) |
| 17 | - SHOULD reduce color palette (currently 19 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` | #000000 | rgb(0,0,0) | Page background | |
| 25 | | `surface-raised` | #CFE3F9 | rgb(207,227,249) | Cards, modals, raised surfaces | |
| 26 | | `surface-overlay` | #8DBDF7 | rgb(141,189,247) | Overlays, tooltips, dropdowns | |
| 27 | | `text-primary` | #627EA1 | rgb(98,126,161) | Headings, body text | |
| 28 | | `text-2` | #8C9BAB | rgb(140,155,171) | Additional text | |
| 29 | | `text-secondary` | #888888 | rgb(136,136,136) | Secondary, muted text | |
| 30 | | `border-default` | #D4E5F8 | rgb(212,229,248) | Subtle borders, dividers | |
| 31 | | `accent` | #5560EC | rgb(85,96,236) | Primary actions, links, focus | |
| 32 | | `destructive` | #200D11 | rgb(32,13,17) | Error states, delete actions | |
| 33 | |
| 34 | ## Typography |
| 35 | |
| 36 | - MUST use `Inter` as primary font family |
| 37 | - SHOULD use single font family for consistency |
| 38 | - MUST use `81px` / `700` for primary headings |
| 39 | - MUST use `35px` / `700` for body text |
| 40 | - SHOULD reduce font weights (currently 6 detected) |
| 41 | - MUST use `text-balance` for headings and `text-pretty` for body text |
| 42 | - SHOULD use `tabular-nums` for numeric data |
| 43 | - NEVER modify letter-spacing unless explicitly requested |
| 44 | |
| 45 | ### Text Styles |
| 46 | |
| 47 | | Style | Font | Size | Weight | Color | Count | |
| 48 | |-------|------|------|--------|-------|-------| |
| 49 | | `heading-1` | Inter | 81px | 700 | #F0F0F0 | 1 | |
| 50 | | `body` | Inter | 35px | 700 | #818181 | 1 | |
| 51 | | `text-32px` | Inter | 32px | semi_bold | #747474 | 1 | |
| 52 | | `text-26px` | Inter | 26px | extra_bold | #8C8C8C | 1 | |
| 53 | | `text-24px` | Inter | 24px | 700 | #848484 | 1 | |
| 54 | | `text-21px` | Inter | 21px | semi_bold | #494949 | 1 | |
| 55 | | `text-20px` | Inter | 20px | 500 | #515151 | 1 | |
| 56 | | `text-19px` | Inter | 19px | 400 | #666666 | 1 | |
| 57 | | `text-16px` | Inter | 16px | 400 | #3C3C3C | 1 | |
| 58 | | `text-15px` | Inter | 15px | 400 | #525252 | 1 | |
| 59 | |
| 60 | ### Typography Reference |
| 61 | |
| 62 | **Font Families:** |
| 63 | - `Inter` (used 32x) |
| 64 | |
| 65 | **Font Sizes:** 8px, 9px, 10px, 11px, 12px, 13px, 14px, 15px, 16px, 19px, 20px, 21px, 24px, 26px, 32px, 35px, 81px |
| 66 | |
| 67 | ## Spacing |
| 68 | |
| 69 | - MUST use 4px grid for spacing |
| 70 | - SHOULD use spacing from scale: 1px, 2px, 4px, 5px, 6px, 7px, 9px, 10px |
| 71 | - SHOULD use 2px as default gap between elements |
| 72 | - NEVER use arbitrary spacing values (use design scale) |
| 73 | - SHOULD maintain consistent padding within containers |
| 74 | |
| 75 | ## Borders |
| 76 | |
| 77 | - MUST use border-radius from scale: 0px, 1px, 10px, 15px |
| 78 | - SHOULD limit border widths to: 1px, 2px |
| 79 | - SHOULD use 1px as default border-radius |
| 80 | - NEVER use arbitrary border-radius values (use design scale) |
| 81 | - SHOULD use subtle borders (1px) for element separation |
| 82 | |
| 83 | ### Border Radius Reference |
| 84 | |
| 85 | **Scale:** 0px, 1px, 10px, 15px |
| 86 | |
| 87 | ## Layout |
| 88 | |
| 89 | - MUST design for 1920px base viewport width |
| 90 | - SHOULD use consistent element widths: 13px, 102px, 38px, 37px, 14px |
| 91 | - SHOULD maintain text-heavy layout with clear hierarchy |
| 92 | - NEVER use `h-screen`, use `h-dvh` for full viewport height |
| 93 | - MUST respect `safe-area-inset` for fixed elements |
| 94 | - SHOULD use `size-*` for square elements instead of `w-*` + `h-*` |
| 95 | |
| 96 | ### Detected Layout Patterns |
| 97 | |
| 98 | - **Header**: height: 58px |
| 99 | - **Main Content**: width: 1920px, height: 1025px |
| 100 | - **Main Content**: width: 1920px, height: 1023px |
| 101 | - **Header**: height: 59px |
| 102 | |
| 103 | ## Components |
| 104 | |
| 105 | ### Buttons |
| 106 | |
| 107 | | Variant | Background | Text | Border | Height | Radius | |
| 108 | |---------|------------|------|--------|--------|--------| |
| 109 | | Ghost | transparent | #8C9BAB | none | - | - | |
| 110 | |
| 111 | ## Interactive States |
| 112 | |
| 113 | ### Focus |
| 114 | |
| 115 | - MUST use `2px` outline with accent color (`#5560EC`) |
| 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 `#CFE3F9` background |
| 123 | - List items: use `#CFE3F9` 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 composi |