feat(frontend): new color palette for graphics

This commit is contained in:
leandrofars 2023-12-13 09:42:38 -03:00
parent 0e08034383
commit 9c6b42f267
3 changed files with 21 additions and 3 deletions

View File

@ -59,7 +59,16 @@ const useChartOptions = (labels,title) => {
theme.palette.success.main, theme.palette.success.main,
theme.palette.error.main, theme.palette.error.main,
] ]
}else{ }else if(title === "Vendors"){
options.colors = [
theme.palette.graphics.dark,
theme.palette.graphics.darkest,
theme.palette.graphics.light,
theme.palette.graphics.main,
theme.palette.graphics.lightest,
]
}
else{
options.colors = [ options.colors = [
theme.palette.primary.main, theme.palette.primary.main,
theme.palette.info.main, theme.palette.info.main,

View File

@ -64,7 +64,15 @@ export const error = withAlphas({
lightest: '#FEF3F2', lightest: '#FEF3F2',
light: '#FEE4E2', light: '#FEE4E2',
main: '#F04438', main: '#F04438',
dark: '#B42318', dark: '#29ADB2',
darkest: '#7A271A', darkest: '#7A271A',
contrastText: '#FFFFFF' contrastText: '#FFFFFF'
}); });
export const graphics = withAlphas({
lightest: '#9EC8B9',
light: '#706233',
main: '#1B4242',
dark: '#FFC5C5',
darkest: '#7071E8'
});

View File

@ -1,6 +1,6 @@
import { common } from '@mui/material/colors'; import { common } from '@mui/material/colors';
import { alpha } from '@mui/material/styles'; import { alpha } from '@mui/material/styles';
import { error, indigo, info, neutral, success, warning } from './colors'; import { error, indigo, info, neutral, success, warning, graphics } from './colors';
export function createPalette() { export function createPalette() {
return { return {
@ -18,6 +18,7 @@ export function createPalette() {
}, },
divider: '#F2F4F7', divider: '#F2F4F7',
error, error,
graphics,
info, info,
mode: 'light', mode: 'light',
neutral, neutral,