Update to latest typography
This commit is contained in:
parent
284c7970a4
commit
3efd74a20f
3 changed files with 5 additions and 4 deletions
5
html.js
5
html.js
|
|
@ -1,7 +1,8 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import DocumentTitle from 'react-document-title'
|
import DocumentTitle from 'react-document-title'
|
||||||
import { prefixLink } from 'gatsby-helpers'
|
import { prefixLink } from 'gatsby-helpers'
|
||||||
import { TypographyStyle } from 'utils/typography'
|
import { TypographyStyle } from 'typography-react'
|
||||||
|
import typography from './utils/typography'
|
||||||
|
|
||||||
const BUILD_TIME = new Date().getTime()
|
const BUILD_TIME = new Date().getTime()
|
||||||
|
|
||||||
|
|
@ -29,7 +30,7 @@ module.exports = React.createClass({
|
||||||
content="width=device-width, initial-scale=1.0 maximum-scale=5.0"
|
content="width=device-width, initial-scale=1.0 maximum-scale=5.0"
|
||||||
/>
|
/>
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<TypographyStyle />
|
<TypographyStyle typography={typography} />
|
||||||
{css}
|
{css}
|
||||||
</head>
|
</head>
|
||||||
<body className="landing-page">
|
<body className="landing-page">
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,8 @@
|
||||||
"react-responsive-grid": "^0.3.3",
|
"react-responsive-grid": "^0.3.3",
|
||||||
"react-router": "^2.4.1",
|
"react-router": "^2.4.1",
|
||||||
"safe-access": "^0.1.0",
|
"safe-access": "^0.1.0",
|
||||||
"typography": "^0.8.3",
|
"typography": "^0.10.2",
|
||||||
|
"typography-react": "^0.10.3",
|
||||||
"underscore.string": "^3.2.3"
|
"underscore.string": "^3.2.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ import Typography from 'typography'
|
||||||
const options = {
|
const options = {
|
||||||
baseFontSize: '18px',
|
baseFontSize: '18px',
|
||||||
baseLineHeight: '27px',
|
baseLineHeight: '27px',
|
||||||
headerWeight: 900,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const typography = new Typography(options)
|
const typography = new Typography(options)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue