File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,15 @@ const headerFontSize = {
7
7
} ;
8
8
9
9
export const headerCommonMixin = level => css `
10
- font-family: ${ props => props . theme . typography . headings . fontFamily } ;
10
+ font-family: ${ ( { theme } ) => theme . typography . headings . fontFamily } ;
11
11
font-weight: ${ ( { theme } ) => theme . typography . headings . fontWeight } ;
12
12
font-size: ${ headerFontSize [ level ] } ;
13
+ line-height: ${ ( { theme } ) => theme . typography . headings . lineHeight } ;
13
14
` ;
14
15
15
16
export const H1 = styled . h1 `
16
17
${ headerCommonMixin ( 1 ) } ;
17
- color: ${ props => props . theme . colors . primary . main } ;
18
+ color: ${ ( { theme } ) => theme . colors . primary . main } ;
18
19
19
20
${ extensionsHook ( 'H1' ) } ;
20
21
` ;
Original file line number Diff line number Diff line change @@ -105,6 +105,7 @@ const defaultTheme: ThemeInterface = {
105
105
headings : {
106
106
fontFamily : 'Montserrat, sans-serif' ,
107
107
fontWeight : '400' ,
108
+ lineHeight : '1.6em' ,
108
109
} ,
109
110
code : {
110
111
fontSize : '13px' ,
@@ -282,6 +283,7 @@ export interface ResolvedThemeInterface {
282
283
headings : {
283
284
fontFamily : string ;
284
285
fontWeight : string ;
286
+ lineHeight : string ;
285
287
} ;
286
288
287
289
links : {
You can’t perform that action at this time.
0 commit comments