Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #237 from WordPress/test/style-variations-font-loa…
Browse files Browse the repository at this point in the history
…ding

Move font family definitions into respective typography presets.

Co-authored-by: jffng <[email protected]>
Co-authored-by: matiasbenedetto <[email protected]>
Co-authored-by: juanfra <[email protected]>
Co-authored-by: carolinan <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: beafialho <[email protected]>
  • Loading branch information
7 people authored Oct 28, 2024
2 parents 8937ed2 + ca21cb3 commit 9ec63e2
Show file tree
Hide file tree
Showing 15 changed files with 1,772 additions and 385 deletions.
152 changes: 152 additions & 0 deletions styles/02-noon.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,158 @@
]
},
"typography": {
"fontFamilies": [
{
"name": "Beiruti",
"slug": "beiruti",
"fontFamily": "Beiruti, sans-serif",
"fontFace": [
{
"fontFamily": "Beiruti",
"fontStyle": "normal",
"fontWeight": "200 900",
"src": [
"file:./assets/fonts/beiruti/Beiruti-VariableFont_wght.woff2"
]
}
]
},
{
"name": "Literata",
"slug": "literata",
"fontFamily": "Literata, serif",
"fontFace": [
{
"src": [
"file:./assets/fonts/literata/Literata72pt-ExtraLight.woff2"
],
"fontWeight": "200",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-ExtraLightItalic.woff2"
],
"fontWeight": "200",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-Light.woff2"
],
"fontWeight": "300",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-LightItalic.woff2"
],
"fontWeight": "300",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-Regular.woff2"
],
"fontWeight": "400",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-RegularItalic.woff2"
],
"fontWeight": "400",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-Medium.woff2"
],
"fontWeight": "500",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-MediumItalic.woff2"
],
"fontWeight": "500",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-SemiBold.woff2"
],
"fontWeight": "600",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-SemiBoldItalic.woff2"
],
"fontWeight": "600",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-Bold.woff2"
],
"fontWeight": "700",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-BoldItalic.woff2"
],
"fontWeight": "700",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-ExtraBold.woff2"
],
"fontWeight": "800",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-ExtraBoldItalic.woff2"
],
"fontWeight": "800",
"fontStyle": "italic",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-Black.woff2"
],
"fontWeight": "900",
"fontStyle": "normal",
"fontFamily": "Literata"
},
{
"src": [
"file:./assets/fonts/literata/Literata72pt-BlackItalic.woff2"
],
"fontWeight": "900",
"fontStyle": "italic",
"fontFamily": "Literata"
}
]
}
],
"fontSizes": [
{
"fluid": false,
Expand Down
42 changes: 42 additions & 0 deletions styles/03-dusk.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,48 @@
"color": {
"accent-2-opacity-20": "#650DD433"
}
},
"typography": {
"fontFamilies": [
{
"name": "Vollkorn",
"slug": "vollkorn",
"fontFamily": "Vollkorn, serif",
"fontFace": [
{
"src": [
"file:./assets/fonts/vollkorn/Vollkorn-Italic-VariableFont_wght.woff2"
],
"fontWeight": "400 900",
"fontStyle": "italic",
"fontFamily": "Vollkorn"
},
{
"src": [
"file:./assets/fonts/vollkorn/Vollkorn-VariableFont_wght.woff2"
],
"fontWeight": "400 900",
"fontStyle": "normal",
"fontFamily": "Vollkorn"
}
]
},
{
"name": "Fira Code",
"slug": "fira-code",
"fontFamily": "\"Fira Code\", monospace",
"fontFace": [
{
"src": [
"file:./assets/fonts/fira-code/FiraCode-VariableFont_wght.woff2"
],
"fontWeight": "300 700",
"fontStyle": "normal",
"fontFamily": "\"Fira Code\""
}
]
}
]
}
},
"styles": {
Expand Down
48 changes: 48 additions & 0 deletions styles/04-afternoon.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,54 @@
]
},
"typography": {
"fontFamilies": [
{
"name": "Platypi",
"slug": "platypi",
"fontFamily": "Platypi",
"fontFace": [
{
"fontFamily": "Platypi",
"fontStyle": "normal",
"fontWeight": "300 800",
"src": [
"file:./assets/fonts/platypi/Platypi-VariableFont_wght.woff2"
]
},
{
"fontFamily": "Platypi",
"fontStyle": "italic",
"fontWeight": "300 800",
"src": [
"file:./assets/fonts/platypi/Platypi-Italic-VariableFont_wght.woff2"
]
}
]
},
{
"name": "Ysabeau Office",
"slug": "ysabeau-office",
"fontFamily": "\"Ysabeau Office\", sans-serif",
"fontFace": [
{
"src": [
"file:./assets/fonts/ysabeau-office/YsabeauOffice-VariableFont_wght.woff2"
],
"fontWeight": "100 900",
"fontStyle": "normal",
"fontFamily": "\"Ysabeau Office\""
},
{
"src": [
"file:./assets/fonts/ysabeau-office/YsabeauOffice-Italic-VariableFont_wght.woff2"
],
"fontWeight": "100 900",
"fontStyle": "italic",
"fontFamily": "\"Ysabeau Office\""
}
]
}
],
"fontSizes": [
{
"fluid": false,
Expand Down
32 changes: 32 additions & 0 deletions styles/05-twilight.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,38 @@
]
},
"typography": {
"fontFamilies": [
{
"name": "Roboto Slab",
"slug": "roboto-slab",
"fontFamily": "\"Roboto Slab\", serif",
"fontFace": [
{
"fontFamily": "\"Roboto Slab\"",
"fontStyle": "normal",
"fontWeight": "100 900",
"src": [
"file:./assets/fonts/roboto-slab/RobotoSlab-VariableFont_wght.woff2"
]
}
]
},
{
"name": "Manrope",
"slug": "manrope",
"fontFamily": "Manrope, sans-serif",
"fontFace": [
{
"src": [
"file:./assets/fonts/manrope/Manrope-VariableFont_wght.woff2"
],
"fontWeight": "200 800",
"fontStyle": "normal",
"fontFamily": "Manrope"
}
]
}
],
"fontSizes": [
{
"fluid": false,
Expand Down
Loading

0 comments on commit 9ec63e2

Please sign in to comment.