Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Define Inter font family in base theme (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikachan authored Sep 19, 2022
1 parent eeac095 commit 2df3518
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 25 deletions.
26 changes: 1 addition & 25 deletions styles/pitch.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,29 +77,6 @@
]
},
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "200 900",
"src": [
"file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "body"
},
{
"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif",
"name": "System Font",
"slug": "system-font"
}
],
"fontSizes": [
{
"size": "0.85rem",
Expand Down Expand Up @@ -226,7 +203,6 @@
},
"heading": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--body)",
"fontWeight": "500"
}
}
Expand All @@ -241,7 +217,7 @@
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--body)",
"fontFamily": "var(--wp--preset--font-family--inter)",
"fontSize": "var(--wp--preset--font-size--medium)",
"lineHeight": "1.7"
}
Expand Down
16 changes: 16 additions & 0 deletions theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,22 @@
"name": "IBM Plex Mono",
"slug": "ibm-plex-mono"
},
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "200 900",
"src": [
"file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "inter"
},
{
"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif",
"name": "System Font",
Expand Down

0 comments on commit 2df3518

Please sign in to comment.