From 4e66fb549a56aa896c24b914de000d096e19cb91 Mon Sep 17 00:00:00 2001 From: zv Date: Thu, 4 Jun 2026 20:22:42 +0200 Subject: [PATCH] style: finish frontend token cleanup --- app/globals.css | 4 ++++ components/charts/day-forecast-charts.tsx | 4 ++-- components/forecast/day-forecast-modal.tsx | 2 +- components/weather/weather-hero.tsx | 14 ++++++++++++-- lib/weather-utils.ts | 11 ----------- 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/app/globals.css b/app/globals.css index 43b9d93..1351b7b 100644 --- a/app/globals.css +++ b/app/globals.css @@ -88,6 +88,10 @@ select { .weather-scrollbar { scrollbar-gutter: stable; } + + .modal-overlay { + background: hsl(var(--foreground) / 0.55); + } } @supports (-moz-appearance: none) { diff --git a/components/charts/day-forecast-charts.tsx b/components/charts/day-forecast-charts.tsx index 01e8a79..4630369 100644 --- a/components/charts/day-forecast-charts.tsx +++ b/components/charts/day-forecast-charts.tsx @@ -27,7 +27,7 @@ export function DayForecastCharts({ hours }: { hours: HourlyForecast[] }) {

{t("forecast.temperatureChart")}

-

{t("forecast.temperatureChartDescription")}

+

{t("forecast.temperatureChartDescription")}

@@ -48,7 +48,7 @@ export function DayForecastCharts({ hours }: { hours: HourlyForecast[] }) {

{t("forecast.rainfallChart")}

-

{t("forecast.rainfallChartDescription")}

+

{t("forecast.rainfallChartDescription")}

diff --git a/components/forecast/day-forecast-modal.tsx b/components/forecast/day-forecast-modal.tsx index f21e738..604e085 100644 --- a/components/forecast/day-forecast-modal.tsx +++ b/components/forecast/day-forecast-modal.tsx @@ -84,7 +84,7 @@ export function DayForecastModal({ {day ? ( = 90) return translate(language, "weather.humid"); return translate(language, "weather.calm"); } - -export function moodAccentClass(mood: WeatherMood) { - return { - warm: "border-accent/25 bg-accent/10 text-accent", - cloudy: "border-border/70 bg-surface-muted text-muted", - wind: "border-border/70 bg-surface-muted text-muted", - cold: "border-border/70 bg-surface-muted text-muted", - night: "border-border/70 bg-surface-muted text-muted", - mild: "border-accent/25 bg-accent/10 text-accent", - }[mood]; -}