Skip to content

Commit

Permalink
Change text contrast colours for forecast hazard number
Browse files Browse the repository at this point in the history
  • Loading branch information
kellpossible committed Sep 10, 2023
1 parent cb8e476 commit 5bf1b68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/templates/forecast.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
{%- endmacro %}
{% macro hazard_rating_style(hazard_value) -%}
{% if not hazard_value -%}
text-white bg-[#ccccccff]
text-black bg-[#ccccccff]
{%- elif hazard_value == "low" -%}
text-black bg-[#57bb51ff]
text-white bg-[#57bb51ff]
{%- elif hazard_value == "moderate" -%}
text-black bg-[#fee85bff]
{%- elif hazard_value == "considerable" -%}
text-black bg-[#fd923aff]
text-white bg-[#fd923aff]
{%- elif hazard_value == "high" -%}
text-black bg-[#fc3329ff]
text-white bg-[#fc3329ff]
{%- elif hazard_value == "extreme" -%}
text-white bg-black
{%- endif -%}
Expand Down

0 comments on commit 5bf1b68

Please sign in to comment.