@@ -175,15 +175,17 @@ This dashboard follows a **linear design language** with clean lines and subtle
175175
176176Core Design Principles:
177177
178- - ** No rounded corners** : All elements use sharp, clean edges
179- - ** Linear gradient borders** : Use subtle gradient borders for visual separation
178+ - ** Hierarchical rounding** :
179+ - Main page containers: Sharp edges with linear gradient borders
180+ - Interactive elements (inputs, buttons, cards): ` rounded-lg ` for approachable feel
181+ - ** Linear gradient borders** : Use subtle gradient borders for main container separation
180182- ** Minimal backgrounds** : Use solid colors (` bg-background ` , ` bg-background-tertiary ` )
181183- ** Clean typography** : Clear hierarchy with appropriate font sizes
182184- ** Subtle interactions** : Focus rings and hover states with minimal animation
183185
184186Form Elements (Inputs, Textareas, Selects):
185187
186- - ** Shape** : ** NO ** ` rounded-xl ` - use straight edges
188+ - ** Shape** : Use ` rounded-lg ` for subtle rounded corners (NOT sharp edges, NOT heavy rounding like ` rounded-xl ` )
187189- ** Background** : Use ` bg-background ` for standard inputs
188190- ** Border** : Use ` border border-fill-tertiary ` for default state
189191- ** Padding** : Standard padding is ` px-3 py-2 ` for inputs
@@ -215,7 +217,7 @@ Example (text input):
215217 id = " field-id"
216218 type = " text"
217219 className = { cx (
218- ' w-full border border-fill-tertiary bg-background' ,
220+ ' w-full rounded-lg border border-fill-tertiary bg-background' ,
219221 ' px-3 py-2 text-sm text-text placeholder:text-text-tertiary/70' ,
220222 ' focus:outline-none focus:ring-2 focus:ring-accent/40' ,
221223 ' transition-all duration-200' ,
@@ -232,7 +234,7 @@ Example (textarea):
232234``` tsx
233235<textarea
234236 className = { cx (
235- ' w-full border border-fill-tertiary bg-background' ,
237+ ' w-full rounded-lg border border-fill-tertiary bg-background' ,
236238 ' px-3 py-2 text-sm text-text placeholder:text-text-tertiary/70' ,
237239 ' focus:outline-none focus:ring-2 focus:ring-accent/40' ,
238240 ' transition-all duration-200' ,
@@ -244,7 +246,7 @@ Example (textarea):
244246
245247Buttons:
246248
247- - ** Shape** : ** NO ** ` rounded-xl ` - use straight edges
249+ - ** Shape** : Use ` rounded-lg ` for subtle rounded corners (consistent with form elements)
248250- ** Padding** : Standard is ` px-6 py-2.5 ` for medium buttons
249251- ** Text Size** : Use ` text-sm ` with ` font-medium `
250252- ** Primary Button** :
@@ -266,7 +268,7 @@ Example (primary button):
266268<button
267269 type = " submit"
268270 className = { cx (
269- ' px-6 py-2.5' ,
271+ ' rounded-lg px-6 py-2.5' ,
270272 ' bg-accent text-white font-medium text-sm' ,
271273 ' transition-all duration-200' ,
272274 ' hover:bg-accent/90' ,
@@ -284,7 +286,7 @@ Example (ghost button):
284286<button
285287 type = " button"
286288 className = { cx (
287- ' px-6 py-2.5' ,
289+ ' rounded-lg px-6 py-2.5' ,
288290 ' text-sm font-medium text-text-secondary' ,
289291 ' hover:text-text hover:bg-fill/50' ,
290292 ' transition-all duration-200' ,
@@ -296,8 +298,12 @@ Example (ghost button):
296298
297299Cards and Containers:
298300
299- - ** Shape** : ** NO rounded corners** - use sharp edges
300- - ** Borders** : Use linear gradient borders for main containers
301+ - ** Shape** :
302+ - ** Main page containers** (e.g., OnboardingWizard): ** NO rounded corners** - use sharp edges with linear gradient borders
303+ - ** Inner content cards** (e.g., form sections, review cards): Use ` rounded-lg ` for visual hierarchy
304+ - ** Borders** :
305+ - Main containers: Use linear gradient borders
306+ - Inner cards: Use ` border border-fill-tertiary `
301307- ** Dividers** : Use horizontal gradient dividers for section separation
302308 - Example: ` <div className="h-[0.5px] bg-linear-to-r from-transparent via-text/20 to-transparent" /> `
303309- ** Backgrounds** : Use solid colors (` bg-background ` , ` bg-background-tertiary ` )
@@ -346,7 +352,9 @@ Typography:
346352
347353Do NOT:
348354
349- - ❌ Use rounded corners (` rounded-xl ` , ` rounded-2xl ` , ` rounded-full ` , etc.) - this design language uses ** sharp edges**
355+ - ❌ Use heavy rounding (` rounded-xl ` , ` rounded-2xl ` , ` rounded-full ` ) - use ` rounded-lg ` for form elements and cards
356+ - ❌ Use sharp edges (no rounding) on form elements - always use ` rounded-lg ` for inputs, buttons, and cards
357+ - ❌ Mix rounding styles - main page containers are sharp, all interactive elements use ` rounded-lg `
350358- ❌ Use heavy borders or box shadows - use subtle linear gradients instead
351359- ❌ Use animated bottom borders or underlines on inputs (outdated pattern)
352360- ❌ Use large padding (` py-3 ` , ` py-4 ` ) on standard inputs - stick to ` py-2 ` or ` py-2.5 `
@@ -452,9 +460,9 @@ Change checklist (agents):
452460- Pastel color tokens used
453461- Atoms created via createAtomHooks; selectors stable
454462- No edits to auto-generated files
455- - ** UI Design** : Form inputs use ** NO rounded corners** , ` bg-background ` , ` border-fill-tertiary ` , and ` focus:ring-2 focus:ring-accent/40 `
456- - ** UI Design** : Buttons use ** NO rounded corners** , ` px-6 py-2.5 ` , ` text-sm font-medium `
457- - ** UI Design** : Main containers use linear gradient borders (see login.tsx example)
463+ - ** UI Design** : Form inputs use ` rounded-lg ` , ` bg-background ` , ` border-fill-tertiary ` , and ` focus:ring-2 focus:ring-accent/40 `
464+ - ** UI Design** : Buttons use ` rounded-lg ` , ` px-6 py-2.5 ` , ` text-sm font-medium `
465+ - ** UI Design** : Inner content cards use ` rounded-lg ` for visual hierarchy
466+ - ** UI Design** : Main page containers use linear gradient borders with sharp edges
458467- ** UI Design** : All interactive elements have proper focus states and transitions
459- - ** UI Design** : NO ` rounded-xl ` , ` rounded-2xl ` , or any border-radius classes
460468- Code passes pnpm lint, pnpm format, and pnpm build
0 commit comments