Skip to content

Commit 385fe1d

Browse files
committed
updated colors
1 parent 22e5d1b commit 385fe1d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/challenges.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ export const ORDER_BY = {
2222
export function fixColorStyle(registrant) {
2323
/* eslint-disable no-param-reassign */
2424
// set default color
25-
registrant.colorStyle = 'color: #999999';
25+
registrant.colorStyle = 'color: #555555'; // grey
2626
if (registrant.rating) {
2727
if (registrant.rating >= 2200) {
28-
registrant.colorStyle = 'color: #EE0000';
28+
registrant.colorStyle = 'color: #EA1900'; // red
2929
} else if (registrant.rating >= 1500 && registrant.rating <= 2199) {
30-
registrant.colorStyle = 'color: #DDCC00';
30+
registrant.colorStyle = 'color: #F2C900'; // yellow
3131
} else if (registrant.rating >= 1200 && registrant.rating <= 1499) {
32-
registrant.colorStyle = 'color: #6666FF';
32+
registrant.colorStyle = 'color: #4C50D9'; // blue
3333
} else if (registrant.rating >= 900 && registrant.rating <= 1199) {
34-
registrant.colorStyle = 'color: #00A900';
34+
registrant.colorStyle = 'color: #258205'; // green
3535
}
3636
}
3737
/* eslint-disable no-param-reassign */

0 commit comments

Comments
 (0)