Skip to content

Instantly share code, notes, and snippets.

@asathoor
Created January 25, 2024 19:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asathoor/94c2686a73530858c4fa02ffb7e509cf to your computer and use it in GitHub Desktop.
Save asathoor/94c2686a73530858c4fa02ffb7e509cf to your computer and use it in GitHub Desktop.
theme.json : How to add a font
{
"fontFace": [
{
"fontFamily": "Bitter",
"fontStyle": "normal",
"fontWeight": "400 700",
"src": [
"file:./assets/fonts/Bitter/Bitter-VariableFont_wght.woff2"
]
},
{
"fontFamily": "Bitter Italic",
"fontStyle": "italic",
"fontWeight": "400 700",
"src": [
"file:./assets/fonts/Bitter/Bitter-Italic-VariableFont_wght.woff2"
]
}
],
"fontFamily": "\"Bitter\", sans-serif",
"name": "Bitter",
"slug": "bitter"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment