$npx -y skills add ihlamury/design-skills --skill frontFront's UI design system. Use when building interfaces inspired by Front's aesthetic - light mode, Inter font, 4px grid.
| 1 | # Front UI Skills |
| 2 | |
| 3 | Opinionated constraints for building Front-style interfaces with AI agents. |
| 4 | |
| 5 | ## When to Apply |
| 6 | |
| 7 | Reference these guidelines when: |
| 8 | - Building light-mode interfaces |
| 9 | - Creating Front-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 `#C8CC51` for primary actions and focus states (`accent`) |
| 17 | - SHOULD reduce color palette (currently 30 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` | #FFFFFF | rgb(255,255,255) | Page background | |
| 25 | | `surface-raised` | #240733 | rgb(36,7,51) | Cards, modals, raised surfaces | |
| 26 | | `surface-overlay` | #503AF3 | rgb(80,58,243) | Overlays, tooltips, dropdowns | |
| 27 | | `text-primary` | #978BF0 | rgb(151,139,240) | Headings, body text | |
| 28 | | `text-secondary` | #D1D1D1 | rgb(209,209,209) | Secondary, muted text | |
| 29 | | `text-tertiary` | #8F8F8F | rgb(143,143,143) | Additional text | |
| 30 | | `border-default` | #DDD4F5 | rgb(221,212,245) | Subtle borders, dividers | |
| 31 | | `accent` | #C8CC51 | rgb(200,204,81) | Primary actions, links, focus | |
| 32 | | `warning` | #B49F65 | rgb(180,159,101) | Warning states, cautions | |
| 33 | |
| 34 | ## Typography |
| 35 | |
| 36 | - MUST use `Inter` as primary font family |
| 37 | - SHOULD use single font family for consistency |
| 38 | - MUST use `58px` / `700` for primary headings |
| 39 | - MUST use `26px` / `700` for body text |
| 40 | - SHOULD reduce font weights (currently 4 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 | 58px | 700 | #E7E1E8 | 1 | |
| 50 | | `body` | Inter | 26px | 700 | #EBE5EC | 1 | |
| 51 | | `text-17px` | Inter | 17px | 400 | #AC99B3 | 1 | |
| 52 | | `text-16px` | Inter | 16px | 400 | #46541B | 1 | |
| 53 | | `text-15px` | Inter | 15px | 400 | #977FAF | 1 | |
| 54 | | `text-15px` | Inter | 15px | 400 | #594B5F | 1 | |
| 55 | | `text-15px` | Inter | 15px | 400 | #BCABC2 | 1 | |
| 56 | | `text-15px` | Inter | 15px | 400 | #C8B8CD | 1 | |
| 57 | | `text-14px` | Inter | 14px | 400 | #977FB0 | 1 | |
| 58 | | `text-14px` | Inter | 14px | 400 | #9880B0 | 1 | |
| 59 | |
| 60 | ### Typography Reference |
| 61 | |
| 62 | **Font Families:** |
| 63 | - `Inter` (used 79x) |
| 64 | |
| 65 | **Font Sizes:** 5px, 6px, 7px, 8px, 9px, 10px, 11px, 12px, 13px, 14px, 15px, 16px, 17px, 26px, 58px |
| 66 | |
| 67 | ## Spacing |
| 68 | |
| 69 | - MUST use 4px grid for spacing |
| 70 | - SHOULD use spacing from scale: 1px, 2px, 3px, 4px, 5px, 6px, 8px, 14px |
| 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: 1px, 2px, 3px, 5px, 6px, 18px, 20px |
| 78 | - SHOULD use 20px+ radius for pill-shaped elements |
| 79 | - SHOULD limit border widths to: 1px, 2px, 5px |
| 80 | - SHOULD use 3px 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:** 1px, 2px, 3px, 5px, 6px, 18px, 20px |
| 87 | |
| 88 | ## Layout |
| 89 | |
| 90 | - MUST design for 1920px base viewport width |
| 91 | - SHOULD use consistent element widths: 10px, 11px, 6px, 8px, 20px |
| 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: 1920px, height: 639px |
| 100 | - **Main Content**: width: 1267px, height: 569px |
| 101 | - **Main Content**: width: 1255px, height: 569px |
| 102 | - **Header**: height: 75px |
| 103 | |
| 104 | ## Components |
| 105 | |
| 106 | ### Buttons |
| 107 | |
| 108 | | Variant | Background | Text | Border | Height | Radius | |
| 109 | |---------|------------|------|--------|--------|--------| |
| 110 | | Ghost | transparent | #978BF0 | none | - | - | |
| 111 | |
| 112 | ## Interactive States |
| 113 | |
| 114 | ### Focus |
| 115 | |
| 116 | - MUST use `2px` outline with accent color (`#C8CC51`) |
| 117 | - MUST use `2px` outline-offset |
| 118 | - NEVER remove focus indicators |
| 119 | |
| 120 | ### Hover |
| 121 | |
| 122 | - Buttons (primary): lighten background by 10% |
| 123 | - Buttons (secondary): use `#240733` background |
| 124 | - List items: use `#240733` background |
| 125 | |
| 126 | ### Disabled |
| 127 | |
| 128 | - MUST use `opacity: 0.5` |
| 129 | - MUST use `cursor: not-allowed` |
| 130 | |
| 131 | ## Interaction |
| 132 | |
| 133 | - MUST use an `AlertDialog` for destructive or irreversible actions |
| 134 | - SHOULD use structural skeletons for loading states |
| 135 | - MUST show errors next to where the action happens |
| 136 | - NEVER block paste in `input` or `textarea` elements |
| 137 | - MUST add an `aria-label` to icon-only buttons |
| 138 | |
| 139 | ## Animation |
| 140 | |
| 141 | - NEVER add animation unless it is explicitly requested |
| 142 | - M |