Skip to content

Commit 89b4b92

Browse files
Ajit Pratap Singhclaude
authored andcommitted
fix(website): playground light mode + select elements + arbitrary bg override
Final light mode fixes from visual audit: 1. Playground root container: bg-[#09090b] is a hardcoded arbitrary Tailwind class that no named-class CSS selector could match. Added html.light .bg-\[\#09090b\] override to make playground background light. 2. All select elements: instead of trying to match individual bg-zinc-800/80 or bg-slate-800 classes on selects (unreliable with Tailwind v4 encoding), override ALL selects in light mode with html.light select { background: #F3F4F6 }. 3. Playground-specific overrides: active tab blue-400 → darker blue for contrast, emerald code text, slate-700 dividers, copy button hover, loading skeletons, green parser dot. CodeMirror editor stays dark via its own scoped oneDark theme. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5ab48d6 commit 89b4b92

1 file changed

Lines changed: 36 additions & 3 deletions

File tree

website/src/app/globals.css

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,10 @@ html.light .bg-white\/10 {
290290
background-color: rgba(0, 0, 0, 0.06) !important;
291291
}
292292

293-
/* MiniPlayground dialect select */
294-
html.light .bg-zinc-800\/80 {
293+
/* All select elements in light mode */
294+
html.light select {
295295
background-color: #F3F4F6 !important;
296-
color: #374151 !important;
296+
color: #1E293B !important;
297297
border-color: rgba(0, 0, 0, 0.12) !important;
298298
}
299299
html.light select option {
@@ -312,6 +312,39 @@ html.light .border-accent-indigo\\/30 {
312312
/* --- Hero background gradients: reduce on light mode --- */
313313
html.light section > [aria-hidden="true"] { opacity: 0.15; }
314314

315+
/* --- Playground: override hardcoded arbitrary bg --- */
316+
html.light .bg-\[\#09090b\] { background-color: #FAFBFC !important; }
317+
html.light .bg-\[\#0F172A\] { background-color: #FAFBFC !important; }
318+
319+
/* Playground select element */
320+
html.light .bg-slate-800.text-slate-200 {
321+
background-color: #F3F4F6 !important;
322+
color: #1E293B !important;
323+
border-color: rgba(0, 0, 0, 0.12) !important;
324+
}
325+
326+
/* Playground active tab */
327+
html.light .text-blue-400 { color: #2563EB !important; }
328+
html.light .bg-blue-500 { background-color: #3B82F6 !important; }
329+
330+
/* Playground emerald code */
331+
html.light code .text-emerald-400,
332+
html.light code.text-emerald-400 { color: #059669 !important; }
333+
html.light .bg-slate-800.rounded { background-color: #E5E7EB !important; }
334+
335+
/* Playground divider */
336+
html.light .bg-slate-700 { background-color: #D1D5DB !important; }
337+
338+
/* Playground copy/bottom bar hover */
339+
html.light .hover\:text-white:hover { color: #1A1A2E !important; }
340+
html.light .hover\:border-slate-500:hover { border-color: rgba(0, 0, 0, 0.2) !important; }
341+
342+
/* Loading skeleton in playground */
343+
html.light .animate-pulse.bg-zinc-800 { background-color: #E5E7EB !important; }
344+
345+
/* Green dot (parser ready) — keep green */
346+
html.light .bg-green-500 { background-color: #22C55E !important; }
347+
315348
/* --- Code blocks / pre elements --- */
316349
html.light pre[class*="font-mono"] {
317350
background-color: #1E1E2E;

0 commit comments

Comments
 (0)