Skip to content

Commit 18c8034

Browse files
authored
feat: Update AQI background colors to match airnow.gov (#589)
1 parent 3857616 commit 18c8034

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/clock-weather-card.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@ export class ClockWeatherCard extends LitElement {
509509
if (aqi == null) {
510510
return null
511511
}
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'
512+
if (aqi <= 50) return '#00FF00'
513+
if (aqi <= 100) return '#FFFF00'
514+
if (aqi <= 150) return '#FF8C00'
515+
if (aqi <= 200) return '#FF0000'
516+
if (aqi <= 300) return '#9400D3'
517+
return '#8B0000'
518518
}
519519

520520
private getSun (): HassEntityBase | undefined {

0 commit comments

Comments
 (0)