Skip to content

fix(client): set --accent-rgb with --accent, and use the variables index.css defines - #180

Merged
jherforth merged 1 commit into
jherforth:mainfrom
mrramam:fix/palette-variables
Sep 17, 2026
Merged

jherforth merged 1 commit into
jherforth:mainfrom
mrramam:fix/palette-variables

Conversation

@mrramam

@mrramam mrramam commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

What

  • app.jsx and the Admin Panel preview set --accent at runtime but never --accent-rgb, so every rgba(var(--accent-rgb), x) tint stayed on the stylesheet's default purple while solid accent followed the pick. One helper, applyInterfaceColors, now writes all four variables in both places, with unit tests for the hex triplet.
  • The selection glow in WidgetContainer hardcoded a pink alpha and eleven other sites hardcoded the purple one. All 14 now read rgba(var(--accent-rgb), x), so one accent hue is on screen.
  • --text-color (23 uses), --text-muted (4) and --text-primary (1) are not defined anywhere; index.css defines --text and --text-secondary. Every use was on color, so it computed to inherit and mostly looked right by accident. The visible case was the color picker's hex input, whose #000 fallback sat on the dark card. Same root cause as HomeGlowPlugins Major update to main #13.

Testing

Client: 306 tests, check:i18n, vite build. Running on our production display since 2026-09-16.

…dex.css defines

app.jsx and AdminPanel set --accent at runtime but never --accent-rgb, so
every rgba(var(--accent-rgb), x) tint stayed on the stylesheet's default
purple while solid accent followed the pick. WidgetContainer hardcoded a
pink alpha for the selection glow and eleven other sites hardcoded the
purple one, so three accent hues could be on screen at once. One helper
now writes all four variables in both places, and every alpha tint reads
--accent-rgb.

--text-color, --text-muted and --text-primary are not defined anywhere;
index.css defines --text and --text-secondary. Every use was on `color`,
so the invalid declaration computed to inherit and mostly looked right
by accident. The one visible case was the color picker's hex input,
whose #000 fallback sat on the dark card. Same root cause as the
chore-metrics fix in HomeGlowPlugins: the vocabulary of the retired
substitute stylesheet had leaked into core.
@jherforth
jherforth merged commit 734ac4b into jherforth:main Sep 17, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in HomeGlow Kanban Sep 17, 2026
@jherforth jherforth added the bug Something isn't working label Sep 17, 2026
@jherforth jherforth added this to the 1.9 milestone Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants