mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
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.