Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Assembler: Move the style variation specific font families from the main theme.json to the variation json file #8416

Closed
wants to merge 15 commits into from
25 changes: 25 additions & 0 deletions assembler/styles/typography/01-figtree.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Figtree",
"fontStyle": "normal",
"fontWeight": "400 700",
"src": [
"file:./assets/fonts/figtree/Figtree-VariableFont_wght.ttf"
]
},
{
"fontFamily": "Figtree",
"fontStyle": "italic",
"fontWeight": "400 700",
"src": [
"file:./assets/fonts/figtree/Figtree-Italic-VariableFont_wght.ttf"
]
}
],
"fontFamily": "\"Figtree\", sans-serif",
"name": "Figtree",
"slug": "figtree"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
18 changes: 18 additions & 0 deletions assembler/styles/typography/02-sora.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Sora",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "100 800",
"src": [
"file:./assets/fonts/sora/Sora-VariableFont_wght.ttf"
]
}
],
"fontFamily": "\"Sora\", sans-serif",
"name": "Sora",
"slug": "sora"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
72 changes: 72 additions & 0 deletions assembler/styles/typography/03-fjalla.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,78 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Roboto",
"fontStyle": "normal",
"fontWeight": "300",
"src": [
"file:./assets/fonts/roboto/Roboto-Light.ttf"
]
},
{
"fontFamily": "Roboto",
"fontStyle": "italic",
"fontWeight": "300",
"src": [
"file:./assets/fonts/roboto/Roboto-LightItalic.ttf"
]
},
{
"fontFamily": "Roboto",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/roboto/Roboto-Regular.ttf"
]
},
{
"fontFamily": "Roboto",
"fontStyle": "italic",
"fontWeight": "400",
"src": [
"file:./assets/fonts/roboto/Roboto-Regular.ttf"
]
},
{
"fontFamily": "Roboto",
"fontStyle": "normal",
"fontWeight": "600",
"src": [
"file:./assets/fonts/roboto/Roboto-Bold.ttf"
]
},
{
"fontFamily": "Roboto",
"fontStyle": "italic",
"fontWeight": "600",
"src": [
"file:./assets/fonts/roboto/Roboto-BoldItalic.ttf"
]
}
],
"fontFamily": "\"Roboto\", sans-serif",
"name": "Roboto",
"slug": "roboto"
},
{
"fontFace": [
{
"fontFamily": "Fjalla One",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/fjalla-one/FjallaOne-Regular.ttf"
]
}
],
"fontFamily": "\"Fjalla One\", sans-serif",
"name": "Fjalla One",
"slug": "fjalla-one"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
34 changes: 34 additions & 0 deletions assembler/styles/typography/04-gabarito.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,40 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Gabarito",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "100 900",
"src": [
"file:./assets/fonts/gabarito/Gabarito-VariableFont_wght.ttf"
]
}
],
"fontFamily": "\"Gabarito\", sans-serif",
"name": "Gabarito",
"slug": "gabarito"
},
{
"fontFace": [
{
"fontFamily": "Noto Sans Mono",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "100 800",
"src": [
"file:./assets/fonts/noto-sans/NotoSansMono-VariableFont_wdth,wght.ttf"
]
}
],
"fontFamily": "\"Noto Sans Mono\", monospace",
"name": "Noto Sans Mono",
"slug": "noto-sans-mono"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
64 changes: 64 additions & 0 deletions assembler/styles/typography/05-fahkwang.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,70 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Fahkwang",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/fahkwang/Fahkwang-Regular.ttf"
]
},
{
"fontFamily": "Fahkwang",
"fontStyle": "italic",
"fontWeight": "400",
"src": [
"file:./assets/fonts/fahkwang/Fahkwang-Italic.ttf"
]
},
{
"fontFamily": "Fahkwang",
"fontStyle": "normal",
"fontWeight": "600",
"src": [
"file:./assets/fonts/fahkwang/Fahkwang-Bold.ttf"
]
},
{
"fontFamily": "Fahkwang",
"fontStyle": "italic",
"fontWeight": "600",
"src": [
"file:./assets/fonts/fahkwang/Fahkwang-BoldItalic.ttf"
]
}
],
"fontFamily": "\"Fahkwang\", sans-serif",
"name": "Fahkwang",
"slug": "fahkwang"
},
{
"fontFace": [
{
"fontFamily": "DM Sans",
"fontStyle": "normal",
"fontWeight": "300 700",
"src": [
"file:./assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf"
]
},
{
"fontFamily": "DM Sans",
"fontStyle": "italic",
"fontWeight": "300 700",
"src": [
"file:./assets/fonts/dm-sans/DMSans-Italic-VariableFont_opsz,wght.ttf"
]
}
],
"fontFamily": "\"DM Sans\", sans-serif",
"name": "DM Sans",
"slug": "dm-sans"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
55 changes: 55 additions & 0 deletions assembler/styles/typography/06-messapia-dm-sans.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,61 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Messapia Bold",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/messapia/Messapia-Bold.woff2"
]
}
],
"fontFamily": "\"Messapia Bold\", sans-serif",
"name": "Messapia Bold",
"slug": "messapia-bold"
},
{
"fontFace": [
{
"fontFamily": "Messapia",
"fontStyle": "normal",
"fontWeight": "400",
"src": [
"file:./assets/fonts/messapia/Messapia.woff2"
]
}
],
"fontFamily": "\"Messapia\", serif",
"name": "Messapia",
"slug": "messapia"
},
{
"fontFace": [
{
"fontFamily": "DM Sans",
"fontStyle": "normal",
"fontWeight": "300 700",
"src": [
"file:./assets/fonts/dm-sans/DMSans-VariableFont_opsz,wght.ttf"
]
},
{
"fontFamily": "DM Sans",
"fontStyle": "italic",
"fontWeight": "300 700",
"src": [
"file:./assets/fonts/dm-sans/DMSans-Italic-VariableFont_opsz,wght.ttf"
]
}
],
"fontFamily": "\"DM Sans\", sans-serif",
"name": "DM Sans",
"slug": "dm-sans"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
50 changes: 50 additions & 0 deletions assembler/styles/typography/07-fraunces.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,56 @@
],
"settings": {
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Fraunces",
"fontStyle": "normal",
"fontWeight": "100 800",
"src": [
"file:./assets/fonts/fraunces/Fraunces-VariableFont.ttf"
]
},
{
"fontFamily": "Fraunces",
"fontStyle": "italic",
"fontWeight": "100 800",
"src": [
"file:./assets/fonts/fraunces/Fraunces-Italic-VariableFont.ttf"
]
}
],
"fontFamily": "\"Fraunces\", serif",
"name": "Fraunces",
"slug": "fraunces"
},
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "100 800",
"src": [
"file:./assets/fonts/inter/InterVariable.ttf"
]
},
{
"fontFamily": "Inter",
"fontStretch": "normal",
"fontStyle": "italic",
"fontWeight": "100 800",
"src": [
"file:./assets/fonts/inter/InterVariable-Italic.ttf"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "inter"
}
],
"fontSizes": [
{
"name": "Small",
Expand Down
Loading
Loading