|
| 1 | +# Design System (Minimalist Black & White) |
| 2 | + |
| 3 | +## 1. Visual Theme & Atmosphere |
| 4 | + |
| 5 | +This design system is built on confident minimalism — a black-and-white interface where every element has a clear purpose and nothing exists purely for decoration. |
| 6 | + |
| 7 | +The entire experience is based on a strict duality: |
| 8 | +- deep black (`#121212`) |
| 9 | +- pure white (`#ffffff`) |
| 10 | + |
| 11 | +There are no unnecessary mid-tones or visual noise. |
| 12 | + |
| 13 | +Typography relies on geometric sans-serif fonts with a clean and engineered feel: |
| 14 | +- headings are bold and authoritative |
| 15 | +- body text is highly readable and functional |
| 16 | + |
| 17 | +The interface makes heavy use of: |
| 18 | +- **pill-shaped elements (999px border-radius)** |
| 19 | +- **card-based layouts** |
| 20 | +- **subtle shadows** |
| 21 | +- **compact, information-dense spacing** |
| 22 | + |
| 23 | +--- |
| 24 | + |
| 25 | +## 2. Color Palette & Roles |
| 26 | + |
| 27 | +See `apps\web\assets\css\main.css` for color palette of the project. Use this for building interfaces, don't make up the new colors |
| 28 | +without any need. |
| 29 | + |
| 30 | +### Principle |
| 31 | +- No gradients |
| 32 | +- Only solid colors |
| 33 | + |
| 34 | +--- |
| 35 | + |
| 36 | +## 3. Typography Rules |
| 37 | + |
| 38 | +### Font Family |
| 39 | +- Primary: `system-ui`, `Inter`, `DM Sans` |
| 40 | + |
| 41 | +### Hierarchy |
| 42 | + |
| 43 | +| Role | Size | Weight | Line Height | |
| 44 | +|------|------|--------|------------| |
| 45 | +| Hero | 52px | 700 | 1.23 | |
| 46 | +| Section Heading | 36px | 700 | 1.22 | |
| 47 | +| Card Title | 32px | 700 | 1.25 | |
| 48 | +| Subheading | 24px | 700 | 1.33 | |
| 49 | +| Small Heading | 20px | 700 | 1.40 | |
| 50 | +| UI Text | 18px | 500 | 1.33 | |
| 51 | +| Body | 16px | 400-500 | 1.25-1.50 | |
| 52 | +| Caption | 14px | 400 | 1.4 | |
| 53 | +| Micro | 12px | 400 | 1.6 | |
| 54 | + |
| 55 | +### Principles |
| 56 | +- Headings are always bold |
| 57 | +- Body text is medium or regular weight |
| 58 | +- No decorative typography |
| 59 | + |
| 60 | +--- |
| 61 | + |
| 62 | +## 4. Component Stylings |
| 63 | + |
| 64 | +### Buttons |
| 65 | + |
| 66 | +**Primary** |
| 67 | +- Background: Black |
| 68 | +- Text: White |
| 69 | +- Padding: 10px 12px |
| 70 | +- Radius: 999px |
| 71 | + |
| 72 | +**Secondary** |
| 73 | +- Background: White |
| 74 | +- Text: Black |
| 75 | +- Hover: `#e2e2e2` |
| 76 | +- Radius: 999px |
| 77 | + |
| 78 | +**Chip** |
| 79 | +- Background: `#efefef` |
| 80 | +- Radius: 999px |
| 81 | + |
| 82 | +**Floating Action** |
| 83 | +- Background: White |
| 84 | +- Shadow: `rgba(0,0,0,0.16)` |
| 85 | +- Radius: 999px |
| 86 | + |
| 87 | +--- |
| 88 | + |
| 89 | +### Cards |
| 90 | +- Radius: 8px (standard), 12px (featured) |
| 91 | +- Shadow: `rgba(0,0,0,0.12)` |
| 92 | +- No borders |
| 93 | + |
| 94 | +--- |
| 95 | + |
| 96 | +### Inputs |
| 97 | +- Border: 1px solid black |
| 98 | +- Radius: 8px |
| 99 | +- Background: white |
| 100 | + |
| 101 | +--- |
| 102 | + |
| 103 | +### Navigation |
| 104 | +- Sticky top bar |
| 105 | +- Minimal design |
| 106 | +- Pill-style navigation elements |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | +## 5. Layout Principles |
| 111 | + |
| 112 | +### Spacing |
| 113 | +- Base unit: 8px |
| 114 | +- Scale: 4px → 32px |
| 115 | + |
| 116 | +### Container |
| 117 | +- Max width: ~1136px |
| 118 | + |
| 119 | +### Philosophy |
| 120 | +- Efficiency over airiness |
| 121 | +- High information density |
| 122 | + |
| 123 | +--- |
| 124 | + |
| 125 | +## 6. Depth & Elevation |
| 126 | + |
| 127 | +| Level | Treatment | |
| 128 | +|------|----------| |
| 129 | +| 0 | No shadow | |
| 130 | +| 1 | `rgba(0,0,0,0.12)` | |
| 131 | +| 2 | `rgba(0,0,0,0.16)` | |
| 132 | +| 3 | Floating elements | |
| 133 | +| 4 | Inset (pressed state) | |
| 134 | + |
| 135 | +--- |
| 136 | + |
| 137 | +## 7. Nuxt UI Usage Guidelines |
| 138 | + |
| 139 | +### Core Principle |
| 140 | + |
| 141 | +When building the interface, **prefer using Nuxt UI components whenever possible**. |
| 142 | + |
| 143 | +### Rules |
| 144 | + |
| 145 | +- Do NOT create custom components if: |
| 146 | + - an equivalent exists in Nuxt UI |
| 147 | + - it can be adapted via props, slots, or styling |
| 148 | + |
| 149 | +### When Custom Markup is Allowed |
| 150 | + |
| 151 | +Use plain HTML + CSS (or Tailwind) only if: |
| 152 | +- the required component does not exist in Nuxt UI |
| 153 | +- the behavior is too specific or complex |
| 154 | +- a unique layout cannot be achieved with existing components |
| 155 | + |
| 156 | +### Anti-patterns |
| 157 | + |
| 158 | +- ❌ Rebuilding buttons from scratch |
| 159 | +- ❌ Duplicating Nuxt UI logic |
| 160 | +- ❌ Mixing too many custom and library components inconsistently |
| 161 | + |
| 162 | +### Goal |
| 163 | + |
| 164 | +- UI consistency |
| 165 | +- faster development |
| 166 | +- easier maintenance |
| 167 | + |
| 168 | +--- |
| 169 | + |
| 170 | +## 8. Do's and Don'ts |
| 171 | + |
| 172 | +### Do |
| 173 | +- Use black and white as the primary palette |
| 174 | +- Use pill-shaped buttons and controls |
| 175 | +- Keep layouts compact |
| 176 | +- Use subtle shadows |
| 177 | + |
| 178 | +### Don't |
| 179 | +- Do not use gradients |
| 180 | +- Do not introduce unnecessary colors |
| 181 | +- Do not create overly spacious layouts |
| 182 | +- Do not use heavy shadows |
| 183 | + |
| 184 | +--- |
| 185 | + |
| 186 | +## 9. Responsive Behavior |
| 187 | + |
| 188 | +### Breakpoints |
| 189 | + |
| 190 | +| Name | Width | |
| 191 | +|------|------| |
| 192 | +| Mobile | 320–600px | |
| 193 | +| Tablet | 768–1119px | |
| 194 | +| Desktop | 1120px+ | |
| 195 | + |
| 196 | +### Rules |
| 197 | +- Layouts stack vertically on smaller screens |
| 198 | +- Buttons must be at least 44px height |
| 199 | +- Grids collapse into single column |
| 200 | + |
| 201 | +--- |
| 202 | + |
| 203 | +## 10. Agent Prompt Guide |
| 204 | + |
| 205 | +### Principles |
| 206 | +- Be explicit about colors (`#121212`, `#ffffff`) |
| 207 | +- Always specify border-radius for buttons (999px) |
| 208 | +- Keep layouts compact and structured |
| 209 | +- Prefer consistency over creativity |
0 commit comments