init push
This commit is contained in:
57
web/packages/themes/theme.d.ts
vendored
Normal file
57
web/packages/themes/theme.d.ts
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
import type { PaletteColorChannel } from '@mui/material';
|
||||
|
||||
declare module '@mui/material/styles' {
|
||||
interface TypeText {
|
||||
tertiary: string;
|
||||
}
|
||||
|
||||
interface Palette {
|
||||
light: Palette['primary'] & PaletteColorChannel;
|
||||
dark: Palette['primary'] & PaletteColorChannel;
|
||||
disabled: Palette['primary'] & PaletteColorChannel;
|
||||
}
|
||||
|
||||
// allow configuration using `createTheme`
|
||||
interface PaletteOptions {
|
||||
light?: PaletteOptions['primary'] & Partial<PaletteColorChannel>;
|
||||
dark?: PaletteOptions['primary'] & Partial<PaletteColorChannel>;
|
||||
disabled?: PaletteOptions['primary'] & Partial<PaletteColorChannel>;
|
||||
text?: Partial<TypeText>;
|
||||
table?: Partial<TypeTable>;
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@mui/material/Button' {
|
||||
interface ButtonPropsColorOverrides {
|
||||
light: true;
|
||||
dark: true;
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@mui/material/Pagination' {
|
||||
interface PaginationPropsColorOverrides {
|
||||
light: true;
|
||||
dark: true;
|
||||
}
|
||||
}
|
||||
|
||||
import type {} from '@mui/material/themeCssVarsAugmentation';
|
||||
|
||||
declare module '@mui/material/styles' {
|
||||
interface TypeBackground {
|
||||
paper2?: string;
|
||||
paper3?: string;
|
||||
footer?: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@mui/material/styles' {
|
||||
interface TypeTable {
|
||||
head: {
|
||||
background: string;
|
||||
};
|
||||
cell: {
|
||||
border: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user