diff options
author | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-04-05 15:36:16 -0700 |
---|---|---|
committer | Nick Van Doorn <vandoorn.nick@gmail.com> | 2019-04-05 15:36:16 -0700 |
commit | 2f1eaba7726ba31c0bc5af3fef185e5de8ff262e (patch) | |
tree | c6a23533704e75744019e19ef92281bbe0098c2a /src/components | |
parent | aef00b7ede3167290ef64feacc7e795463428547 (diff) |
Define themes in globals file
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/globals.js | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/src/components/globals.js b/src/components/globals.js index a88893b..6bbc80c 100644 --- a/src/components/globals.js +++ b/src/components/globals.js @@ -3,7 +3,7 @@ export const colours = { main: '#FFFFFF' } -export const margins = { +const margins = { xsm: 6, sm: 12, md: 28, @@ -11,17 +11,17 @@ export const margins = { xl: 75 } -export const transitions = { +const transitions = { hover: '0.4s cubic-bezier(0.7, 0, 0.3, 1)' } -export const radius = { +const radius = { sm: 8 } -export const fontStack = 'Helvetica Neue,Helvetica,Arial,sans-serif;' +const fontStack = 'Helvetica Neue,Helvetica,Arial,sans-serif;' -export const breakpoints = [ +const breakpoints = [ { breakpoint: '600px', size: '90%' @@ -39,3 +39,25 @@ export const breakpoints = [ size: '1100px' } ] + +export const mainTheme = { + colours, + fontStack, + transitions, + margins, + breakpoints, + radius +} + +const highContrastTheme = { + ...mainTheme, + colours: { + background: '#ffffff', + main: '#000000' + } +} + +export const themes = { + mainTheme, + highContrastTheme +} |