Files
Jeremy a33963df85 fix: tint the insights hero by the verdict, not always green
The "should I buy right now?" card had a hardcoded teal gradient, so a red
"Wait — it's expensive right now" sat on a card that read as good news.

The verdict now picks a Filament palette (great/good -> primary, average/unknown
-> gray, pricey -> warning, wait -> danger) which drives the gradient, the ring,
the heading, the verdict text and the percentile pill together.

Colours go through Filament's runtime CSS variables rather than text-*/bg-*
utilities, since the palettes are injected by the panel and are not in the
compiled CSS. The shades are also set as local custom properties on the card so
the text keeps a dark-mode variant, which an inline style cannot carry on its own.

The inline border-color this replaces was dead: the card uses ring-1, not a
border, so it never rendered. It is now a --tw-ring-color override, which also
tints the outline in dark mode.

Verified by screenshotting three real products: wait renders red, pricey amber,
great teal as before.
2026-08-08 19:11:52 +10:00
..
2026-07-02 13:55:58 +10:00
2026-07-02 16:53:34 +10:00
2026-06-09 15:07:40 +10:00
2026-07-02 13:55:58 +10:00
2026-07-02 16:53:34 +10:00