From 8be88461b4d5388b5c9035a7e906ccff05453323 Mon Sep 17 00:00:00 2001 From: Anurag Hazra Date: Sun, 26 Jul 2020 14:44:20 +0530 Subject: [PATCH] chore: change color codes to lowercase (#198) * chore: change color codes to lowercase * fix: tests --- tests/renderRepoCard.test.js | 2 +- tests/renderStatsCard.test.js | 2 +- tests/renderTopLanguages.test.js | 2 +- themes/index.js | 28 ++++++++++++++-------------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/renderRepoCard.test.js b/tests/renderRepoCard.test.js index 9aea695e1a8c9..f2b2d9f8be8d3 100644 --- a/tests/renderRepoCard.test.js +++ b/tests/renderRepoCard.test.js @@ -154,7 +154,7 @@ describe("Test renderRepoCard", () => { expect(iconClassStyles.fill).toBe("#586069"); expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( "fill", - "#FFFEFE" + "#fffefe" ); }); diff --git a/tests/renderStatsCard.test.js b/tests/renderStatsCard.test.js index caa3167dc3eab..04cdadbcd121b 100644 --- a/tests/renderStatsCard.test.js +++ b/tests/renderStatsCard.test.js @@ -104,7 +104,7 @@ describe("Test renderStatsCard", () => { expect(iconClassStyles.fill).toBe("#4c71f2"); expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( "fill", - "#FFFEFE" + "#fffefe" ); }); diff --git a/tests/renderTopLanguages.test.js b/tests/renderTopLanguages.test.js index 1b697461723c9..5ae9f0707207e 100644 --- a/tests/renderTopLanguages.test.js +++ b/tests/renderTopLanguages.test.js @@ -139,7 +139,7 @@ describe("Test renderTopLanguages", () => { expect(langNameStyles.fill).toBe("#333"); expect(queryByTestId(document.body, "card-bg")).toHaveAttribute( "fill", - "#FFFEFE" + "#fffefe" ); }); diff --git a/themes/index.js b/themes/index.js index ac6d5938f02aa..90a59c26149c7 100644 --- a/themes/index.js +++ b/themes/index.js @@ -3,13 +3,13 @@ const themes = { title_color: "2f80ed", icon_color: "4c71f2", text_color: "333", - bg_color: "FFFEFE", + bg_color: "fffefe", }, default_repocard: { title_color: "2f80ed", icon_color: "586069", // icon color is different text_color: "333", - bg_color: "FFFEFE", + bg_color: "fffefe", }, dark: { title_color: "fff", @@ -87,18 +87,18 @@ const themes = { title_color: "41b883", icon_color: "41b883", text_color: "273849", - bg_color: "FFFEFE", + bg_color: "fffefe", }, "shades-of-purple": { - title_color: "FAD000", - icon_color: "B362FF", - text_color: "A599E9", - bg_color: "2D2B55", + title_color: "fad000", + icon_color: "b362ff", + text_color: "a599e9", + bg_color: "2d2b55", }, nightowl: { - title_color: "C792EA", - icon_color: "FFEB95", - text_color: "7FDBCA", + title_color: "c792ea", + icon_color: "ffeb95", + text_color: "7fdbca", bg_color: "011627", }, buefy: { @@ -108,10 +108,10 @@ const themes = { bg_color: "ffffff", }, "blue-green": { - title_color: "2F97C1", - icon_color: "F5B700", - text_color: "0CF574", - bg_color: "040F0F", + title_color: "2f97c1", + icon_color: "f5b700", + text_color: "0cf574", + bg_color: "040f0f", }, };