Use new API from latest typography release

This commit is contained in:
Kyle Mathews 2016-08-03 19:03:43 -06:00
parent 7cb361f81d
commit 728dee0b30

View file

@ -2,7 +2,7 @@ import React from 'react'
import { Link } from 'react-router'
import { Container } from 'react-responsive-grid'
import { prefixLink } from 'gatsby-helpers'
import { rhythm, fontSizeToMS } from 'utils/typography'
import { rhythm, adjustFontSizeToMSValue } from 'utils/typography'
import { config } from 'config'
class Template extends React.Component {
@ -13,8 +13,7 @@ class Template extends React.Component {
header = (
<h1
style={{
fontSize: fontSizeToMS(1.5).fontSize,
lineHeight: fontSizeToMS(1.5).lineHeight,
...adjustFontSizeToMSValue(1.5),
marginBottom: rhythm(1.5),
marginTop: 0,
}}