From bef05478795ac565a7643f3f10929b26f29f2486 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Sat, 18 Nov 2023 15:54:52 -0800 Subject: [PATCH] refactor: use better colors for dynamic badge --- .github/workflows/unlighthouse.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unlighthouse.yaml b/.github/workflows/unlighthouse.yaml index 43ea914..b08d606 100644 --- a/.github/workflows/unlighthouse.yaml +++ b/.github/workflows/unlighthouse.yaml @@ -97,7 +97,7 @@ jobs: const formatScore = score => `${Math.round(score * 100)} (${score})`; const getEmoji = score => score >= 0.9 ? '🟢' : score >= 0.5 ? '🟠' : '🔴'; - const getColor = score => score >= 0.9 ? 'green' : score >= 0.5 ? 'orange' : 'red'; + const getColor = score => score >= 0.9 ? '4c1' : score >= 0.5 ? 'ffa400' : 'eb0f00'; const score = res => `${getEmoji(res)} ${formatScore(res)}`;