Created
June 7, 2020 00:32
-
-
Save yudium/6ab087feb8511ab708521d39130275a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { ThemeProvider } from 'styled-components'; | |
export const themes = { | |
light: { | |
// TODO | |
}, | |
dark: { | |
foreground: { | |
primary: '#adb5bd', | |
secondary: '#868e96', | |
tertiary: 'white', | |
}, | |
background: { | |
primary: '#212121', | |
secondary: '#343a40', | |
tertiary: '#007bff', | |
}, | |
border: { | |
primary: '#555555', | |
} | |
}, | |
}; | |
export const Theme = ({ children, choice }) => ( | |
<ThemeProvider theme={themes[choice]}> | |
{children} | |
</ThemeProvider> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment