feat: Add theme switching

This commit is contained in:
gpt-engineer-app[bot]
2025-10-16 19:06:42 +00:00
parent 51f8828f70
commit d930d92e72
4 changed files with 119 additions and 25 deletions
+57 -10
View File
@@ -6,7 +6,60 @@
@layer base {
:root {
/* HGTX Codex - Cyberpunk Dark Theme */
/* HGTX Codex - Light Theme */
--background: 210 40% 98%;
--foreground: 222 47% 11%;
--card: 0 0% 100%;
--card-foreground: 222 47% 11%;
--popover: 0 0% 100%;
--popover-foreground: 222 47% 11%;
--primary: 190 100% 45%;
--primary-foreground: 0 0% 100%;
--secondary: 210 100% 45%;
--secondary-foreground: 0 0% 100%;
--muted: 210 40% 96%;
--muted-foreground: 215 16% 47%;
--accent: 190 100% 50%;
--accent-foreground: 0 0% 100%;
--destructive: 0 84% 60%;
--destructive-foreground: 0 0% 100%;
--border: 214 32% 91%;
--input: 214 32% 91%;
--ring: 190 100% 45%;
--radius: 0.75rem;
/* Sidebar specific - Light */
--sidebar-background: 210 40% 99%;
--sidebar-foreground: 222 47% 11%;
--sidebar-primary: 190 100% 45%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 210 40% 95%;
--sidebar-accent-foreground: 222 47% 11%;
--sidebar-border: 214 32% 88%;
--sidebar-ring: 190 100% 45%;
/* Custom gradients - Light */
--gradient-cyber: linear-gradient(135deg, hsl(190 100% 45%) 0%, hsl(210 100% 45%) 100%);
--gradient-subtle: linear-gradient(180deg, hsl(210 40% 98%) 0%, hsl(210 40% 95%) 100%);
--glow-cyan: 0 0 40px hsl(190 100% 50% / 0.15);
--glow-blue: 0 0 30px hsl(210 100% 50% / 0.12);
/* Animation speeds */
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.dark {
/* HGTX Codex - Dark Theme */
--background: 222 47% 5%;
--foreground: 200 100% 95%;
@@ -35,9 +88,7 @@
--input: 222 30% 18%;
--ring: 190 100% 50%;
--radius: 0.75rem;
/* Sidebar specific */
/* Sidebar specific - Dark */
--sidebar-background: 222 45% 7%;
--sidebar-foreground: 200 100% 90%;
--sidebar-primary: 190 100% 50%;
@@ -47,21 +98,17 @@
--sidebar-border: 222 30% 15%;
--sidebar-ring: 190 100% 50%;
/* Custom gradients */
/* Custom gradients - Dark */
--gradient-cyber: linear-gradient(135deg, hsl(190 100% 50%) 0%, hsl(210 100% 50%) 100%);
--gradient-subtle: linear-gradient(180deg, hsl(222 45% 8%) 0%, hsl(222 47% 5%) 100%);
--glow-cyan: 0 0 40px hsl(190 100% 50% / 0.3);
--glow-blue: 0 0 30px hsl(210 100% 50% / 0.25);
/* Animation speeds */
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
}
@layer base {
* {
@apply border-border;
@apply border-border transition-colors;
}
body {