Update packages + update Typography setup
This commit is contained in:
parent
950e38687e
commit
1043f18f0c
6 changed files with 38 additions and 22 deletions
20
utils/typography.js
Normal file
20
utils/typography.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import Typography from 'typography';
|
||||
|
||||
const options = {
|
||||
baseFontSize: '18px',
|
||||
baseLineHeight: '27px',
|
||||
modularScales: [
|
||||
{
|
||||
"scale": "minor third"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
const typography = new Typography(options)
|
||||
|
||||
// Hot reload typography in development.
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
typography.injectStyles()
|
||||
}
|
||||
|
||||
export default typography
|
||||
Loading…
Add table
Add a link
Reference in a new issue