-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobal.css
More file actions
372 lines (300 loc) · 8.55 KB
/
Copy pathglobal.css
File metadata and controls
372 lines (300 loc) · 8.55 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
@import "tailwindcss";
/* DaisyUI v5 with custom PodCodar themes - default themes disabled */
@plugin "daisyui" {
themes: false;
}
/* Tailwind Typography plugin for gorgeous markdown rendering */
@plugin "@tailwindcss/typography";
/* Scan Astro pages, components, and content for class names */
@source "../**/*.{astro,html,js,ts,mjs,md,mdx}";
/*
PodCodar uses the same stack as github.com/podcodar/webapp: Tailwind CSS v4 + daisyUI.
Custom PodCodar themes based on the mascot llama colors: purple/violet primary,
lavender secondary, with white/cream base. Colors use OKLCH format.
*/
/* PodCodar Light Theme (Default) - Based on mascot colors: purple/violet primary */
@plugin "daisyui/theme" {
name: "podcodar-light";
default: true;
prefersdark: false;
color-scheme: light;
/* Background layers - Clean white with subtle purple tint */
--color-base-100: oklch(99% 0.002 300);
--color-base-200: oklch(96% 0.005 300);
--color-base-300: oklch(90% 0.01 300);
--color-base-content: oklch(25% 0.02 300);
/* Primary - Purple/Violet (from mascot outline) */
--color-primary: oklch(60% 0.2 285);
--color-primary-content: oklch(99% 0.005 300);
/* Secondary - Lavender/Lilac (lighter purple accent) */
--color-secondary: oklch(75% 0.12 290);
--color-secondary-content: oklch(30% 0.03 290);
/* Accent - Deep Purple (sunglasses lenses) */
--color-accent: oklch(50% 0.18 285);
--color-accent-content: oklch(99% 0.005 300);
/* Neutral - Warm Gray */
--color-neutral: oklch(45% 0.02 300);
--color-neutral-content: oklch(99% 0.005 300);
/* Semantic colors */
--color-info: oklch(70% 0.15 250);
--color-info-content: oklch(25% 0.03 250);
--color-success: oklch(65% 0.15 145);
--color-success-content: oklch(99% 0.005 145);
--color-warning: oklch(75% 0.15 85);
--color-warning-content: oklch(30% 0.03 85);
--color-error: oklch(60% 0.18 25);
--color-error-content: oklch(99% 0.005 25);
/* Radius tokens */
--radius-selector: 0.5rem;
--radius-field: 0.375rem;
--radius-box: 0.75rem;
/* Size tokens */
--size-selector: 0.25rem;
--size-field: 0.25rem;
/* Border */
--border: 1px;
/* Effects */
--depth: 1;
--noise: 0;
}
/* PodCodar Dark Theme - Deep purple-tinted dark theme */
@plugin "daisyui/theme" {
name: "podcodar-dark";
default: false;
prefersdark: true;
color-scheme: dark;
/* Background layers - Deep dark with purple tint */
--color-base-100: oklch(20% 0.02 300);
--color-base-200: oklch(25% 0.025 300);
--color-base-300: oklch(32% 0.03 300);
--color-base-content: oklch(96% 0.015 300);
/* Primary - Bright Purple/Violet (glowing mascot style) */
--color-primary: oklch(70% 0.18 285);
--color-primary-content: oklch(20% 0.03 300);
/* Secondary - Soft Lavender (for dark mode harmony) */
--color-secondary: oklch(80% 0.1 290);
--color-secondary-content: oklch(25% 0.03 290);
/* Accent - Vibrant Purple */
--color-accent: oklch(65% 0.22 285);
--color-accent-content: oklch(99% 0.005 300);
/* Neutral - Purple-Gray */
--color-neutral: oklch(70% 0.03 300);
--color-neutral-content: oklch(20% 0.02 300);
/* Semantic colors */
--color-info: oklch(70% 0.12 250);
--color-info-content: oklch(20% 0.03 250);
--color-success: oklch(70% 0.12 145);
--color-success-content: oklch(20% 0.03 145);
--color-warning: oklch(75% 0.12 85);
--color-warning-content: oklch(25% 0.03 85);
--color-error: oklch(65% 0.15 25);
--color-error-content: oklch(99% 0.005 25);
/* Radius tokens */
--radius-selector: 0.5rem;
--radius-field: 0.375rem;
--radius-box: 0.75rem;
/* Size tokens */
--size-selector: 0.25rem;
--size-field: 0.25rem;
/* Border */
--border: 1px;
/* Effects */
--depth: 1;
--noise: 0;
}
@layer base {
html {
color-scheme: light dark;
}
body {
@apply bg-base-100 font-sans text-base-content antialiased;
font-family: var(--font-atkinson), ui-sans-serif, system-ui, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6 {
@apply mb-2 font-bold leading-tight text-base-content;
}
h1 {
@apply text-5xl;
}
h2 {
@apply text-4xl;
}
h3 {
@apply text-3xl;
}
h4 {
@apply text-2xl;
}
h5 {
@apply text-xl;
}
a {
@apply text-primary underline-offset-2 hover:underline;
}
p {
@apply mb-4 leading-relaxed;
}
code {
@apply rounded bg-base-200 px-1.5 py-0.5 text-sm;
}
pre {
@apply rounded-box p-6;
}
pre > code {
@apply bg-transparent p-0;
}
blockquote {
@apply border-l-4 border-primary pl-5 text-xl not-italic;
}
hr {
@apply my-6 border-0 border-t border-base-300;
}
img {
@apply h-auto max-w-full rounded-lg;
}
table {
@apply w-full;
}
textarea,
input {
@apply text-base;
}
}
/* ── Prose / Markdown gorgeous styling ─────────────────────────────────── */
/* Heading anchors from rehype-autolink-headings */
.heading-anchor {
@apply no-underline;
}
.heading-anchor::after {
content: '#';
@apply ml-2 text-primary/30 opacity-0 transition-opacity duration-200;
}
.heading-anchor:hover::after {
@apply opacity-100;
}
/* Prose overrides for PodCodar theme */
.prose {
/* Use theme colors for prose elements */
--tw-prose-body: var(--color-base-content);
--tw-prose-headings: var(--color-base-content);
--tw-prose-lead: var(--color-base-content);
--tw-prose-links: var(--color-primary);
--tw-prose-bold: var(--color-base-content);
--tw-prose-counters: var(--color-primary);
--tw-prose-bullets: var(--color-primary);
--tw-prose-hr: var(--color-base-300);
--tw-prose-quotes: var(--color-base-content);
--tw-prose-quote-borders: var(--color-primary);
--tw-prose-captions: var(--color-base-content);
--tw-prose-kbd: var(--color-base-content);
--tw-prose-kbd-shadows: var(--color-base-300);
--tw-prose-code: var(--color-primary);
--tw-prose-pre-code: var(--color-base-content);
--tw-prose-pre-bg: var(--color-base-200);
--tw-prose-th-borders: var(--color-base-300);
--tw-prose-td-borders: var(--color-base-300);
/* Invert (dark mode) */
--tw-prose-invert-body: var(--color-base-content);
--tw-prose-invert-headings: var(--color-base-content);
--tw-prose-invert-lead: var(--color-base-content);
--tw-prose-invert-links: var(--color-primary);
--tw-prose-invert-bold: var(--color-base-content);
--tw-prose-invert-counters: var(--color-primary);
--tw-prose-invert-bullets: var(--color-primary);
--tw-prose-invert-hr: var(--color-base-300);
--tw-prose-invert-quotes: var(--color-base-content);
--tw-prose-invert-quote-borders: var(--color-primary);
--tw-prose-invert-captions: var(--color-base-content);
--tw-prose-invert-kbd: var(--color-base-content);
--tw-prose-invert-kbd-shadows: var(--color-base-300);
--tw-prose-invert-code: var(--color-primary);
--tw-prose-invert-pre-code: var(--color-base-content);
--tw-prose-invert-pre-bg: var(--color-base-200);
--tw-prose-invert-th-borders: var(--color-base-300);
--tw-prose-invert-td-borders: var(--color-base-300);
}
/* Gorgeous table styling within prose */
.prose table {
@apply overflow-hidden rounded-xl border border-base-300 text-sm;
}
.prose thead {
@apply bg-base-200;
}
.prose th {
@apply px-4 py-3 text-left font-semibold text-base-content;
}
.prose td {
@apply px-4 py-3 border-t border-base-300;
}
.prose tbody tr:nth-child(even) {
@apply bg-base-200/30;
}
.prose tbody tr:hover {
@apply bg-primary/5 transition-colors duration-200;
}
/* Gorgeous blockquote */
.prose blockquote {
@apply relative border-none bg-gradient-to-r from-primary/5 to-transparent rounded-r-xl pr-6 py-4 pl-6 not-italic;
}
.prose blockquote::before {
content: '';
@apply absolute left-0 top-0 bottom-0 w-1 rounded-full bg-gradient-to-b from-primary to-secondary;
}
.prose blockquote p {
@apply m-0 text-lg leading-relaxed;
}
/* Gorgeous horizontal rule */
.prose hr {
@apply border-none my-10;
background: linear-gradient(90deg, transparent, var(--color-base-300), transparent);
height: 1px;
}
/* Code blocks */
.prose pre {
@apply rounded-xl border border-base-300/50 shadow-sm;
}
.prose code {
@apply text-sm font-medium;
}
.prose :not(pre) > code {
@apply bg-primary/10 text-primary px-1.5 py-0.5 rounded-md;
}
/* Lists */
.prose ul > li::marker {
@apply text-primary;
}
.prose ol > li::marker {
@apply text-primary font-semibold;
}
/* Nested lists */
.prose ul ul > li::marker,
.prose ol ul > li::marker {
@apply text-secondary;
}
/* Definition lists if used */
.prose dl dt {
@apply font-semibold text-base-content mt-4;
}
.prose dl dd {
@apply ml-4 text-base-content/80;
}
/* Reduced text size on mobile to keep content readable without aggressive scaling */
@media (max-width: 640px) {
body {
@apply text-base;
}
h1 {
@apply text-4xl;
}
h2 {
@apply text-3xl;
}
h3 {
@apply text-2xl;
}
}