Last active
November 25, 2020 23:16
-
-
Save kenakingkong/4256385019c080108f92818a40da0133 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// src/media.js | |
import { createMedia } from "@artsy/fresnel" | |
const QueryBreakpoints = createMedia({ | |
breakpoints: { | |
xs: 0, | |
sm: 768, | |
md: 1000, | |
lg: 1200, | |
}, | |
}) | |
export const mediaStyles = QueryBreakpoints.createMediaStyle() | |
export const { Media, MediaContextProvider } = QueryBreakpoints |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment