54 lines
1.6 KiB
TypeScript
54 lines
1.6 KiB
TypeScript
import { Breakpoints, BreakpointsOptions } from './createBreakpoints';
|
|
import { Mixins, MixinsOptions } from './createMixins';
|
|
import { Palette, PaletteOptions } from './createPalette';
|
|
import { Typography, TypographyOptions } from './createTypography';
|
|
import { Shadows } from './shadows';
|
|
import { Shape, ShapeOptions } from './shape';
|
|
import { Spacing, SpacingOptions } from './createSpacing';
|
|
import { Transitions, TransitionsOptions } from './transitions';
|
|
import { ZIndex, ZIndexOptions } from './zIndex';
|
|
import { Overrides } from './overrides';
|
|
import { ComponentsProps } from './props';
|
|
|
|
export type Direction = 'ltr' | 'rtl';
|
|
|
|
export interface ThemeOptions {
|
|
shape?: ShapeOptions;
|
|
breakpoints?: BreakpointsOptions;
|
|
direction?: Direction;
|
|
mixins?: MixinsOptions;
|
|
overrides?: Overrides;
|
|
palette?: PaletteOptions;
|
|
props?: ComponentsProps;
|
|
shadows?: Shadows;
|
|
spacing?: SpacingOptions;
|
|
transitions?: TransitionsOptions;
|
|
typography?: TypographyOptions | ((palette: Palette) => TypographyOptions);
|
|
zIndex?: ZIndexOptions;
|
|
unstable_strictMode?: boolean;
|
|
}
|
|
|
|
export interface Theme {
|
|
shape: Shape;
|
|
breakpoints: Breakpoints;
|
|
direction: Direction;
|
|
mixins: Mixins;
|
|
overrides?: Overrides;
|
|
palette: Palette;
|
|
props?: ComponentsProps;
|
|
shadows: Shadows;
|
|
spacing: Spacing;
|
|
transitions: Transitions;
|
|
typography: Typography;
|
|
zIndex: ZIndex;
|
|
unstable_strictMode?: boolean;
|
|
}
|
|
|
|
/**
|
|
* @deprecated
|
|
* Use `import { createTheme } from '@material-ui/core/styles'` instead.
|
|
*/
|
|
export function createMuiTheme(options?: ThemeOptions, ...args: object[]): Theme;
|
|
|
|
export default function createTheme(options?: ThemeOptions, ...args: object[]): Theme;
|