-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobals.css
More file actions
256 lines (226 loc) · 8.17 KB
/
Copy pathglobals.css
File metadata and controls
256 lines (226 loc) · 8.17 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
@import "tailwindcss";
@import "leaflet/dist/leaflet.css";
/* Class-based dark mode — preserves all existing dark: utilities. */
@custom-variant dark (&:where(.dark, .dark *));
/* ──────────────────────────────────────────────────────────────
Design tokens (Tailwind v4 @theme → utilities)
Surfaces / text / brand / semantic — exposed as both the new
design names (bg, fg, accent…) and the shadcn semantic names
(background, foreground, card…) so every existing component
resolves automatically.
────────────────────────────────────────────────────────────── */
@theme {
/* shadcn-compatible names */
--color-background: var(--bg);
--color-foreground: var(--fg);
--color-card: var(--card);
--color-card-foreground: var(--fg);
--color-popover: var(--card);
--color-popover-foreground: var(--fg);
--color-primary: var(--accent);
--color-primary-foreground: #051018;
--color-secondary: var(--bg-2);
--color-secondary-foreground: var(--fg);
--color-muted: var(--bg-2);
--color-muted-foreground: var(--fg-2);
--color-accent: var(--accent);
--color-accent-foreground: #051018;
--color-destructive: var(--bad);
--color-destructive-foreground: #051018;
--color-border: var(--line);
--color-input: var(--line-hi);
--color-ring: var(--accent);
/* Design surface ladder */
--color-bg: var(--bg);
--color-bg-1: var(--bg-1);
--color-bg-2: var(--bg-2);
--color-bg-3: var(--bg-3);
--color-card-hi: var(--card-hi);
--color-line: var(--line);
--color-line-hi: var(--line-hi);
/* Text ladder */
--color-fg: var(--fg);
--color-fg-1: var(--fg-1);
--color-fg-2: var(--fg-2);
--color-fg-3: var(--fg-3);
/* Brand */
--color-accent-hi: var(--accent-hi);
--color-accent-soft: var(--accent-soft);
--color-accent-glow: var(--accent-glow);
/* Semantic */
--color-ok: var(--ok);
--color-warn: var(--warn);
--color-bad: var(--bad);
--color-info: var(--info);
/* Recharts palette via shadcn chart-N tokens */
--color-chart-1: var(--accent);
--color-chart-2: var(--info);
--color-chart-3: var(--ok);
--color-chart-4: var(--warn);
--color-chart-5: var(--bad);
/* Radii */
--radius-sm: 8px;
--radius: 10px;
--radius-md: 12px;
--radius-lg: 18px;
--radius-xl: 24px;
--radius-2xl: 28px;
/* Shadows */
--shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 30px -12px rgba(0, 0, 0, 0.5);
--shadow-glow: 0 0 0 1px var(--accent-glow), 0 12px 40px -10px var(--accent-glow);
--shadow-primary: 0 6px 24px -6px var(--accent-glow);
/* Fonts (variable names come from next/font in layout.tsx) */
--font-sans: var(--font-space-grotesk), system-ui, -apple-system, sans-serif;
--font-mono: var(--font-jetbrains-mono), ui-monospace, "JetBrains Mono", monospace;
/* Accordion (Radix) */
--animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;
}
@keyframes accordion-down {
from { height: 0; }
to { height: var(--radix-accordion-content-height); }
}
@keyframes accordion-up {
from { height: var(--radix-accordion-content-height); }
to { height: 0; }
}
@keyframes pulse-dot {
0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5); }
70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
/* ──────────────────────────────────────────────────────────────
Theme variables — :root is light, .dark overrides for dark.
App defaults to .dark via the inline script in layout.tsx.
────────────────────────────────────────────────────────────── */
:root {
/* Light variant (derived from the dark palette) */
--bg: #fafbfc;
--bg-1: #ffffff;
--bg-2: #f3f5f8;
--bg-3: #e7eaf0;
--card: #ffffff;
--card-hi: #f8fafb;
--line: rgba(15, 23, 42, 0.08);
--line-hi: rgba(15, 23, 42, 0.14);
--fg: #0a0d12;
--fg-1: #2a3340;
--fg-2: #525c6e;
--fg-3: #7c8597;
--accent: #0bb1eb;
--accent-hi: #0891c4;
--accent-glow: rgba(11, 177, 235, 0.18);
--accent-soft: rgba(11, 177, 235, 0.08);
--ok: #0d9488;
--warn: #d97706;
--bad: #e11d48;
--info: #7c3aed;
}
.dark {
/* Canonical dark palette from new-design/styles.css */
--bg: #0a0d12;
--bg-1: #0e131b;
--bg-2: #141a24;
--bg-3: #1b222e;
--card: #11161f;
--card-hi: #161d28;
--line: rgba(255, 255, 255, 0.07);
--line-hi: rgba(255, 255, 255, 0.14);
--fg: #e8edf5;
--fg-1: #b8c2d1;
--fg-2: #7c8597;
--fg-3: #525c6e;
--accent: #4dd0ff;
--accent-hi: #7fdfff;
--accent-glow: rgba(77, 208, 255, 0.18);
--accent-soft: rgba(77, 208, 255, 0.08);
--ok: #5eead4;
--warn: #fbbf24;
--bad: #fb7185;
--info: #a78bfa;
}
/* ──────────────────────────────────────────────────────────────
Base styles
────────────────────────────────────────────────────────────── */
@layer base {
* {
border-color: var(--line);
box-sizing: border-box;
}
html {
color-scheme: light;
}
html.dark {
color-scheme: dark;
}
body {
background-color: var(--bg);
color: var(--fg);
font-family: var(--font-sans);
font-size: 16px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
min-height: 100vh;
transition: background-color 0.2s ease, color 0.2s ease;
}
html.dark body {
background:
radial-gradient(1200px 600px at 80% -10%, rgba(77, 208, 255, 0.07), transparent 60%),
radial-gradient(900px 500px at -10% 110%, rgba(167, 139, 250, 0.05), transparent 60%),
var(--bg);
}
html:not(.dark) body {
background:
radial-gradient(1200px 600px at 80% -10%, rgba(11, 177, 235, 0.04), transparent 60%),
var(--bg);
}
a {
color: inherit;
text-decoration: none;
}
button {
font-family: inherit;
}
}
/* ──────────────────────────────────────────────────────────────
Utilities
────────────────────────────────────────────────────────────── */
.font-mono,
.mono {
font-family: var(--font-mono);
font-feature-settings: "ss01", "cv11";
letter-spacing: -0.01em;
}
/* Scrollbar */
::-webkit-scrollbar {
width: 10px;
height: 10px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--line-hi);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--line-hi);
filter: brightness(1.4);
}
/* ──────────────────────────────────────────────────────────────
Suppress password-manager autofill icon overlays
──────────────────────────────────────────────────────────────
LastPass injects <svg data-lastpass-icon="true"> overlays
positioned absolutely over inputs it thinks are credentials,
regardless of data-lpignore. Since this app is ham-radio data
(callsign, RST, datetime, city, etc.) and not credentials, we
hide the in-field icon globally. LP/1P autofill still works on
the auth forms via the extension's keyboard shortcut and
dropdown — only the in-field icon overlay is hidden. */
svg[data-lastpass-icon="true"],
com-1password-button,
[data-dashlane-rid],
[data-bitwarden-watching] {
display: none !important;
}