Skip to content

Commit

Permalink
Merge pull request #148 from HubSpot/font-size-json
Browse files Browse the repository at this point in the history
Fixing theme JSON for font size
  • Loading branch information
jasonnrosa authored May 4, 2020
2 parents 662b94b + 24cdc6f commit 1460e4c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 35 deletions.
2 changes: 1 addition & 1 deletion src/css/theme-overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
{###########################################################################}

html {
font-size: {{ body_font.size ~ base_font.size_unit }};
font-size: {{ body_font.size ~ body_font.size_unit }};
}

body {
Expand Down
54 changes: 20 additions & 34 deletions src/fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@
}
},
"default": {
"size": {
"units": "px",
"value": 24
}
"size": 24,
"size_unit": "px"
}
},
{
Expand All @@ -167,14 +165,12 @@
}
},
"default": {
"size": {
"units": "px",
"value": 50
},
"variant": "700",
"size": 50,
"size_unit": "px",
"styles": {
"text-decoration" : "none"
}
},
"variant": "700"
}
},
{
Expand All @@ -190,14 +186,12 @@
}
},
"default": {
"size": {
"units": "px",
"value": 38
},
"variant": "700",
"size": 38,
"size_unit": "px",
"styles": {
"text-decoration" : "none"
}
},
"variant": "700"
}
},
{
Expand All @@ -213,14 +207,12 @@
}
},
"default": {
"size": {
"units": "px",
"value": 30
},
"variant": "700",
"size": 30,
"size_unit": "px",
"styles": {
"text-decoration" : "none"
}
},
"variant": "700"
}
},
{
Expand All @@ -236,10 +228,8 @@
}
},
"default": {
"size": {
"units": "px",
"value": 24
},
"size": 24,
"size_unit": "px",
"styles": {
"text-decoration" : "none"
}
Expand All @@ -258,10 +248,8 @@
},
"default": {
"color": "#000000",
"size": {
"units": "px",
"value": 16
},
"size": 16,
"size_unit": "px",
"styles": {
"text-decoration" : "none"
}
Expand All @@ -280,10 +268,8 @@
}
},
"default": {
"size": {
"units": "px",
"value": 14
},
"size": 14,
"size_unit": "px",
"styles": {
"text-decoration" : "none"
}
Expand Down

0 comments on commit 1460e4c

Please sign in to comment.