From fe301756d7eed55f73a20f1a2ef91d3652f02458 Mon Sep 17 00:00:00 2001 From: Oleg Proskurin Date: Sun, 30 Nov 2025 22:53:52 +0700 Subject: [PATCH] feat: setup colors --- apps/landing/src/app/(lab)/CLAUDE.md | 156 +++++++----------- .../landing/src/app/(lab)/lab/images/page.tsx | 12 +- apps/landing/src/app/(lab)/lab/live/page.tsx | 12 +- .../landing/src/app/(lab)/lab/upload/page.tsx | 12 +- .../src/components/lab/FilterPlaceholder.tsx | 12 +- .../lab/GenerateFormPlaceholder.tsx | 48 +++--- .../src/components/layout/lab/LabFooter.tsx | 10 +- .../src/components/layout/lab/LabLayout.tsx | 4 +- .../src/components/layout/lab/LabSidebar.tsx | 18 +- 9 files changed, 126 insertions(+), 158 deletions(-) diff --git a/apps/landing/src/app/(lab)/CLAUDE.md b/apps/landing/src/app/(lab)/CLAUDE.md index 5751e82..792f12f 100644 --- a/apps/landing/src/app/(lab)/CLAUDE.md +++ b/apps/landing/src/app/(lab)/CLAUDE.md @@ -34,41 +34,36 @@ apps/landing/src/ 1. **Work-focused, not marketing** - Small typography, efficient spacing 2. **Clean and functional** - Like Google AI Studio -3. **Neutral colors** - Zinc palette (true gray, no blue tint) +3. **Dual color system** - Zinc for layout, Slate for forms 4. **Consistent icons** - Lucide React only, no emojis 5. **Responsive** - Works on 768px to 1920px+ screens --- -## Color System (Zinc Palette) +## Color System -### Backgrounds +### Layout/Chrome → Zinc (Neutral Gray) +Used for sidebar, footer, and layout borders: ```css -bg-zinc-950 /* Main app background */ -bg-zinc-900 /* Card backgrounds, elevated surfaces */ -bg-zinc-900/80 /* Card with transparency + backdrop-blur-sm */ -bg-zinc-800 /* Input backgrounds, secondary surfaces */ -bg-zinc-800/50 /* Hover states, subtle overlays */ +bg-zinc-950 /* Sidebar background */ +bg-zinc-950/50 /* Footer background, layout wrappers */ +border-zinc-800 /* Layout borders, dividers */ +text-zinc-400 /* Sidebar text */ +text-zinc-500 /* Footer text, muted */ ``` -### Borders +### Forms/Cards → Slate (Original Style) +Used for cards, inputs, and interactive UI elements: ```css -border-zinc-800 /* Standard borders */ -border-zinc-700 /* Lighter borders, dividers */ -border-white/10 /* Subtle borders (avoid in Lab) */ +bg-slate-900/80 /* Card backgrounds */ +bg-slate-900/50 /* Empty states, lighter cards */ +bg-slate-800 /* Input backgrounds, secondary surfaces */ +border-slate-700 /* Card borders, input borders */ +text-gray-400 /* Labels, secondary text */ +text-gray-500 /* Placeholders, hints */ ``` -### Text -```css -text-white /* Primary headings */ -text-zinc-100 /* Body text, primary content */ -text-zinc-300 /* Secondary text, descriptions */ -text-zinc-400 /* Muted text, placeholders */ -text-zinc-500 /* Disabled states */ -text-zinc-600 /* Count badges, metadata */ -``` - -### Accent Colors (Keep Purple/Cyan) +### Accent Colors (Purple/Cyan) ```css /* Primary gradient */ bg-gradient-to-r from-purple-600 to-cyan-600 @@ -78,8 +73,9 @@ focus:ring-2 focus:ring-purple-500 /* Single-color accents */ text-purple-400 /* Links, interactive text */ -bg-purple-500/10 /* Info banners */ -border-purple-500/20 /* Accent borders */ + +/* Info banners */ +bg-purple-900/10 border-purple-700/50 ``` ### Status Colors @@ -87,7 +83,7 @@ border-purple-500/20 /* Accent borders */ /* Success */ bg-emerald-500/10 border-emerald-500/30 text-emerald-400 /* Warning */ bg-amber-500/10 border-amber-500/30 text-amber-400 /* Error */ bg-red-500/10 border-red-500/30 text-red-400 -/* Info */ bg-purple-500/10 border-purple-500/30 text-purple-400 +/* Info */ bg-purple-900/10 border-purple-700/50 text-purple-400 ``` --- @@ -109,16 +105,16 @@ text-sm font-medium text-white ### Body Text ```tsx // Primary body -text-sm text-zinc-300 +text-sm text-gray-300 // Secondary/descriptions -text-sm text-zinc-400 +text-sm text-gray-400 // Small text (hints, metadata) -text-xs text-zinc-500 +text-xs text-gray-500 // Labels (form fields) -text-xs font-medium text-zinc-400 +text-xs font-medium text-gray-400 ``` ### Interactive @@ -130,7 +126,7 @@ text-sm font-semibold text-sm text-purple-400 hover:text-purple-300 // Badge/count -text-xs text-zinc-600 +text-xs text-gray-600 ``` --- @@ -158,10 +154,10 @@ px-3 py-2 ### Section Spacing ```tsx // Page padding -py-6 md:py-8 +p-4 md:p-6 // Between sections -mb-4 md:mb-6 +space-y-4 // Between cards in grid gap-3 md:gap-4 @@ -176,8 +172,7 @@ mb-1.5 ### Border Radius ```tsx rounded-lg /* Standard (inputs, small cards) */ -rounded-xl /* Medium (cards, buttons) */ -rounded-2xl /* Large - AVOID in Lab (too marketing) */ +rounded-xl /* Medium (cards) */ ``` --- @@ -186,105 +181,76 @@ rounded-2xl /* Large - AVOID in Lab (too marketing) */ ### Page Header ```tsx -
-
-
- -
-

Generate

-

Create AI images from text prompts

-
+
+
+ +
+

Generate

+

Create AI images from text prompts

-
``` -### Standard Card +### Form Card (Slate) ```tsx -
+
{/* content */} -
+ ``` -### Compact Card (List Items) -```tsx -
- {/* content */} -
-``` - -### Form Input +### Form Input (Slate) ```tsx
- +
``` -### Textarea +### Textarea (Slate) ```tsx