Created
April 24, 2018 21:01
-
-
Save pedronauck/a0159d1246df56c69a3596d71016d650 to your computer and use it in GitHub Desktop.
lib to add responsive css-in-js
This file contains 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
import styled from 'react-emotion' | |
import { rescss } from 'rescss' | |
const mq = resprops([ | |
'@media(min-width: 420px)', | |
'@media(min-width: 920px)', | |
'@media(min-width: 1120px)' | |
]) | |
const Text = styled('div')` | |
font-size: ${mq('10px', '14px', '18px')}; | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment