diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-04 05:08:08 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-04 05:08:08 +0800 |
commit | 700b7068a157a0f9d3d6ce3f61150c2961d81617 (patch) | |
tree | 3e8d7df053ef2f3285bbcc5e45f2855a7853ee9b /packages/instant/src/style | |
parent | bce43a0050056195acb9c4890f57526985268da9 (diff) | |
download | dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.tar dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.tar.gz dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.tar.bz2 dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.tar.lz dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.tar.xz dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.tar.zst dexon-sol-tools-700b7068a157a0f9d3d6ce3f61150c2961d81617.zip |
Add styled-components with theme
Diffstat (limited to 'packages/instant/src/style')
-rw-r--r-- | packages/instant/src/style/theme.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/instant/src/style/theme.ts b/packages/instant/src/style/theme.ts new file mode 100644 index 000000000..838378c99 --- /dev/null +++ b/packages/instant/src/style/theme.ts @@ -0,0 +1,27 @@ +import * as styledComponents from 'styled-components'; + +const { + default: styled, + css, + injectGlobal, + keyframes, + ThemeProvider, +} = styledComponents as styledComponents.ThemedStyledComponentsModule<IThemeInterface>; + +export interface IThemeInterface { + primaryColor: string; + black: string; + white: string; + darkGrey: string; + lightGrey: string; +} + +export const theme: IThemeInterface = { + primaryColor: '#512D80', + black: 'black', + lightGrey: '#999999', + darkGrey: '#333333', + white: 'white', +}; + +export { styled, css, injectGlobal, keyframes, ThemeProvider }; |