Spaces:
Sleeping

File size: 2,394 Bytes
0767a54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* NeuroByte Flux — Red & Black design system + light/dark themes */

html[data-theme="light"],
html[data-theme="dark"] {
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light: soft gray canvas, black text, crimson accent */
html[data-theme="light"] {
  --bg: #f4f4f5;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --accent: #b91c1c;
  --accent-light: #ef4444;
  --accent-dark: #7f1d1d;
  --accent-muted: rgba(185, 28, 28, 0.1);
  --accent-muted-2: rgba(185, 28, 28, 0.18);
  --text: #0a0a0a;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --border: #e5e5e5;
  --border-light: #f4f4f5;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-accent: 0 4px 28px rgba(185, 28, 28, 0.28);
  --navbar-bg: rgba(244, 244, 245, 0.88);
  --hero-grid: rgba(185, 28, 28, 0.06);
}

/* Dark: true black canvas, off-white text, red accent */
html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --accent: #ef4444;
  --accent-light: #f87171;
  --accent-dark: #dc2626;
  --accent-muted: rgba(239, 68, 68, 0.12);
  --accent-muted-2: rgba(239, 68, 68, 0.22);
  --text: #fafafa;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --border: #262626;
  --border-light: #1f1f1f;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 4px 32px rgba(239, 68, 68, 0.35);
  --navbar-bg: rgba(10, 10, 10, 0.86);
  --hero-grid: rgba(239, 68, 68, 0.08);
}

/* Toggle control */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), box-shadow var(--transition),
    transform 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:active {
  transform: scale(0.96);
}
.theme-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}
html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}
html[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}