UNPKG

@theme-ui/css

Version:

[![Minified Size on Bundlephobia](https://badgen.net/bundlephobia/minzip/@theme-ui/css)](https://bundlephobia.com/package/@theme-ui/css)

34 lines (33 loc) 1.02 kB
export interface ThemeUIConfig { /** * Enable/disable custom CSS properties/variables if lower browser * support is required (for eg. IE 11). * * References: https://theme-ui.com/color-modes/#turn-off-custom-properties */ useCustomProperties?: boolean; /** * Provide a value here to enable color modes */ initialColorModeName?: string; /** * Provide a value here to set a color mode for printing */ printColorModeName?: string; /** * Adds styles defined in theme.styles.root to the <html> element along with color and background-color */ useRootStyles?: boolean; /** * Initializes the color mode based on the prefers-color-scheme media query */ useColorSchemeMediaQuery?: 'system' | 'initial' | true | false; /** * Adds a global box-sizing: border-box style */ useBorderBox?: boolean; /** * If false, does not save color mode as a localStorage value. */ useLocalStorage?: boolean; }