From 8f6a4efddd16fc35490b3cf123f8d410ef9fa45b Mon Sep 17 00:00:00 2001 From: Till JS Date: Tue, 21 Apr 2026 16:11:03 +0200 Subject: [PATCH] =?UTF-8?q?fix(spaces):=20/spaces/members=20dark-mode=20?= =?UTF-8?q?=E2=80=94=20theme=20tokens=20throughout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Members page had the same bug as SpaceCreateDialog before its rewrite: var(--color-surface-1, white) and friends with hardcoded white fallbacks meant the panels, inputs, and member rows rendered as blazing-white boxes in dark mode, with the member name going invisible (white-on-white) and the header chips losing contrast. Rewrote the stylesheet to mirror @mana/shared-ui Pill conventions: - hsl(var(--color-card|background|foreground|border|muted)) throughout - per-type chip colors get a :global(.dark) variant with inverted lightness so Memoro's MARKE badge reads in both themes - panels use --color-card + border + subtle shadow (matches Pill) - inputs use --color-input with --color-background fallback + a primary-tinted focus ring (box-shadow color-mix) - buttons use --color-primary with --color-primary-foreground - member rows use --color-muted with a half-opacity border - remove-btn hover uses color-mix so the red accent matches the theme - error / success messages get dark-mode color pairs Also tightened the page: - Container padding bumped to breathe against the PillNav chrome. - h2 "Einladen" / "Mitglieder" are small uppercase labels now — they were invisible before and the chunky headline size competed with the page title. - Member row min-width + ellipsis so long names don't push the role badge off the right edge. 0 errors across 7234 files. Plan: docs/plans/spaces-foundation.md Co-Authored-By: Claude Opus 4.7 (1M context) --- .../routes/(app)/spaces/members/+page.svelte | 193 +++++++++++++----- 1 file changed, 139 insertions(+), 54 deletions(-) diff --git a/apps/mana/apps/web/src/routes/(app)/spaces/members/+page.svelte b/apps/mana/apps/web/src/routes/(app)/spaces/members/+page.svelte index 3fb942481..6a9e7913e 100644 --- a/apps/mana/apps/web/src/routes/(app)/spaces/members/+page.svelte +++ b/apps/mana/apps/web/src/routes/(app)/spaces/members/+page.svelte @@ -258,10 +258,15 @@