add fixed color palette option
This commit is contained in:
parent
222041ce35
commit
0354ccbc1e
|
@ -20,6 +20,13 @@ declare module '@mui/material/styles' {
|
|||
muted?: string;
|
||||
faint?: string;
|
||||
}
|
||||
|
||||
interface FixedColor {
|
||||
white: string;
|
||||
black: string;
|
||||
strokeMutedWhite: string;
|
||||
}
|
||||
|
||||
interface Palette {
|
||||
accent: PaletteColor;
|
||||
fill: PaletteColor;
|
||||
|
@ -27,6 +34,7 @@ declare module '@mui/material/styles' {
|
|||
blur: BlurStrength;
|
||||
danger: PaletteColor;
|
||||
stroke: TypeText;
|
||||
fixed: FixedColor;
|
||||
}
|
||||
interface PaletteOptions {
|
||||
accent?: PaletteColorOptions;
|
||||
|
@ -35,6 +43,7 @@ declare module '@mui/material/styles' {
|
|||
backdrop?: PaletteColorOptions;
|
||||
blur?: BlurStrengthOptions;
|
||||
stroke?: Partial<TypeText>;
|
||||
fixed?: Partial<FixedColor>;
|
||||
}
|
||||
|
||||
interface TypographyVariants {
|
||||
|
@ -301,6 +310,11 @@ const darkThemeOptions = createTheme({
|
|||
muted: '48px',
|
||||
faint: '24px',
|
||||
},
|
||||
fixed: {
|
||||
white: '#fff',
|
||||
black: '#000',
|
||||
strokeMutedWhite: 'rgba(255, 255, 255, 0.48)',
|
||||
},
|
||||
text: {
|
||||
primary: '#fff',
|
||||
secondary: 'rgba(255, 255, 255, 0.7)',
|
||||
|
|
|
@ -20,6 +20,12 @@ declare module '@mui/material/styles' {
|
|||
muted?: string;
|
||||
faint?: string;
|
||||
}
|
||||
|
||||
interface FixedColor {
|
||||
white: string;
|
||||
black: string;
|
||||
strokeMutedWhite: string;
|
||||
}
|
||||
interface Palette {
|
||||
accent: PaletteColor;
|
||||
fill: PaletteColor;
|
||||
|
@ -27,6 +33,7 @@ declare module '@mui/material/styles' {
|
|||
blur: BlurStrength;
|
||||
danger: PaletteColor;
|
||||
stroke: TypeText;
|
||||
fixed: FixedColor;
|
||||
}
|
||||
interface PaletteOptions {
|
||||
accent?: PaletteColorOptions;
|
||||
|
@ -35,6 +42,7 @@ declare module '@mui/material/styles' {
|
|||
backdrop?: PaletteColorOptions;
|
||||
blur?: BlurStrengthOptions;
|
||||
stroke?: Partial<TypeText>;
|
||||
fixed?: Partial<FixedColor>;
|
||||
}
|
||||
|
||||
interface TypographyVariants {
|
||||
|
@ -301,6 +309,11 @@ const lightThemeOptions = createTheme({
|
|||
muted: '48px',
|
||||
faint: '24px',
|
||||
},
|
||||
fixed: {
|
||||
white: '#fff',
|
||||
black: '#000',
|
||||
strokeMutedWhite: 'rgba(255, 255, 255, 0.48)',
|
||||
},
|
||||
text: {
|
||||
primary: '#000',
|
||||
secondary: 'rgba(0, 0, 0, 0.6)',
|
||||
|
|
Loading…
Reference in a new issue