-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
435 lines (382 loc) · 9.17 KB
/
styles.css
File metadata and controls
435 lines (382 loc) · 9.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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
/* Comic UI — default look
*
* This file is intentionally plain CSS (no `@tailwind`, no `@apply`).
* Consumers should import it once (e.g. in their app entry) to get the
* default Comic UI color tokens and basic typography defaults.
*
* Fonts:
* - `Bangers` and `Outfit` are referenced but not auto-loaded here.
* To match the demo exactly, add them via your app (e.g. Google Fonts).
*/
:root {
/* Comic Book Color Palette */
--background: 45 30% 96%;
--foreground: 0 0% 5%;
--card: 45 25% 98%;
--card-foreground: 0 0% 5%;
--popover: 45 25% 98%;
--popover-foreground: 0 0% 5%;
/* Hero Colors - Primary Red */
--primary: 0 85% 50%;
--primary-foreground: 0 0% 100%;
/* Secondary - Hero Blue */
--secondary: 220 90% 50%;
--secondary-foreground: 0 0% 100%;
/* Muted - Page cream tones */
--muted: 45 20% 90%;
--muted-foreground: 0 0% 35%;
/* Accent - Hero Yellow */
--accent: 45 100% 50%;
--accent-foreground: 0 0% 5%;
--destructive: 0 84% 40%;
--destructive-foreground: 0 0% 100%;
/* Ink Black borders */
--border: 0 0% 8%;
--input: 0 0% 8%;
--ring: 0 85% 50%;
--radius: 0px;
/* Extended Comic Palette */
--hero-red: 0 85% 50%;
--hero-blue: 220 90% 50%;
--hero-yellow: 45 100% 50%;
--ink-black: 0 0% 5%;
--page-cream: 45 30% 96%;
--mutant-purple: 280 70% 55%;
--gamma-green: 120 80% 40%;
--cosmic-orange: 25 95% 55%;
/* Comic Shadows */
--shadow-ink: 4px 4px 0px hsl(0 0% 5%);
--shadow-impact: 6px 6px 0px hsl(0 0% 5%);
--shadow-panel: 3px 3px 0px hsl(0 0% 5%);
/* Sidebar (kept for compatibility) */
--sidebar-background: 45 25% 94%;
--sidebar-foreground: 0 0% 5%;
--sidebar-primary: 0 85% 50%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 45 100% 50%;
--sidebar-accent-foreground: 0 0% 5%;
--sidebar-border: 0 0% 8%;
--sidebar-ring: 0 85% 50%;
}
.dark {
--background: 220 20% 8%;
--foreground: 45 30% 96%;
--card: 220 20% 12%;
--card-foreground: 45 30% 96%;
--popover: 220 20% 12%;
--popover-foreground: 45 30% 96%;
--primary: 0 85% 55%;
--primary-foreground: 0 0% 100%;
--secondary: 220 90% 55%;
--secondary-foreground: 0 0% 100%;
--muted: 220 15% 18%;
--muted-foreground: 45 15% 70%;
--accent: 45 100% 55%;
--accent-foreground: 0 0% 5%;
--destructive: 0 70% 45%;
--destructive-foreground: 0 0% 100%;
--border: 45 20% 85%;
--input: 220 15% 25%;
--ring: 0 85% 55%;
--hero-red: 0 85% 55%;
--hero-blue: 220 90% 60%;
--hero-yellow: 45 100% 55%;
--ink-black: 45 20% 90%;
--page-cream: 220 20% 8%;
--mutant-purple: 280 70% 60%;
--gamma-green: 120 75% 50%;
--cosmic-orange: 25 95% 60%;
--shadow-ink: 4px 4px 0px hsl(45 20% 85%);
--shadow-impact: 6px 6px 0px hsl(45 20% 85%);
--shadow-panel: 3px 3px 0px hsl(45 20% 85%);
--sidebar-background: 220 20% 10%;
--sidebar-foreground: 45 30% 96%;
--sidebar-primary: 0 85% 55%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 45 100% 55%;
--sidebar-accent-foreground: 0 0% 5%;
--sidebar-border: 45 20% 85%;
--sidebar-ring: 0 85% 55%;
}
/* Minimal defaults (safe plain CSS) */
html,
body {
color: hsl(var(--foreground));
background-color: hsl(var(--background));
font-family: Outfit, system-ui, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: Bangers, Impact, sans-serif;
}
/* -----------------------------------------------------------------------------
* Tailwind v4 compatibility helpers (no Tailwind config required)
*
* Comic UI components are authored with shadcn-style token classnames
* (e.g. `bg-primary`, `border-3`, `shadow-ink`, `font-display`).
*
* In Tailwind v4 "CSS-first" setups, it’s possible for core utilities to work
* while a user’s Tailwind config (presets/theme extensions) is not applied.
* These plain-CSS utilities bridge that gap by mapping the token classnames to
* CSS variables declared above.
* ---------------------------------------------------------------------------*/
/* Fonts */
.font-display {
font-family: Bangers, Impact, sans-serif;
}
.font-body {
font-family: Outfit, system-ui, sans-serif;
}
/* Token colors */
.bg-background {
background-color: hsl(var(--background));
}
.text-background {
color: hsl(var(--background));
}
.text-foreground {
color: hsl(var(--foreground));
}
.bg-card {
background-color: hsl(var(--card));
}
.text-card-foreground {
color: hsl(var(--card-foreground));
}
.bg-popover {
background-color: hsl(var(--popover));
}
.text-popover-foreground {
color: hsl(var(--popover-foreground));
}
.bg-primary {
background-color: hsl(var(--primary));
}
.text-primary-foreground {
color: hsl(var(--primary-foreground));
}
.bg-secondary {
background-color: hsl(var(--secondary));
}
.text-secondary-foreground {
color: hsl(var(--secondary-foreground));
}
.bg-muted {
background-color: hsl(var(--muted));
}
.text-muted-foreground {
color: hsl(var(--muted-foreground));
}
.bg-accent {
background-color: hsl(var(--accent));
}
.text-accent-foreground {
color: hsl(var(--accent-foreground));
}
.bg-destructive {
background-color: hsl(var(--destructive));
}
.text-destructive-foreground {
color: hsl(var(--destructive-foreground));
}
.bg-border {
background-color: hsl(var(--border));
}
.border-border {
border-color: hsl(var(--border));
}
.border-input {
border-color: hsl(var(--input));
}
.bg-sidebar {
background-color: hsl(var(--sidebar-background));
}
.text-sidebar-foreground {
color: hsl(var(--sidebar-foreground));
}
.bg-sidebar-primary {
background-color: hsl(var(--sidebar-primary));
}
.text-sidebar-primary-foreground {
color: hsl(var(--sidebar-primary-foreground));
}
.bg-sidebar-accent {
background-color: hsl(var(--sidebar-accent));
}
.text-sidebar-accent-foreground {
color: hsl(var(--sidebar-accent-foreground));
}
.border-sidebar-border {
border-color: hsl(var(--sidebar-border));
}
.text-ink {
color: hsl(var(--ink-black));
}
.bg-ink {
background-color: hsl(var(--ink-black));
}
.border-ink {
border-color: hsl(var(--ink-black));
}
.bg-hero-red {
background-color: hsl(var(--hero-red));
}
.bg-hero-blue {
background-color: hsl(var(--hero-blue));
}
.bg-hero-yellow {
background-color: hsl(var(--hero-yellow));
}
.text-hero-red {
color: hsl(var(--hero-red));
}
.text-hero-blue {
color: hsl(var(--hero-blue));
}
.text-hero-yellow {
color: hsl(var(--hero-yellow));
}
.bg-mutant-purple {
background-color: hsl(var(--mutant-purple));
}
.bg-gamma-green {
background-color: hsl(var(--gamma-green));
}
.bg-cosmic-orange {
background-color: hsl(var(--cosmic-orange));
}
.text-mutant-purple {
color: hsl(var(--mutant-purple));
}
.text-gamma-green {
color: hsl(var(--gamma-green));
}
.text-cosmic-orange {
color: hsl(var(--cosmic-orange));
}
/* Border widths used across components */
.border-3 {
border-width: 3px;
}
.border-4 {
border-width: 4px;
}
/* Shadows */
.shadow-ink {
box-shadow: var(--shadow-ink);
}
.shadow-impact {
box-shadow: var(--shadow-impact);
}
.shadow-panel {
box-shadow: var(--shadow-panel);
}
/* Ring tokens (works with Tailwind’s ring utilities via CSS vars) */
.ring-ring {
--tw-ring-color: hsl(var(--ring));
}
.ring-sidebar-ring {
--tw-ring-color: hsl(var(--sidebar-ring));
}
.ring-offset-background {
--tw-ring-offset-color: hsl(var(--background));
}
/* Gradient stop tokens (for `from-*`, `via-*`, `to-*`) */
.from-hero-yellow {
--tw-gradient-from: hsl(var(--hero-yellow)) var(--tw-gradient-from-position);
--tw-gradient-to: hsl(var(--hero-yellow) / 0) var(--tw-gradient-to-position);
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-cosmic-orange {
--tw-gradient-to: hsl(var(--cosmic-orange) / 0) var(--tw-gradient-to-position);
--tw-gradient-stops: var(--tw-gradient-from),
hsl(var(--cosmic-orange)) var(--tw-gradient-via-position),
var(--tw-gradient-to);
}
.to-hero-red {
--tw-gradient-to: hsl(var(--hero-red)) var(--tw-gradient-to-position);
}
/* Keyframes + animation token classes */
@keyframes impact {
0% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
}
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
20% {
transform: translateX(-4px) rotate(-1deg);
}
40% {
transform: translateX(4px) rotate(1deg);
}
60% {
transform: translateX(-4px) rotate(-1deg);
}
80% {
transform: translateX(4px) rotate(1deg);
}
}
@keyframes burst {
0% {
transform: scale(0.8);
opacity: 0;
}
50% {
transform: scale(1.05);
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes float {
0%,
100% {
transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
}
@keyframes pulse-glow {
0%,
100% {
box-shadow: 0 0 20px hsl(var(--hero-yellow) / 0.5);
}
50% {
box-shadow: 0 0 40px hsl(var(--hero-yellow) / 0.8);
}
}
.animate-impact {
animation: impact 0.3s ease-out;
}
.animate-shake {
animation: shake 0.4s ease-in-out;
}
.animate-burst {
animation: burst 0.5s ease-out;
}
.animate-float {
animation: float 3s ease-in-out infinite;
}
.animate-pulse-glow {
animation: pulse-glow 2s ease-in-out infinite;
}
/* Variant helpers for classnames Tailwind would normally generate */
.hover\:bg-hero-red\/90:hover {
background-color: hsl(var(--hero-red) / 0.9);
}