UNPKG

material-ui-cordova

Version:

React components that implement Google's Material Design.

40 lines (36 loc) 1.17 kB
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'; import { StyleRules } from './withStyles' import { Overrides } from './overrides' export interface ThemeOptions { breakpoints?: Partial<BreakpointsOptions> & Partial<Breakpoints>; mixins?: Partial<Mixins>; palette?: Partial<Palette>; typography?: TypographyOptions | ((palette: Palette) => TypographyOptions); shadows?: Shadows; transitions?: Partial<Transitions>; spacing?: Partial<Spacing>; zIndex?: Partial<ZIndex>; overrides?: Overrides; } export type Theme = { direction: 'ltr' | 'rtl'; palette: Palette; typography: Typography; mixins: Mixins; breakpoints: Breakpoints; shadows: Shadows; transitions: Transitions; spacing: Spacing; zIndex: ZIndex; overrides?: Overrides; }; export default function createMuiTheme( options?: ThemeOptions ): Theme;