style: reduce frontend visual effects

This commit is contained in:
zv
2026-06-04 20:10:19 +02:00
parent 9395659f07
commit cdce40e69c
12 changed files with 63 additions and 114 deletions

View File

@@ -184,13 +184,13 @@ export function getWeatherDescription(station: SynopStation, language: Language
return translate(language, "weather.calm");
}
export function moodGradient(mood: WeatherMood) {
export function moodAccentClass(mood: WeatherMood) {
return {
warm: "from-blue-500 via-blue-700 to-slate-900",
cloudy: "from-slate-600 via-slate-700 to-slate-900",
wind: "from-slate-500 via-blue-700 to-slate-900",
cold: "from-blue-300 via-slate-500 to-slate-800",
night: "from-slate-800 via-slate-900 to-slate-950",
mild: "from-blue-500 via-slate-700 to-slate-900",
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];
}