ID:WORK-351Status:done
Theme-aware global chrome: selection, scrollbars, color-scheme
Three pieces of browser chrome currently ignore the theme. Make them token-driven and mode-aware.
Priority:mediumComplexity:simpleMilestone:v0.19.0
Three pieces of browser chrome currently ignore the theme. Make them token-driven and mode-aware.
Tracking started Jun 5 — check back for trends.
::selection rule exists globally (primary-tinted background, legible foreground) — replacing the native/OS blue currently shown on text selection.color-scheme is declared per mode on :root (light / dark) so native chrome — including the main scrollbar — tracks the theme instead of always rendering dark.scrollbar-color + a thin ::-webkit-scrollbar treatment), applied globally and to overflow containers (codegroup, datatable, drawer body, nav/sidebar). No hard-coded always-dark scrollbar.Add ::selection and :root { color-scheme } to global.css; define --rf-color-scrollbar*/reuse muted+surface tokens for scrollbar-color; apply a shared scrollbar treatment (custom-property-driven) to the known overflow surfaces. Keep it minimal — color-scheme alone fixes the native main-scroll "always dark"; explicit scrollbar styling refines the overflow containers.
packages/lumina/styles/global.css; existing per-container scrollbar rules in styles/layouts/{docs,plan}.csspackages/lumina/styles/dimensions/state.cssCompleted: 2026-06-05
Branch: claude/v0.19-lumina-polish
Added a "Theme-aware browser chrome" block to packages/lumina/styles/global.css:
color-scheme per mode on :root (light; dark under [data-theme="dark"] and @media (prefers-color-scheme: dark) unless forced light) — so the native main scrollbar + form widgets follow the theme instead of always rendering in the OS scheme.::selection — a subtle primary wash (color-mix(primary 22%, transparent)), background-only so element text stays legible; replaces the native/OS blue.scrollbar-width: thin + scrollbar-color: muted transparent on :root (both inherit, so every overflow container is covered) plus matching ::-webkit-scrollbar pseudo-elements. More specific per-container rules (e.g. the hidden docs sidebar) still win.color-scheme flips per mode; scrollbar-color uses muted (dark-overridden); ::selection uses primary (mode-aware).