mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-04 15:53:36 +08:00
31 lines
879 B
TypeScript
31 lines
879 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
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>;
|
|
}
|
|
}
|
|
declare module '@mui/material/Button' {
|
|
interface ButtonPropsColorOverrides {
|
|
light: true;
|
|
dark: true;
|
|
}
|
|
}
|
|
|
|
import type {} from '@mui/material/themeCssVarsAugmentation';
|