You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
627 B

import {
colors,
sizes,
space,
font,
fontSizes,
lineHeights,
fontWeights,
borders,
borderWidths,
shadows,
} from '../theme'
import { NonNullishPartialRecord } from './non-nullish-partial-record.type'
export interface Theme {
colors: typeof colors;
sizes: typeof sizes;
borders: typeof borders;
space: typeof space;
fontSizes: typeof fontSizes;
lineHeights: typeof lineHeights;
fontWeights: typeof fontWeights;
font: typeof font;
shadows: typeof shadows;
borderWidths: typeof borderWidths;
}
export type ThemeOverride<T=Theme> = {
[key in keyof T]?: NonNullishPartialRecord<T[key]>
}