Files
react.dev/examples/context/theme-detailed-theme-context.js
2018-04-29 16:23:25 -07:00

16 lines
274 B
JavaScript

export const themes = {
light: {
foreground: '#000000',
background: '#eeeeee',
},
dark: {
foreground: '#ffffff',
background: '#222222',
},
};
// highlight-range{1-3}
export const ThemeContext = React.createContext(
themes.dark // default value
);