Use new API from latest typography release
This commit is contained in:
parent
7cb361f81d
commit
728dee0b30
1 changed files with 2 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ import React from 'react'
|
||||||
import { Link } from 'react-router'
|
import { Link } from 'react-router'
|
||||||
import { Container } from 'react-responsive-grid'
|
import { Container } from 'react-responsive-grid'
|
||||||
import { prefixLink } from 'gatsby-helpers'
|
import { prefixLink } from 'gatsby-helpers'
|
||||||
import { rhythm, fontSizeToMS } from 'utils/typography'
|
import { rhythm, adjustFontSizeToMSValue } from 'utils/typography'
|
||||||
import { config } from 'config'
|
import { config } from 'config'
|
||||||
|
|
||||||
class Template extends React.Component {
|
class Template extends React.Component {
|
||||||
|
|
@ -13,8 +13,7 @@ class Template extends React.Component {
|
||||||
header = (
|
header = (
|
||||||
<h1
|
<h1
|
||||||
style={{
|
style={{
|
||||||
fontSize: fontSizeToMS(1.5).fontSize,
|
...adjustFontSizeToMSValue(1.5),
|
||||||
lineHeight: fontSizeToMS(1.5).lineHeight,
|
|
||||||
marginBottom: rhythm(1.5),
|
marginBottom: rhythm(1.5),
|
||||||
marginTop: 0,
|
marginTop: 0,
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue