Open jamesgrubb opened 5 years ago
Hello @jamesgrubb I took a look at the overrideThemeStyles
API.
The scale
method returns a BaseLine
type which is an object containing font-size and line-height
What you need to do is spread scale(3)
. Here;
kirkhamTheme.overrideThemeStyles = ({scale, rhythm }) => ({
"h1" : {
marginBottom: rhythm(10),
marginTop: rhythm(2),
...scale(3)
}
})
overrideThemeStyles: (VerticalRhythm: VerticalRhythm, . . . )
signature
I'm using kirkham theme with some overrides.
when I inspect the code it seems font size is output as an object rather than css readabel code