$npx -y skills add ihlamury/design-skills --skill calCal's UI design system. Use when building interfaces inspired by Cal's aesthetic - light mode, Inter font, 4px grid.
| 1 | # Cal UI Skills |
| 2 | |
| 3 | Opinionated constraints for building Cal-style interfaces with AI agents. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference these guidelines when: |
| 8 | - Building light-mode interfaces |
| 9 | - Creating Cal-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 `#FDFDFD` as page background (`surface-base`) |
| 16 | - SHOULD reduce color palette (currently 16 colors detected) |
| 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` | #FDFDFD | rgb(253,253,253) | Page background | |
| 24 | | `surface-raised` | #EDEDED | rgb(237,237,237) | Cards, modals, raised surfaces | |
| 25 | | `surface-overlay` | #1C1C1C | rgb(28,28,28) | Overlays, tooltips, dropdowns | |
| 26 | | `text-primary` | #6B6B6B | rgb(107,107,107) | Headings, body text | |
| 27 | | `text-secondary` | #A1A1A1 | rgb(161,161,161) | Secondary, muted text | |
| 28 | | `text-tertiary` | #404040 | rgb(64,64,64) | Additional text | |
| 29 | | `border-default` | #E5E5E5 | rgb(229,229,229) | Subtle borders, dividers | |
| 30 | | `destructive` | #FCC9C1 | rgb(252,201,193) | Error states, delete actions | |
| 31 | |
| 32 | ## Typography |
| 33 | |
| 34 | - MUST use `Inter` as primary font family |
| 35 | - SHOULD use single font family for consistency |
| 36 | - MUST use `70px` / `700` for primary headings |
| 37 | - MUST use `16px` / `400` for body text |
| 38 | - SHOULD reduce font weights (currently 5 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 | 70px | 700 | #2A2A2A | 1 | |
| 48 | | `text-23px` | Inter | 23px | semi_bold | #C1C1C1 | 1 | |
| 49 | | `text-22px` | Inter | 22px | semi_bold | #494949 | 1 | |
| 50 | | `text-21px` | Inter | 21px | 500 | #676767 | 1 | |
| 51 | | `text-21px` | Inter | 21px | semi_bold | #383838 | 1 | |
| 52 | | `text-19px` | Inter | 19px | 500 | #2C2C2C | 1 | |
| 53 | | `text-19px` | Inter | 19px | 500 | #3C3C3C | 1 | |
| 54 | | `text-19px` | Inter | 19px | 500 | #D4D4D4 | 1 | |
| 55 | | `text-18px` | Inter | 18px | 500 | #404040 | 1 | |
| 56 | | `body` | Inter | 16px | 400 | #A4A4A4 | 1 | |
| 57 | |
| 58 | ### Typography Reference |
| 59 | |
| 60 | **Font Families:** |
| 61 | - `Inter` (used 65x) |
| 62 | |
| 63 | **Font Sizes:** 8px, 9px, 10px, 11px, 12px, 13px, 14px, 15px, 16px, 18px, 19px, 21px, 22px, 23px, 70px |
| 64 | |
| 65 | ## Spacing |
| 66 | |
| 67 | - MUST use 4px grid for spacing |
| 68 | - SHOULD use spacing from scale: 1px, 2px, 3px, 4px, 5px, 6px, 7px, 9px |
| 69 | - SHOULD use 5px 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: 1px, 2px, 3px, 4px, 6px, 7px, 8px, 9px, 10px, 11px |
| 76 | - SHOULD limit border widths to: 1px, 3px |
| 77 | - SHOULD use 3px as default border-radius |
| 78 | - NEVER use arbitrary border-radius values (use design scale) |
| 79 | - SHOULD use subtle borders (1px) for element separation |
| 80 | |
| 81 | ### Border Radius Reference |
| 82 | |
| 83 | **Scale:** 1px, 2px, 3px, 4px, 6px, 7px, 8px, 9px, 10px, 11px |
| 84 | |
| 85 | ## Layout |
| 86 | |
| 87 | - MUST design for 1920px base viewport width |
| 88 | - SHOULD use consistent element widths: 16px, 8px, 11px, 10px, 52px |
| 89 | - SHOULD maintain text-heavy layout with clear hierarchy |
| 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 | - **Main Content**: width: 1565px, height: 814px |
| 97 | - **Main Content**: width: 1920px, height: 1080px |
| 98 | - **Main Content**: width: 1180px, height: 717px |
| 99 | - **Main Content**: width: 1178px, height: 701px |
| 100 | |
| 101 | ## Components |
| 102 | |
| 103 | ### Buttons |
| 104 | |
| 105 | | Variant | Background | Text | Border | Height | Radius | |
| 106 | |---------|------------|------|--------|--------|--------| |
| 107 | | Ghost | transparent | #6B6B6B | none | - | - | |
| 108 | |
| 109 | ## Interactive States |
| 110 | |
| 111 | ### Focus |
| 112 | |
| 113 | - MUST use `2px` outline with accent color (`#5E6AD2`) |
| 114 | - MUST use `2px` outline-offset |
| 115 | - NEVER remove focus indicators |
| 116 | |
| 117 | ### Hover |
| 118 | |
| 119 | - Buttons (primary): lighten background by 10% |
| 120 | - Buttons (secondary): use `#EDEDED` background |
| 121 | - List items: use `#EDEDED` background |
| 122 | |
| 123 | ### Disabled |
| 124 | |
| 125 | - MUST use `opacity: 0.5` |
| 126 | - MUST use `cursor: not-allowed` |
| 127 | |
| 128 | ## Interaction |
| 129 | |
| 130 | - MUST use an `AlertDialog` for destructive or irreversible actions |
| 131 | - SHOULD use structural skeletons for loading states |
| 132 | - MUST show errors next to where the action happens |
| 133 | - NEVER block paste in `input` or `textarea` elements |
| 134 | - MUST add an `aria-label` to icon-only buttons |
| 135 | |
| 136 | ## Animation |
| 137 | |
| 138 | - NEVER add animation unless it is explicitly requested |
| 139 | - MUST animate only compositor props (`transform`, `opacity`) |
| 140 | - NEVER animate layout properties (`width`, `height`, `top`, `left`, `m |