From 55e61b22b147e83ac13a33f6e41a2ed7bdc4285e Mon Sep 17 00:00:00 2001 From: ramansgdeep Date: Mon, 19 Oct 2026 15:46:40 +0530 Subject: [PATCH 1/3] Add light theme, keep code dark --- src/components/BraccatoExample.tsx | 4 +- src/components/CodeExamples.tsx | 2 +- src/components/CodeTabs.astro | 2 +- src/components/Header.astro | 2 +- src/components/LyricsPreview.tsx | 6 +- src/components/MobileNav.tsx | 2 +- src/components/PageActions.astro | 2 +- src/components/Playground.tsx | 4 +- src/components/Search.tsx | 4 +- src/layouts/BaseLayout.astro | 3 +- src/pages/docs/providers.astro | 2 +- src/pages/docs/rate-limiting.astro | 6 +- src/styles/global.css | 161 +++++++++++++++++++++++++---- 13 files changed, 160 insertions(+), 40 deletions(-) diff --git a/src/components/BraccatoExample.tsx b/src/components/BraccatoExample.tsx index c10cf8a..e6cc8ca 100644 --- a/src/components/BraccatoExample.tsx +++ b/src/components/BraccatoExample.tsx @@ -203,7 +203,7 @@ export default function BraccatoExample({ width: 40rem; height: 30rem; transform: translate(-50%, -50%); - background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent); + background: radial-gradient(closest-side, var(--glow), transparent); pointer-events: none; } @@ -382,7 +382,7 @@ export default function BraccatoExample({ grid-column: 2; margin: 0; padding: 0; - background-color: var(--bg-primary); + background-color: var(--surface-code); border: none; border-radius: var(--radius-lg); overflow: hidden; diff --git a/src/components/CodeExamples.tsx b/src/components/CodeExamples.tsx index 57c362b..b22ff4e 100644 --- a/src/components/CodeExamples.tsx +++ b/src/components/CodeExamples.tsx @@ -222,7 +222,7 @@ client.newCall(request).execute().use { response -> }; return ( -
+
+
{tabs.map((tab, i) => ( diff --git a/src/components/Header.astro b/src/components/Header.astro index 574a7ec..20a0633 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -30,7 +30,7 @@ const currentPath = currentPathOf(Astro.url); top: 0; z-index: 100; height: var(--header-height); - background-color: rgba(15, 14, 19, 0.8); + background-color: color-mix(in srgb, var(--bg-primary) 80%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); } diff --git a/src/components/LyricsPreview.tsx b/src/components/LyricsPreview.tsx index 7a47bba..63c2c7c 100644 --- a/src/components/LyricsPreview.tsx +++ b/src/components/LyricsPreview.tsx @@ -128,7 +128,7 @@ export default function LyricsPreview({ content, durationS }: LyricsPreviewProps } return ( -
+
@@ -172,7 +172,7 @@ export default function LyricsPreview({ content, durationS }: LyricsPreviewProps
diff --git a/src/components/LyricsPreview.tsx b/src/components/LyricsPreview.tsx index 63c2c7c..d813c8a 100644 --- a/src/components/LyricsPreview.tsx +++ b/src/components/LyricsPreview.tsx @@ -128,7 +128,7 @@ export default function LyricsPreview({ content, durationS }: LyricsPreviewProps } return ( -
+
@@ -173,8 +173,9 @@ export default function LyricsPreview({ content, durationS }: LyricsPreviewProps