Created
August 14, 2017 01:29
-
-
Save jeffschulthies/49904d10d607d2238f3ac776f2ce1152 to your computer and use it in GitHub Desktop.
aphrodite: React Skeleton Typography Port
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 { StyleSheet } from 'aphrodite/no-important' | |
const TypographyStyle = StyleSheet.create({ | |
h1: { | |
marginTop: '0', | |
marginBottom: '2rem', | |
fontWeight: '300', | |
fontSize: '4.0rem', | |
lineHeight: '1.2', | |
letterSpacing: '-.1rem', | |
'@media (min-width: 550px)': { | |
fontSize: '5.0rem' | |
} | |
}, | |
h2: { | |
marginTop: '0', | |
marginBottom: '2rem', | |
fontWeight: '300', | |
fontSize: '3.6rem', | |
lineHeight: '1.25', | |
letterSpacing: '-.1rem', | |
'@media (min-width: 550px)': { | |
fontSize: '4.2rem' | |
} | |
}, | |
h3: { | |
marginTop: '0', | |
marginBottom: '2rem', | |
fontWeight: '300', | |
fontSize: '3.0rem', | |
lineHeight: '1.3', | |
letterSpacing: '-.1rem', | |
'@media (min-width: 550px)': { | |
fontSize: '3.6rem' | |
} | |
}, | |
h4: { | |
marginTop: '0', | |
marginBottom: '2rem', | |
fontWeight: '300', | |
fontSize: '2.4rem', | |
lineHeight: '1.35', | |
letterSpacing: '-.08rem', | |
'@media (min-width: 550px)': { | |
fontSize: '3.0rem' | |
} | |
}, | |
h5: { | |
marginTop: '0', | |
marginBottom: '2rem', | |
fontWeight: '300', | |
fontSize: '1.8rem', | |
lineHeight: '1.5', | |
letterSpacing: '-.05rem', | |
'@media (min-width: 550px)': { | |
fontSize: '2.4rem' | |
} | |
}, | |
h6: { | |
marginTop: '0', | |
marginBottom: '2rem', | |
fontWeight: '300', | |
fontSize: '1.5rem', | |
lineHeight: '1.6', | |
letterSpacing: '0rem', | |
'@media (min-width: 550px)': { | |
fontSize: '1.5rem' | |
} | |
}, | |
p: { | |
marginTop: '0px' | |
} | |
}); | |
export default TypographyStyle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment