This commit is contained in:
Manav Rathi 2025-01-14 14:16:05 +05:30
parent b41909477e
commit 62edaa62d8
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions

View File

@ -64,7 +64,6 @@ declare module "@mui/material/styles" {
text: Strength;
fill: FillStrength;
stroke: Strength;
shadows: Shadows;
accent: ColorStrength;
warning: ColorStrength;
danger: ColorStrength;
@ -76,7 +75,6 @@ declare module "@mui/material/styles" {
text?: Partial<Strength>;
fill?: Partial<FillStrength>;
stroke?: Partial<StrokeStrength>;
shadows?: Partial<Shadows>;
accent?: Partial<ColorStrength>;
warning?: Partial<ColorStrength>;
danger?: Partial<ColorStrength>;
@ -158,8 +156,8 @@ declare module "@mui/material/styles" {
overlayIndicatorMuted: string;
};
/**
* MUI as of v6 does not allow customizing the shadows easily. This is
* due for change: https://github.com/mui/material-ui/issues/44291.
* MUI as of v6 does not allow customizing shadows easily. This is due
* for change: https://github.com/mui/material-ui/issues/44291.
*
* Meanwhile use a custom variable. Since it is specific to the color
* scheme, keep it inside the palette.

View File

@ -120,8 +120,8 @@ export type ColorAccentType = "auth" | "photos";
*
* - Custom colors (even if they're not PaletteColors) go within the palette.
*
* - Non-color tokens that depend on the color scheme (e.g. drop shadows) also
* go within the palette so that they can be made color scheme specific.
* - Non-color tokens that depend on the color scheme (e.g. box shadows) also go
* within the palette so that they can be made color scheme specific.
*
* - All other custom variables remain within the top level theme.
*/