Skip to content

Commit 37825a0

Browse files
committed
fix: rename red palette to magenta and add true red palette
- Renamed existing red palette to magenta (pinkish-red hues) - Created new red palette based on #F91313 (notification error color) - Updated palette.ts to use magenta for error backgrounds - New red palette provides true red colors for error states Resolves #602 Signed-off-by: Jeet Burman <[email protected]>
1 parent 9491679 commit 37825a0

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

src/theme/colors/colors.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export const yellow = {
154154
10: '#663A00'
155155
};
156156

157-
export const red = {
157+
export const magenta = {
158158
70: '#FFF0F0',
159159
60: '#FFB3B9',
160160
50: '#FF6179',
@@ -164,6 +164,16 @@ export const red = {
164164
10: '#660624'
165165
};
166166

167+
export const red = {
168+
70: '#FFE6E6',
169+
60: '#FFADAD',
170+
50: '#FF7070',
171+
40: '#F91313',
172+
30: '#CC0F0F',
173+
20: '#8C0A0A',
174+
10: '#660707'
175+
};
176+
167177
export const redOrange = {
168178
70: '#E8BEB3',
169179
60: '#E1A999',

src/theme/colors/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export {
6161
green,
6262
jungleGreen,
6363
keppel,
64+
magenta,
6465
notificationColors,
6566
patternsBlue,
6667
primaryColor,

src/theme/palette.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -381,11 +381,11 @@ export const lightModePalette: PaletteOptions = {
381381
tertiary: Colors.yellow[70]
382382
},
383383
error: {
384-
default: Colors.red[30],
385-
hover: Colors.red[20],
386-
pressed: Colors.red[10],
387-
secondary: Colors.red[60],
388-
tertiary: Colors.red[70]
384+
default: Colors.magenta[30],
385+
hover: Colors.magenta[20],
386+
pressed: Colors.magenta[10],
387+
secondary: Colors.magenta[60],
388+
tertiary: Colors.magenta[70]
389389
},
390390
code: Colors.charcoal[90],
391391

@@ -406,7 +406,7 @@ export const lightModePalette: PaletteOptions = {
406406
info: Colors.blue[40],
407407
success: Colors.green[30],
408408
warning: Colors.yellow[30],
409-
error: Colors.red[30],
409+
error: Colors.magenta[30],
410410
neutral: {
411411
default: Colors.charcoal[40],
412412
alt: Colors.charcoal[40]
@@ -543,11 +543,11 @@ export const darkModePalette: PaletteOptions = {
543543
tertiary: Colors.yellow[10]
544544
},
545545
error: {
546-
default: Colors.red[40],
547-
hover: Colors.red[50],
548-
pressed: Colors.red[60],
549-
secondary: Colors.red[20],
550-
tertiary: Colors.red[10]
546+
default: Colors.magenta[40],
547+
hover: Colors.magenta[50],
548+
pressed: Colors.magenta[60],
549+
secondary: Colors.magenta[20],
550+
tertiary: Colors.magenta[10]
551551
},
552552
code: Colors.charcoal[10],
553553
constant: {
@@ -567,7 +567,7 @@ export const darkModePalette: PaletteOptions = {
567567
info: Colors.blue[40],
568568
success: Colors.green[40],
569569
warning: Colors.yellow[40],
570-
error: Colors.red[40],
570+
error: Colors.magenta[40],
571571
neutral: {
572572
default: Colors.accentGrey[100],
573573
alt: Colors.keppel[40]

0 commit comments

Comments
 (0)