chore: readme and docs

feature: responsiveness
This commit is contained in:
Andre Neves
2021-08-05 14:58:19 -04:00
parent df889ca69a
commit 23fd830a7f
11 changed files with 1107 additions and 874 deletions

23
utils.js Normal file
View File

@@ -0,0 +1,23 @@
import { css } from 'styled-components';
// Media Queries
// Leverage the `media` function inside the theme
// to target specific screen sizes.
export const sizes = {
mobile: 320,
tablet: 768,
largeTablet: 920,
desktop: 1024,
largeDesktop: 1280,
};
export const media = Object.keys(sizes).reduce((acc, label) => {
acc[label] = (...args) => css`
@media (min-width: ${sizes[label]}px) {
${css(...args)}
}
`;
return acc;
}, {});