UNPKG

@theme-ui/css

Version:

Theme UI CSS lets you write style objects with responsive, theme-aware ergonomic shortcuts. This package powers the `sx` prop in Theme UI.

42 lines (34 loc) 966 B
import { Theme } from './types' 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?: boolean /** * Adds a global box-sizing: border-box style */ useBorderBox?: boolean /** * If false, does not save color mode as a localStorage value. */ useLocalStorage?: boolean }