-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathtypography.js
More file actions
33 lines (28 loc) · 669 Bytes
/
typography.js
File metadata and controls
33 lines (28 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import Typography from 'typography'
import Wordpress2016 from 'typography-theme-wordpress-2016'
Wordpress2016.overrideThemeStyles = () => ({
a: {
color: '#d23636',
},
'a.gatsby-resp-image-link': {
boxShadow: 'none',
},
'p code': {
fontSize: '1.1rem',
},
ol: {
paddingLeft: '1.3rem',
},
'ol li': {
marginBottom: '0',
},
})
delete Wordpress2016.googleFonts
const typography = new Typography(Wordpress2016)
// Hot reload typography in development.
if (process.env.NODE_ENV !== 'production') {
typography.injectStyles()
}
export default typography
export const rhythm = typography.rhythm
export const scale = typography.scale