import { Palette } from './createPalette'; import { Overwrite, Omit } from '..'; import { CSSProperties } from './withStyles'; export type ThemeStyle = | 'display1' | 'display2' | 'display3' | 'display4' | 'headline' | 'title' | 'subheading' | 'body1' | 'body2' | 'caption' | 'button'; export interface FontStyle extends Required<{ fontFamily: CSSProperties['fontFamily']; fontSize: number; fontWeightLight: CSSProperties['fontWeight']; fontWeightRegular: CSSProperties['fontWeight']; fontWeightMedium: CSSProperties['fontWeight']; }> {} export interface FontStyleOptions extends Partial { htmlFontSize?: number; allVariants?: CSSProperties; } export type TypographyStyle = Required< Pick > & Partial>; export interface TypographyStyleOptions extends Partial {} export interface TypographyUtils { pxToRem: (px: number) => string; } export interface Typography extends Record, FontStyle, TypographyUtils {} export interface TypographyOptions extends Partial & FontStyleOptions> {} export default function createTypography( palette: Palette, typography: TypographyOptions | ((palette: Palette) => TypographyOptions), ): Typography;