From 5f2225f33195d9b054331d14b4eb588f90f92204 Mon Sep 17 00:00:00 2001 From: Ajit Pratap Singh Date: Thu, 15 Oct 2026 00:46:36 +0530 Subject: [PATCH 1/2] feat(website/design): semantic design-token system, collapse legacy color tokens Replace the duplicated legacy tokens (--color-primary/surface/elevated, --color-accent-*, --color-bg-*, --color-text-*, --color-link) with one semantic set defined on :root (dark) and html.light (light): --bg, --bg-raised, --bg-overlay, --fg, --fg-muted, --fg-subtle, --border, --brand, --brand-fg, --accent, --accent-fg, --accent-warm, --danger, --ok. @theme inline maps them to Tailwind utilities that reference the runtime variables, so light mode now switches through the variables instead of per-class !important overrides. Every legacy class usage is migrated and the html.light overrides that targeted them are deleted. Also fixes light-mode contrast failures found while auditing the 8 key routes: navbar background stuck dark, invisible prose , playground title, VS Code settings block, dialect/status badges and playground status text now use tokens. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01RkzVu3JY9Y6BRWfjesWts9 --- .../src/app/benchmarks/BenchmarksContent.tsx | 8 +- website/src/app/blog/BlogList.tsx | 8 +- website/src/app/blog/[slug]/page.tsx | 14 +- website/src/app/blog/page.tsx | 2 +- website/src/app/compare/CompareContent.tsx | 4 +- website/src/app/docs/[...slug]/page.tsx | 2 +- website/src/app/docs/page.tsx | 10 +- website/src/app/global-error.tsx | 2 +- website/src/app/globals.css | 223 +++++++++--------- website/src/app/playground/page.tsx | 6 +- website/src/app/vscode/VscodeContent.tsx | 2 +- .../src/components/benchmarks/BarChart.tsx | 2 +- .../components/benchmarks/RawDataToggle.tsx | 2 +- website/src/components/docs/CopyButton.tsx | 2 +- website/src/components/docs/DocNavigation.tsx | 4 +- .../src/components/docs/DocsSearchTrigger.tsx | 4 +- website/src/components/docs/Sidebar.tsx | 6 +- website/src/components/docs/Toc.tsx | 4 +- .../src/components/docs/mdx-components.tsx | 8 +- website/src/components/home/CodeExamples.tsx | 62 ++--- website/src/components/home/CtaBanner.tsx | 6 +- .../src/components/home/DialectShowcase.tsx | 37 ++- website/src/components/home/FeatureGrid.tsx | 9 +- website/src/components/home/McpSection.tsx | 2 +- .../src/components/home/MiniPlayground.tsx | 6 +- .../components/home/PerformanceSection.tsx | 8 +- website/src/components/home/VscodeSection.tsx | 40 ++-- website/src/components/layout/Footer.tsx | 2 +- website/src/components/layout/Navbar.tsx | 18 +- .../src/components/playground/AnalyzeTab.tsx | 6 +- website/src/components/playground/AstTab.tsx | 14 +- .../src/components/playground/FormatTab.tsx | 8 +- website/src/components/playground/LintTab.tsx | 14 +- .../src/components/playground/Playground.tsx | 12 +- .../playground/WasmErrorBoundary.tsx | 6 +- website/src/components/ui/SearchModal.tsx | 18 +- website/src/components/ui/TerminalMockup.tsx | 6 +- website/src/components/ui/VersionBadge.tsx | 2 +- website/src/lib/constants.ts | 10 +- 39 files changed, 295 insertions(+), 304 deletions(-) diff --git a/website/src/app/benchmarks/BenchmarksContent.tsx b/website/src/app/benchmarks/BenchmarksContent.tsx index 4780cfca..d5ee60f5 100644 --- a/website/src/app/benchmarks/BenchmarksContent.tsx +++ b/website/src/app/benchmarks/BenchmarksContent.tsx @@ -30,7 +30,7 @@ function renderMethodologyItem(item: string) { return ( <> {item.slice(0, idx)} - {FLAG} + {FLAG} {item.slice(idx + FLAG.length)} ); @@ -49,7 +49,7 @@ export function BenchmarksContent() {

Parse-stage performance of the GoSQLX parser, re-measured with the in-repo benchmarks.

-

+

Measured 2026-10-13 · Apple M4 · Go 1.27 · parse stage only

@@ -110,7 +110,7 @@ export function BenchmarksContent() { -

← Swipe to see all columns →

+

← Swipe to see all columns →

@@ -126,7 +126,7 @@ export function BenchmarksContent() { Head-to-head numbers against other Go SQL parsers are not published yet. They will return once a reproducible benchmark harness is committed to the repository, so every figure can be re-run by you. Until then, see the{' '} - + qualitative feature comparison . diff --git a/website/src/app/blog/BlogList.tsx b/website/src/app/blog/BlogList.tsx index b0e91157..3bdfecd8 100644 --- a/website/src/app/blog/BlogList.tsx +++ b/website/src/app/blog/BlogList.tsx @@ -18,15 +18,15 @@ export function BlogList({ posts }: { posts: BlogPost[] }) { className="group flex gap-6 py-5 pl-0 relative" > {/* Timeline dot */} -
+
- + v{post.version} {post.date && ( - {formatDate(post.date)} + {formatDate(post.date)} )}

@@ -40,7 +40,7 @@ export function BlogList({ posts }: { posts: BlogPost[] }) {

{/* Arrow */} -
+
diff --git a/website/src/app/blog/[slug]/page.tsx b/website/src/app/blog/[slug]/page.tsx index a0569742..36f4771c 100644 --- a/website/src/app/blog/[slug]/page.tsx +++ b/website/src/app/blog/[slug]/page.tsx @@ -104,7 +104,7 @@ export default async function BlogPostPage({ params }: Props) { {/* Back link */} @@ -115,11 +115,11 @@ export default async function BlogPostPage({ params }: Props) { {/* Header */}
- + v{post.version} {post.date && ( -