mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
16 lines
274 B
JavaScript
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
|
|
);
|