Added logging, changed some directory structure

This commit is contained in:
2018-01-13 21:33:40 -05:00
parent f079a5f067
commit 8e72ffb917
73656 changed files with 35284 additions and 53718 deletions

View File

@@ -0,0 +1,31 @@
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>;