Skip to content

feat(ui): put the white cards on a light-gray page and darken the sidebar a step - #1205

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/gray-page-ground
Oct 19, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:feature/gray-page-ground

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

The page ground was white, like the cards on it, so the cards didn't stand out. This puts them on a light-gray page and darkens the sidebar a step to keep it apart. Light theme only; the dark theme is unchanged.

  • Page ground: --background changes from oklch(1 0 0) to oklch(0.985 0.001 106.4) (#fafaf9), the ground of the Visibility v2 mockup.
  • Sidebar: --sidebar changes from 0.967 to 0.945, and --sidebar-accent (active/hover item) from 0.93 to 0.91. The page still reads lighter than the menu, and the active item still shows.
  • Surfaces that should stay white now use the card color instead of the page's:
    • ui/dialog.tsx and ui/sheet.tsx: bg-background → bg-card.
    • ui/tabs.tsx: the active tab, data-active:bg-background → data-active:bg-card. The dark override is unchanged.
    • Action Center tables (action/signal/history/kpi-table.tsx): the wrapper gets bg-card. Before, these tables had no ground of their own and would have shown the gray page through.
    • Actions table's sticky menu column: bg-card, with its hover mix based on --card, so it doesn't look cut off from the table.

The product owner picked these values from a local preview.

Related issue

None.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. In the light theme, open Visibility › Insights (All), Action Center › Actions and Prompts › Tracked Prompts.
    • The page is a light gray, the sidebar a little darker, and cards and tables are white.
  2. Open an action (the right sheet) and any dialog: both are white.
  3. Hover an Actions row: the "…" column takes the row's hover tint and isn't a different color from the table.
  4. Switch to the dark theme: nothing changes there.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/) — 0 errors, the 6 existing warnings
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

Also run: yarn test (198 files, 1666 tests) and yarn build (placeholder env from ci.yml). Checked in the browser in light and dark, at 1440 and 1024 px.

🤖 Generated with Claude Code

…ebar a step

The page ground was white like the cards on it, so they didn't stand out.
It's now #fafaf9, the ground of the Visibility v2 mockup, and the sidebar
one step darker (oklch 0.967 → 0.945, its active item 0.93 → 0.91) so the
page still reads lighter than the menu.

What should stay white now says so: dialogs, sheets and the active tab use
the card color instead of the page's, and the Action Center tables (and the
Actions table's sticky menu column) get a white card ground instead of
showing the page through. The dark theme is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@cihan-gyk

Copy link
Copy Markdown
Collaborator Author

@gkhngyk Small light-theme change the product owner picked from a local preview: the page ground becomes #fafaf9 (the Visibility v2 mockup's) and the sidebar a step darker, so the white cards stand out. Dialogs, sheets, the active tab and the Action Center tables use the card color so they stay white. Dark theme unchanged, no logic changes.

@gkhngyk gkhngyk 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.

Tested on main with #1206, #1207 and #1209: all web tests pass (1,673) and typecheck is clean. Light theme only; dark mode is unchanged. Cards, tables, dialogs, sheets and the active tab now use the card color, so they stay white on the new page ground.

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