Files
KomediruzeckiandGitHub b9f9f6e82e feat(billing): plan card art for the light theme (#553)
The generated art shipped dark-only and said so in a comment: 8-16% mean
luminance, so under a light card it would have put dark text on a dark field.
A light-theme user saw four flat cards.

The light set is the dark set's own ring geometry re-painted rather than a
second generation run, which is the point -- a tier's card is recognisably
itself in both themes, and adding a tier means one image, not two art
directions. The recipe is in the CSS comment so the next tier can be made the
same way.

Derived and measured, never eyeballed. -auto-level was the obvious first choice
and is wrong: it normalises each image independently, so the faint Free card
came out with MORE ink than Basic, inverting the tier gradient. A black point at
6% is what stops the source's navy ground arriving as a grey wash, and the 0.50
multiply is what keeps the rings a tint rather than a block of azure. Result is
90-94% mean luminance across the four, the clean mirror of the dark set.

The shared rule moves to a bare [data-plan-card] with a var() fallback; each
theme block now sets only the four urls. Verified in a real browser against the
built CSS -- the same check that caught the `background` shorthand bug when this
art first shipped -- that both themes resolve to their own set.
2026-09-09 01:24:41 +02:00
..