Skip to content

Instantly share code, notes, and snippets.

@richtabor
Created March 30, 2024 15:46
Show Gist options
  • Save richtabor/7a1f64c26e821b66e80d2b97da20f6be to your computer and use it in GitHub Desktop.
Save richtabor/7a1f64c26e821b66e80d2b97da20f6be to your computer and use it in GitHub Desktop.
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"typography": {
"fontSizes": [
{
"name": "Small",
"size": "12px",
"slug": "small"
},
{
"name": "Medium",
"size": "22px",
"slug": "medium"
},
{
"name": "Large",
"size": "42px",
"slug": "large"
},
{
"name": "Extra Large",
"size": "72px",
"slug": "x-large"
},
{
"name": "2X Large",
"size": "120px",
"slug": "xx-large"
}
]
}
},
"styles": {
"blocks": {
"core/site-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--noto-sans-mono)",
"fontWeight": "400",
"fontSize": "14px",
"textTransform": "uppercase"
}
},
"core/navigation": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--noto-sans-mono)",
"fontWeight": "400",
"textTransform": "uppercase",
"fontSize": "14px"
}
}
},
"elements": {
"button": {
"typography": {
"fontFamily": { "ref": "styles.typography.fontFamily" },
"fontSize": { "ref": "styles.typography.fontSize" },
"fontWeight": "400",
"textTransform": "uppercase"
}
},
"h1": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--instrument-serif)",
"fontSize": "160px",
"lineHeight": "0.8"
}
},
"h2": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--instrument-serif)"
}
},
"heading": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--noto-sans-mono)",
"fontWeight": "400",
"lineHeight": "0.8",
"letterSpacing": "-0.005em"
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--noto-sans-mono)",
"fontSize": "13px",
"fontStyle": "normal",
"textTransform": "uppercase",
"fontWeight": "400",
"lineHeight": "1.85"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment