Skip to content

Adjust tools, resources & prompts light theme - #47

Open
a-effort wants to merge 4 commits into
mainfrom
light-theme-components
Open

Adjust tools, resources & prompts light theme#47
a-effort wants to merge 4 commits into
mainfrom
light-theme-components

Conversation

@a-effort

@a-effort a-effort commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Applies PR #34's light-mode pass to the three surfaces it missed.

  • Status tokens gain a .dark override; six sites that hardcoded the emerald/gray shades now use them, including the two server drawers.
  • Drawer body and right rail both inherit bg-popover. The dark-only override they carried split the panes in dark and did nothing in light, where both were pure white.
  • Scrim bg-black/10/50 on all five drawers.
  • The three drawer tables adopt ServersTable's card-per-row pattern, with rows a step down from the drawer body rather than up from the page. Hover and selected are pinned to the row fill.
  • Page chrome moves to text-foreground / text-muted-foreground, the off-palette blue spinners are retinted, and two badges stop bypassing the icon tokens.

Also fixes an unrelated bug in VirtualServerDetailsPanel: the status icon was unconditionally green while its label branched on enabled.

Forms keep their hardcoded neutrals, matching what PR #34 left behind. Also deferred: ToolSchemaDialog's dark-only <pre>, the bg-inherit card shells, ui/json-highlighter on a light surface in TestConnectionPanel, and --main matching the drawer color in dark where the design has the page darker.

2896 tests pass; tsc, eslint, prettier and build are clean. Verified visually in both themes.

light dark

Applies PR #34's light-mode pass to the three surfaces it missed.

- Status tokens gain a `.dark` override; six sites that hardcoded the
  emerald/gray shades now use them, including the two server drawers.
- Drawer body and right rail both inherit `bg-popover`. The dark-only
  override they carried split the panes in dark and did nothing in light,
  where both were pure white.
- Scrim `bg-black/10` → `/50` on all five drawers.
- The three drawer tables adopt `ServersTable`'s card-per-row pattern,
  with rows a step down from the drawer body rather than up from the
  page. Hover and selected are pinned to the row fill.
- Page chrome moves to `text-foreground` / `text-muted-foreground`, the
  off-palette blue spinners are retinted, and two badges stop bypassing
  the icon tokens.

Also fixes an unrelated bug in `VirtualServerDetailsPanel`: the status
icon was unconditionally green while its label branched on `enabled`.

Forms keep their hardcoded neutrals, matching what PR #34 left behind.

2896 tests pass; tsc, eslint, prettier and build are clean.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
@a-effort
a-effort force-pushed the light-theme-components branch from bfc7fc5 to bdeef45 Compare August 19, 2026 06:30

@marekdano marekdano left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking

  • ToolsTable.tsx:81, ResourcesTable.tsx:68, PromptDefinitionTable.tsx:82: the new row className sets the base, hover:, and data-[state=selected]: backgrounds to the same color (in both light and dark), which overrides TableRow's previous hover:bg-muted/50 / data-[state=selected]:bg-muted. Rows no longer show any visual feedback on hover or selection — only the DOM data-state attribute changes, which is why the existing "highlights selected row" tests still pass. Worth restoring a distinct hover/selected shade here.

Worth checking

  • MCPServerDetailsPanel.tsx:534 and VirtualServerDetailsPanel.tsx:640 still hardcode bg-background on the right-rail <aside>, while the container now uses bg-popover (like the three sibling panels this PR fixed). In dark mode that reproduces the same split-pane look this PR resolves elsewhere. Was this intentionally left out of scope, or just missed?

marekdano and others added 3 commits August 19, 2026 10:35
…theme tokens

Signed-off-by: Marek Dano <mk.dano@gmail.com>
- Grid becomes `grid-cols-1 / lg:2 / 2xl:3`. `col-span-full` and
  `sortServersForLayout` both go — cards are uniform now, so empty
  servers no longer need sorting to the end to keep a full-width row from
  splitting the grid. Servers render in API order.
- Page shell moves from `space-y-9` to a `mb-6` heading, and the loading
  branch stops early-returning, so the title survives the spinner.
- Cards drop `min-h-29` / `min-h-35` and their `justify-*` pairs.
- New `--server-icon-bg` token joins `--tool-icon-bg` and
  `--prompt-icon-bg`; the card status dot stops hardcoding emerald/red
  and picks up `--tool-status-*`.
- `ConnectSourceCard` adopts `AddToolsCard`'s add-icon token, hover and
  description leading.

2896 tests pass; tsc, eslint, prettier and build are clean. The e2e suite
was not run — no local Chromium.

Signed-off-by: Anna Effort <anna.effort@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants