Skip to content

Commit 6ea21c2

Browse files
committed
colors added status
Signed-off-by: FaheemOnHub <faheemmushtaq89@gmail.com>
1 parent c9bd721 commit 6ea21c2

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

src/theme/palette.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ declare module '@mui/material/styles' {
169169
alt: string;
170170
};
171171
};
172+
status: {
173+
success: string;
174+
warning: string;
175+
error: string;
176+
info: string;
177+
};
172178
}
173179

174180
// surface tokens need to have enough contrast
@@ -261,6 +267,13 @@ declare module '@mui/material/styles' {
261267
alt: string;
262268
};
263269
};
270+
271+
status: {
272+
success: string;
273+
warning: string;
274+
error: string;
275+
info: string;
276+
};
264277
}
265278
}
266279

@@ -416,6 +429,12 @@ export const lightModePalette: PaletteOptions = {
416429
default: Colors.charcoal[40],
417430
alt: Colors.charcoal[40]
418431
}
432+
},
433+
status: {
434+
success: Colors.notificationColors.success.main,
435+
warning: Colors.notificationColors.warning.main,
436+
error: Colors.notificationColors.error.main,
437+
info: Colors.notificationColors.info.main
419438
}
420439
};
421440

@@ -567,5 +586,11 @@ export const darkModePalette: PaletteOptions = {
567586
default: Colors.accentGrey[100],
568587
alt: Colors.keppel[40]
569588
}
589+
},
590+
status: {
591+
success: Colors.notificationColors.success.main,
592+
warning: Colors.notificationColors.warning.main,
593+
error: Colors.notificationColors.error.main,
594+
info: Colors.notificationColors.info.main
570595
}
571596
};

src/theme/theme.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@ export const createCustomTheme = (mode: PaletteMode, primitives?: PrimitivePalet
297297
default: alpha(p.foreground, 0.9),
298298
alt: alpha(p.foreground, 0.8)
299299
}
300+
},
301+
status: {
302+
success: Colors.notificationColors.success.main,
303+
warning: Colors.notificationColors.warning.main,
304+
error: Colors.notificationColors.error.main,
305+
info: Colors.notificationColors.info.main
300306
}
301307
}
302308
: {};

0 commit comments

Comments
 (0)