Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add style variations to handle different font options. #356

Merged
merged 3 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added private/src/static/fonts/roboto/roboto-100.woff2
Binary file not shown.
Binary file not shown.
Binary file added private/src/static/fonts/roboto/roboto-400.woff2
Binary file not shown.
Binary file not shown.
Binary file added private/src/static/fonts/roboto/roboto-700.woff2
Binary file not shown.
Binary file not shown.
Binary file added private/src/static/fonts/rubik/rubik-300.woff2
Binary file not shown.
Binary file not shown.
Binary file added private/src/static/fonts/rubik/rubik-400.woff2
Binary file not shown.
Binary file not shown.
Binary file added private/src/static/fonts/rubik/rubik-700.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"title": "Amnesty Trade Gothic",
"settings": {
"typography": {
"fontFamilies": [
{
"fontFamily": "\"Amnesty Trade Gothic\", sans-serif",
"name": "Amnesty Trade Gothic",
"slug": "primary",
"fontFace": [
{
"fontFamily": "Amnesty Trade Gothic",
"fontStyle": "normal",
"fontWeight": 300,
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Light.eot",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Light.woff2",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Light.woff",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Light.ttf"
]
},
{
"fontFamily": "Amnesty Trade Gothic",
"fontStyle": "oblique",
"fontWeight": 300,
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-LightObl.eot",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-LightObl.woff2",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-LightObl.woff",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-LightObl.ttf"
]
},
{
"fontFamily": "Amnesty Trade Gothic",
"fontStyle": "normal",
"fontWeight": "normal",
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Roman.eot",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Roman.woff2",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Roman.woff",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Roman.ttf"
]
},
{
"fontFamily": "Amnesty Trade Gothic",
"fontStyle": "oblique",
"fontWeight": "normal",
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Oblique.eot",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Oblique.woff2",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Oblique.woff",
"file:./assets/fonts/trade-gothic/TradeGothicLTW05-Oblique.ttf"
]
}
]
},
{
"fontFamily": "\"Amnesty Trade Gothic Condensed\", sans-serif",
"name": "Amnesty Trade Gothic Condensed",
"slug": "secondary",
"fontFace": [
{
"fontFamily": "Amnesty Trade Gothic Condensed",
"fontStyle": "oblique",
"fontWeight": "normal",
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-CnNo.18Obl.eot",
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-CnNo.18Obl.woff2",
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-CnNo.18Obl.woff",
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-CnNo.18Obl.ttf"
]
},
{
"fontFamily": "Amnesty Trade Gothic Condensed",
"fontStyle": "normal",
"fontWeight": "bold",
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-BdCnNo.20.eot",
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-BdCnNo.20.woff2",
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-BdCnNo.20.woff",
"file:./assets/fonts/trade-gothic-condensed/TradeGothicLTW05-BdCnNo.20.ttf"
]
}
]
}
]
}
}
}

