Skip to content

Commit ad5618a

Browse files
paoloroncoclaude
andcommitted
design(theme): replace purple/black with dark slate + electric blue
Old scheme felt dated (pink/violet/navy) with poor contrast. New default: GitHub-inspired dark neutral (#0d1117 background) with electric blue accent (#2f81f7 / #58a6ff), off-white text (#e6edf3), and clean slate borders (#21262d). Applies to: defaultTheme, applyAdminTheme, index.css CSS vars. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3cf26fc commit ad5618a

2 files changed

Lines changed: 57 additions & 57 deletions

File tree

LYNX/src/index.css

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,52 +6,52 @@
66

77
@layer base {
88
:root {
9-
/* Modern gradient backgrounds */
10-
--background: 240 15% 6%;
11-
--foreground: 240 15% 98%;
9+
/* Dark slate + electric blue */
10+
--background: 215 28% 7%;
11+
--foreground: 213 27% 91%;
1212

13-
/* Glass morphism cards */
14-
--card: 240 15% 12%;
15-
--card-foreground: 240 15% 95%;
13+
/* Cards */
14+
--card: 213 23% 17%;
15+
--card-foreground: 213 27% 91%;
1616

17-
--popover: 240 15% 12%;
18-
--popover-foreground: 240 15% 95%;
17+
--popover: 213 23% 17%;
18+
--popover-foreground: 213 27% 91%;
1919

20-
/* Purple-blue theme */
21-
--primary: 260 75% 65%;
22-
--primary-foreground: 240 15% 98%;
23-
--primary-glow: 270 100% 80%;
20+
/* Electric blue accent */
21+
--primary: 212 93% 57%;
22+
--primary-foreground: 213 27% 95%;
23+
--primary-glow: 212 100% 67%;
2424

25-
--secondary: 240 20% 20%;
26-
--secondary-foreground: 240 15% 90%;
25+
--secondary: 215 19% 14%;
26+
--secondary-foreground: 213 20% 82%;
2727

28-
--muted: 240 15% 15%;
29-
--muted-foreground: 240 10% 60%;
28+
--muted: 215 19% 14%;
29+
--muted-foreground: 213 9% 60%;
3030

31-
--accent: 280 60% 55%;
32-
--accent-foreground: 240 15% 98%;
31+
--accent: 214 86% 52%;
32+
--accent-foreground: 213 27% 95%;
3333

3434
--destructive: 0 75% 60%;
35-
--destructive-foreground: 240 15% 98%;
35+
--destructive-foreground: 213 27% 95%;
3636

37-
--border: 240 15% 20%;
38-
--input: 240 15% 18%;
39-
--ring: 260 75% 65%;
37+
--border: 215 14% 16%;
38+
--input: 215 19% 14%;
39+
--ring: 212 93% 57%;
4040

4141
--radius: 0.75rem;
4242

43-
/* Custom gradients and effects */
43+
/* Gradients */
4444
--gradient-primary: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-glow)));
45-
--gradient-background: linear-gradient(135deg, hsl(240 15% 6%), hsl(260 20% 10%));
46-
--gradient-card: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(240 15% 15%) 100%);
47-
45+
--gradient-background: linear-gradient(135deg, hsl(215 28% 7%), hsl(220 24% 10%));
46+
--gradient-card: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(213 20% 20%) 100%);
47+
4848
/* Glass morphism */
49-
--glass-border: 1px solid hsl(240 15% 25% / 0.5);
50-
--glass-bg: hsl(240 15% 12% / 0.8);
51-
49+
--glass-border: 1px solid hsl(215 14% 22% / 0.6);
50+
--glass-bg: hsl(213 23% 17% / 0.82);
51+
5252
/* Shadows and glows */
53-
--shadow-glow: 0 8px 32px hsl(var(--primary) / 0.3);
54-
--shadow-card: 0 8px 32px hsl(240 15% 0% / 0.4);
53+
--shadow-glow: 0 8px 32px hsl(var(--primary) / 0.25);
54+
--shadow-card: 0 8px 32px hsl(215 28% 3% / 0.5);
5555

5656
/* Transitions */
5757
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

LYNX/src/lib/theme.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,24 @@ export interface ThemeConfig {
4545
}
4646

4747
export const defaultTheme: ThemeConfig = {
48-
primary: '#8b5cf6',
49-
primaryGlow: '#a78bfa',
50-
background: '#0f0f23',
51-
backgroundSecondary: '#1a1a2e',
52-
card: '#16213e',
53-
foreground: '#f8fafc',
54-
muted: '#64748b',
55-
accent: '#7c3aed',
56-
border: '#334155',
57-
48+
primary: '#2f81f7',
49+
primaryGlow: '#58a6ff',
50+
background: '#0d1117',
51+
backgroundSecondary: '#161b22',
52+
card: '#1c2433',
53+
foreground: '#e6edf3',
54+
muted: '#8b949e',
55+
accent: '#1f6feb',
56+
border: '#21262d',
57+
5858
backgroundGradient: {
59-
from: '#0f0f23',
60-
to: '#1a1a2e',
59+
from: '#0d1117',
60+
to: '#111827',
6161
direction: '135deg'
6262
},
6363
cardGradient: {
64-
from: '#16213e',
65-
to: '#1e293b',
64+
from: '#1c2433',
65+
to: '#21303f',
6666
direction: '135deg'
6767
},
6868

@@ -180,20 +180,20 @@ export const applyTheme = (theme: ThemeConfig) => {
180180
export const applyAdminTheme = () => {
181181
const root = document.documentElement;
182182

183-
// Use a consistent admin theme that doesn't change
183+
// Consistent admin theme — dark slate + electric blue
184184
const adminTheme = {
185-
primary: '#8b5cf6',
186-
primaryGlow: '#a78bfa',
187-
background: '#0f0f23',
188-
backgroundSecondary: '#1a1a2e',
189-
card: '#16213e',
190-
foreground: '#f8fafc',
191-
muted: '#64748b',
192-
accent: '#7c3aed',
193-
border: '#334155',
185+
primary: '#2f81f7',
186+
primaryGlow: '#58a6ff',
187+
background: '#0d1117',
188+
backgroundSecondary: '#161b22',
189+
card: '#1c2433',
190+
foreground: '#e6edf3',
191+
muted: '#8b949e',
192+
accent: '#1f6feb',
193+
border: '#21262d',
194194
backgroundGradient: {
195-
from: '#0f0f23',
196-
to: '#1a1a2e',
195+
from: '#0d1117',
196+
to: '#111827',
197197
direction: '135deg'
198198
}
199199
};

0 commit comments

Comments
 (0)