Files
goTorrent/torrent-project/node_modules/material-ui/styles/createMuiTheme.d.ts

32 lines
951 B
TypeScript

import { Breakpoints, BreakpointsOptions } from './createBreakpoints';
import { Mixins } from './createMixins';
import { Palette } from './createPalette';
import { Shadows } from './shadows';
import { Spacing } from './spacing';
import { Transitions } from './transitions';
import { Typography, TypographyOptions } from './createTypography';
import { ZIndex } from './zIndex';
export interface ThemeOptions {
breakpoints?: Partial<BreakpointsOptions> & Partial<Breakpoints>;
mixins?: Partial<Mixins>;
palette?: Partial<Palette>;
typography?: TypographyOptions | ((palette: Palette) => TypographyOptions);
}
export type Theme<T = {}> = {
direction: 'ltr' | 'rtl';
palette: Palette;
typography: Typography;
mixins: Mixins;
breakpoints: Breakpoints;
shadows: Shadows;
transitions: Transitions;
spacing: Spacing;
zIndex: ZIndex;
} & T;
export default function createMuiTheme<T = {}>(
options?: ThemeOptions & T
): Theme<T>;