diff options
Diffstat (limited to '@linaria/website/src/styles/utils.js')
-rw-r--r-- | @linaria/website/src/styles/utils.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/@linaria/website/src/styles/utils.js b/@linaria/website/src/styles/utils.js new file mode 100644 index 0000000..42c088c --- /dev/null +++ b/@linaria/website/src/styles/utils.js @@ -0,0 +1,11 @@ +/* @flow */ + +export const breakpoints = { + medium: 640, + large: 1024, +}; + +export const media = Object.keys(breakpoints).reduce((acc, item) => { + acc[item] = `@media screen and (min-width: ${breakpoints[item]}px)`; + return acc; +}, {}); |