97 changes: 97 additions & 0 deletions wp-content/themes/humanity-theme/styles/02-roboto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"title": "Roboto",
"version": 3,
"$schema": "https://schemas.wp.org/wp/6.6/theme.json",
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Roboto",
"fontStyle": "normal",
"fontWeight": "400",
"src": "file:./assets/fonts/roboto/roboto-400.woff2"
},
{
"fontFamily": "Roboto",
"fontStyle": "normal",
"fontWeight": "700",
"src": "file:./assets/fonts/roboto/roboto-700.woff2"
},
{
"fontFamily": "Roboto",
"fontStyle": "italic",
"fontWeight": "400",
"src": "file:./assets/fonts/roboto/roboto-400-italic.woff2"
},
{
"fontFamily": "Roboto",
"fontStyle": "italic",
"fontWeight": "700",
"src": "file:./assets/fonts/roboto/roboto-700-italic.woff2"
},
{
"fontFamily": "Roboto",
"fontStyle": "normal",
"fontWeight": "100",
"src": "file:./assets/fonts/roboto/roboto-100.woff2"
},
{
"fontFamily": "Roboto",
"fontStyle": "italic",
"fontWeight": "100",
"src": "file:./assets/fonts/roboto/roboto-100-italic.woff2"
}
],
"fontFamily": "Roboto, sans-serif",
"name": "Roboto",
"slug": "secondary"
},
{
"fontFace": [
{
"fontFamily": "\"Roboto Condensed\"",
"fontStyle": "normal",
"fontWeight": "400",
"src": "file:./assets/fonts/roboto-condensed/roboto-condensed-400.woff2"
},
{
"fontFamily": "\"Roboto Condensed\"",
"fontStyle": "normal",
"fontWeight": "700",
"src": "file:./assets/fonts/roboto-condensed/roboto-condensed-700.woff2"
},
{
"fontFamily": "\"Roboto Condensed\"",
"fontStyle": "italic",
"fontWeight": "400",
"src": "file:./assets/fonts/roboto-condensed/roboto-condensed-400-italic.woff2"
},
{
"fontFamily": "\"Roboto Condensed\"",
"fontStyle": "italic",
"fontWeight": "700",
"src": "file:./assets/fonts/roboto-condensed/roboto-condensed-700-italic.woff2"
},
{
"fontFamily": "\"Roboto Condensed\"",
"fontStyle": "normal",
"fontWeight": "200",
"src": "file:./assets/fonts/roboto-condensed/roboto-condensed-200.woff2"
},
{
"fontFamily": "\"Roboto Condensed\"",
"fontStyle": "italic",
"fontWeight": "200",
"src": "file:./assets/fonts/roboto-condensed/roboto-condensed-200-italic.woff2"
}
],
"fontFamily": "\"Roboto Condensed\", sans-serif",
"name": "Roboto Condensed",
"slug": "primary"
}
]
}
}
}
59 changes: 59 additions & 0 deletions wp-content/themes/humanity-theme/styles/03-rubik.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"title": "Rubik",
"version": 3,
"$schema": "https://schemas.wp.org/wp/6.6/theme.json",
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Rubik",
"fontStyle": "normal",
"fontWeight": "400",
"src": "file:./assets/fonts/rubik/rubik-400.woff2"
},
{
"fontFamily": "Rubik",
"fontStyle": "normal",
"fontWeight": "300",
"src": "file:./assets/fonts/rubik/rubik-300.woff2"
},
{
"fontFamily": "Rubik",
"fontStyle": "normal",
"fontWeight": "700",
"src": "file:./assets/fonts/rubik/rubik-700.woff2"
},
{
"fontFamily": "Rubik",
"fontStyle": "italic",
"fontWeight": "300",
"src": "file:./assets/fonts/rubik/rubik-300-italic.woff2"
},
{
"fontFamily": "Rubik",
"fontStyle": "italic",
"fontWeight": "400",
"src": "file:./assets/fonts/rubik/rubik-400-italic.woff2"
},
{
"fontFamily": "Rubik",
"fontStyle": "italic",
"fontWeight": "700",
"src": "file:./assets/fonts/rubik/rubik-700-italic.woff2"
}
],
"fontFamily": "Rubik, sans-serif",
"name": "Rubik",
"slug": "primary"
},
{
"fontFamily": "Rubik, sans-serif",
"name": "Rubik",
"slug": "secondary"
}
]
}
}
}
36 changes: 18 additions & 18 deletions wp-content/themes/humanity-theme/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@
"fontWeight": 300,
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/Lato-Light.woff2",
"file:./assets/fonts/Lato-Light.woff",
"file:./assets/fonts/Lato-Light.ttf"
"file:./assets/fonts/lato/Lato-Light.woff2",
"file:./assets/fonts/lato/Lato-Light.woff",
"file:./assets/fonts/lato/Lato-Light.ttf"
]
},
{
Expand All @@ -174,9 +174,9 @@
"fontWeight": 300,
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/Lato-LightItalic.woff2",
"file:./assets/fonts/Lato-LightItalic.woff",
"file:./assets/fonts/Lato-LightItalic.ttf"
"file:./assets/fonts/lato/Lato-LightItalic.woff2",
"file:./assets/fonts/lato/Lato-LightItalic.woff",
"file:./assets/fonts/lato/Lato-LightItalic.ttf"
]
},
{
Expand All @@ -185,9 +185,9 @@
"fontWeight": 400,
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/Lato-Regular.woff2",
"file:./assets/fonts/Lato-Regular.woff",
"file:./assets/fonts/Lato-Regular.ttf"
"file:./assets/fonts/lato/Lato-Regular.woff2",
"file:./assets/fonts/lato/Lato-Regular.woff",
"file:./assets/fonts/lato/Lato-Regular.ttf"
]
},
{
Expand All @@ -196,9 +196,9 @@
"fontWeight": 400,
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/Lato-Italic.woff2",
"file:./assets/fonts/Lato-Italic.woff",
"file:./assets/fonts/Lato-Italic.ttf"
"file:./assets/fonts/lato/Lato-Italic.woff2",
"file:./assets/fonts/lato/Lato-Italic.woff",
"file:./assets/fonts/lato/Lato-Italic.ttf"
]
}
]
Expand All @@ -214,9 +214,9 @@
"fontWeight": "normal",
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/PlayfairDisplay-Italic.woff2",
"file:./assets/fonts/PlayfairDisplay-Italic.woff",
"file:./assets/fonts/PlayfairDisplay-Italic.ttf"
"file:./assets/fonts/playfair/PlayfairDisplay-Italic.woff2",
"file:./assets/fonts/playfair/PlayfairDisplay-Italic.woff",
"file:./assets/fonts/playfair/PlayfairDisplay-Italic.ttf"
]
},
{
Expand All @@ -225,9 +225,9 @@
"fontWeight": "bold",
"fontDisplay": "swap",
"src": [
"file:./assets/fonts/PlayfairDisplay-Bold.woff2",
"file:./assets/fonts/PlayfairDisplay-Bold.woff",
"file:./assets/fonts/PlayfairDisplay-Bold.ttf"
"file:./assets/fonts/playfair/PlayfairDisplay-Bold.woff2",
"file:./assets/fonts/playfair/PlayfairDisplay-Bold.woff",
"file:./assets/fonts/playfair/PlayfairDisplay-Bold.ttf"
]
}
]
Expand Down