We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3857616 commit 18c8034Copy full SHA for 18c8034
src/clock-weather-card.ts
@@ -509,12 +509,12 @@ export class ClockWeatherCard extends LitElement {
509
if (aqi == null) {
510
return null
511
}
512
- if (aqi <= 50) return 'green'
513
- if (aqi <= 100) return 'yellowgreen'
514
- if (aqi <= 150) return 'orange'
515
- if (aqi <= 200) return 'red'
516
- if (aqi <= 300) return 'purple'
517
- return 'maroon'
+ if (aqi <= 50) return '#00FF00'
+ if (aqi <= 100) return '#FFFF00'
+ if (aqi <= 150) return '#FF8C00'
+ if (aqi <= 200) return '#FF0000'
+ if (aqi <= 300) return '#9400D3'
+ return '#8B0000'
518
519
520
private getSun (): HassEntityBase | undefined {
0 commit comments