From 326bc896796fd68a0cd6ef5c2c710eb4e1294d0c Mon Sep 17 00:00:00 2001 From: Juan Denis Date: Sun, 7 Jun 2026 03:34:28 -0400 Subject: [PATCH 001/116] =?UTF-8?q?feat(ui):=20redesign=20foundation=20?= =?UTF-8?q?=E2=80=94=20tokens,=20self-hosted=20fonts,=20primitives,=20side?= =?UTF-8?q?bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phase 0 of the ServerKit UI redesign (see docs/REDESIGN_MAP.md): - Remap design tokens to the new infra-console palette behind existing names; add prototype token names (surface ramp, cyan/violet, accent-bright/-bg). Dark/light/system. - Self-host IBM Plex (woff2 vendored via scripts/fetch-fonts.mjs); no Google Fonts CDN. - Runtime-derive the full accent ramp in ThemeContext. - Add shared design-system primitives in components/ds (Pill, EnvTag, SegControl, MetricCard, Gauge, ServiceTile, Sparkline, AreaChart, ScoreGauge, Feed, Drawer). - Restyle the sidebar (gradient rail, mono section headers, left accent bar) and switch the brand to the demo's gradient-tile logo. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/index.html | 18 +- frontend/public/fonts/ibm-plex-mono-400.woff2 | Bin 0 -> 14708 bytes frontend/public/fonts/ibm-plex-mono-500.woff2 | Bin 0 -> 14888 bytes frontend/public/fonts/ibm-plex-mono-600.woff2 | Bin 0 -> 15620 bytes frontend/public/fonts/ibm-plex-sans-400.woff2 | Bin 0 -> 22588 bytes frontend/public/fonts/ibm-plex-sans-500.woff2 | Bin 0 -> 24184 bytes frontend/public/fonts/ibm-plex-sans-600.woff2 | Bin 0 -> 24252 bytes frontend/public/fonts/ibm-plex-sans-700.woff2 | Bin 0 -> 22832 bytes frontend/scripts/fetch-fonts.mjs | 63 +++++ frontend/src/components/ServerKitLogo.jsx | 4 +- frontend/src/components/Sidebar.jsx | 5 +- frontend/src/components/ds/AreaChart.jsx | 69 +++++ frontend/src/components/ds/Drawer.jsx | 48 ++++ frontend/src/components/ds/EnvTag.jsx | 17 ++ frontend/src/components/ds/Feed.jsx | 24 ++ frontend/src/components/ds/Gauge.jsx | 15 + frontend/src/components/ds/MetricCard.jsx | 37 +++ frontend/src/components/ds/Pill.jsx | 14 + frontend/src/components/ds/ScoreGauge.jsx | 33 +++ frontend/src/components/ds/SegControl.jsx | 27 ++ frontend/src/components/ds/ServiceTile.jsx | 24 ++ frontend/src/components/ds/Sparkline.jsx | 26 ++ frontend/src/components/ds/index.js | 15 + frontend/src/components/ds/utils.js | 23 ++ frontend/src/components/sidebarItems.js | 6 + frontend/src/contexts/ThemeContext.jsx | 39 ++- frontend/src/styles/_theme-variables.scss | 257 ++++++++++++------ frontend/src/styles/_variables.scss | 91 ++++--- frontend/src/styles/base/_fonts.scss | 66 +++++ .../src/styles/components/_design-system.scss | 252 +++++++++++++++++ frontend/src/styles/layout/_sidebar.scss | 206 +++++++------- frontend/src/styles/main.scss | 2 + 32 files changed, 1139 insertions(+), 242 deletions(-) create mode 100644 frontend/public/fonts/ibm-plex-mono-400.woff2 create mode 100644 frontend/public/fonts/ibm-plex-mono-500.woff2 create mode 100644 frontend/public/fonts/ibm-plex-mono-600.woff2 create mode 100644 frontend/public/fonts/ibm-plex-sans-400.woff2 create mode 100644 frontend/public/fonts/ibm-plex-sans-500.woff2 create mode 100644 frontend/public/fonts/ibm-plex-sans-600.woff2 create mode 100644 frontend/public/fonts/ibm-plex-sans-700.woff2 create mode 100644 frontend/scripts/fetch-fonts.mjs create mode 100644 frontend/src/components/ds/AreaChart.jsx create mode 100644 frontend/src/components/ds/Drawer.jsx create mode 100644 frontend/src/components/ds/EnvTag.jsx create mode 100644 frontend/src/components/ds/Feed.jsx create mode 100644 frontend/src/components/ds/Gauge.jsx create mode 100644 frontend/src/components/ds/MetricCard.jsx create mode 100644 frontend/src/components/ds/Pill.jsx create mode 100644 frontend/src/components/ds/ScoreGauge.jsx create mode 100644 frontend/src/components/ds/SegControl.jsx create mode 100644 frontend/src/components/ds/ServiceTile.jsx create mode 100644 frontend/src/components/ds/Sparkline.jsx create mode 100644 frontend/src/components/ds/index.js create mode 100644 frontend/src/components/ds/utils.js create mode 100644 frontend/src/styles/base/_fonts.scss create mode 100644 frontend/src/styles/components/_design-system.scss diff --git a/frontend/index.html b/frontend/index.html index 6541565f..4a783ab4 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -9,6 +9,10 @@ ServerKit +