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