Skip to content

fix(chore-metrics): use the core --text variable, not --text-color - #13

Merged
jherforth merged 1 commit into
jherforth:mainfrom
mrramam:fix/chore-metrics-core-text-var
Sep 15, 2026
Merged

jherforth merged 1 commit into
jherforth:mainfrom
mrramam:fix/chore-metrics-core-text-var

Conversation

@mrramam

@mrramam mrramam commented Sep 15, 2026

Copy link
Copy Markdown

Companion to jherforth/HomeGlow#175, which fixes jherforth/HomeGlow#174 — that PR makes the real stylesheet reach plugin iframes for the first time, which is what retires --text-color. Safe to merge before it: while the old substitute is still being served neither name resolves here, so the declared #333 fallback applies either way.

--text-color is not defined by client/src/index.css, which is the stylesheet plugins link as /index.css. It came from a hardcoded substitute the backend served whenever it could not find the real file which was always, in any container deployment, because the backend image cannot contain client source. That substitute used a different vocabulary, and this is the only plugin written against it.

With the real stylesheet now served, --text-color resolves to nothing and the declared fallback #333 applies: dark grey text on --card-bg #2a2a2a. The core name is --text.

The literal fallback stays as-is; it only applies if the stylesheet fails to load entirely.

--text-color is not defined by client/src/index.css, which is the stylesheet
plugins link as /index.css. It came from a hardcoded substitute the backend
served whenever it could not find the real file — which was always, in any
container deployment, because the backend image cannot contain client source.
That substitute used a different vocabulary, and this is the only plugin written
against it.

With the real stylesheet now served, --text-color resolves to nothing and the
declared fallback #333 applies: dark grey text on --card-bg #2a2a2a. The core
name is --text.

The literal fallback stays as-is; it only applies if the stylesheet fails to
load entirely.
@jherforth
jherforth merged commit 6b6eeef into jherforth:main Sep 15, 2026
@mrramam
mrramam deleted the fix/chore-metrics-core-text-var branch September 16, 2026 01:07
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.

Plugins never receive the real theme stylesheet in a container; /index.css serves a substitute with different variable names

3 participants