From c725d46435694c8cd628bade93abd59908b5dde6 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Sun, 5 Apr 2026 22:26:01 +0200 Subject: [PATCH] refactor(web): switch to base-vega preset for closer new-york sizing Reinstall shadcn components with base-vega preset (zinc base color). Brings back familiar sizing: h-9 default buttons, rounded-md, shadow-xs on inputs/outlines. Closer to the original new-york style than base-nova was. Co-Authored-By: Claude Opus 4.6 (1M context) --- webui2/components.json | 6 +- .../__snapshots__/file-viewer.test.tsx.snap | 4 +- .../__snapshots__/ref-selector.test.tsx.snap | 6 +- .../__snapshots__/markdown.test.tsx.snap | 237 +++++++++++++++++- .../__snapshots__/pagination.test.tsx.snap | 12 +- .../__snapshots__/write-preview.test.tsx.snap | 8 +- .../ui/__snapshots__/button.test.tsx.snap | 16 +- .../ui/__snapshots__/input.test.tsx.snap | 8 +- .../ui/__snapshots__/textarea.test.tsx.snap | 6 +- webui2/src/components/ui/button.tsx | 22 +- webui2/src/components/ui/input.tsx | 2 +- webui2/src/components/ui/popover.tsx | 4 +- webui2/src/components/ui/textarea.tsx | 2 +- webui2/src/index.css | 84 +++---- 14 files changed, 315 insertions(+), 102 deletions(-) diff --git a/webui2/components.json b/webui2/components.json index 15addee81fadab3e2f43e23425168d57f800bd8f..8438b31cbd5d2f116c632b2f065b008af790bf21 100644 --- a/webui2/components.json +++ b/webui2/components.json @@ -1,12 +1,12 @@ { "$schema": "https://ui.shadcn.com/schema.json", - "style": "base-nova", + "style": "base-vega", "rsc": false, "tsx": true, "tailwind": { "config": "", "css": "src/index.css", - "baseColor": "neutral", + "baseColor": "zinc", "cssVariables": true, "prefix": "" }, @@ -19,7 +19,7 @@ "lib": "@/lib", "hooks": "@/hooks" }, - "menuColor": "default", + "menuColor": "inverted-translucent", "menuAccent": "subtle", "registries": {} } diff --git a/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap b/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap index f4cd9caaf208f835d7320456619717dda3bee368..a1121b1d970563cc920fb2502a98ccc7a5129a7e 100644 --- a/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap +++ b/webui2/src/components/code/__snapshots__/file-viewer.test.tsx.snap @@ -14,7 +14,7 @@ exports[`FileViewer/BinaryFile matches snapshot 1`] = ` 24.0 KB