Skip to content

Instantly share code, notes, and snippets.

@jmcausing
Last active July 22, 2024 07:28
Show Gist options
  • Save jmcausing/6f06a81c9ae0608a6e3655dbfcb90e26 to your computer and use it in GitHub Desktop.
Save jmcausing/6f06a81c9ae0608a6e3655dbfcb90e26 to your computer and use it in GitHub Desktop.
Shoptimizer font workaround
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"appearanceTools": true,
"custom": {
"lineHeight": {
"none": 1,
"tight": 1.1,
"snug": 1.2,
"normal": 1.5,
"relaxed": 1.625,
"loose": 2,
"body": 1.618
}
},
"layout": {
"contentSize": "900px",
"wideSize": "1190px"
},
"spacing": {
"spacingSizes": [
{
"name": "Small",
"size": "clamp(.25rem, 2.5vw, 0.75rem)",
"slug": "small"
},
{
"name": "Medium",
"size": "clamp(1rem, 4vw, 2rem)",
"slug": "medium"
},
{
"name": "Large",
"size": "clamp(1.25rem, 6vw, 3rem)",
"slug": "large"
},
{
"name": "Extra Large",
"size": "clamp(3rem, 7vw, 5rem)",
"slug": "x-large"
},
{
"name": "2xl",
"size": "clamp(4rem, 9vw, 7rem)",
"slug": "xx-large"
},
{
"name": "3xl",
"size": "clamp(5rem, 12vw, 9rem)",
"slug": "xxx-large"
},
{
"name": "4xl",
"size": "clamp(6rem, 14vw, 13rem)",
"slug": "xxxx-large"
}
],
"units": [
"px",
"em",
"rem",
"vh",
"vw",
"%"
],
"blockGap": true,
"padding": true,
"margin": true
},
"typography": {
"dropCap": false,
"fluid": true,
"fontSizes": [
{
"fluid": {
"min": ".0.85rem",
"max": "1rem"
},
"size": "0.85rem",
"slug": "x-small",
"name": "Extra Small"
},
{
"fluid": {
"min": "1rem",
"max": "1.2rem"
},
"size": "1rem",
"slug": "small"
},
{
"fluid": {
"min": "1rem",
"max": "1.25rem"
},
"size": "1rem",
"slug": "base",
"name": "Base"
},
{
"fluid": {
"min": "1rem",
"max": "1.5rem"
},
"size": "1.5rem",
"slug": "medium"
},
{
"fluid": {
"min": "1.5rem",
"max": "2rem"
},
"size": "2rem",
"slug": "large"
},
{
"fluid": {
"min": "1.5rem",
"max": "2.25rem"
},
"size": "2.25rem",
"slug": "x-large"
},
{
"fluid": {
"min": "2rem",
"max": "3rem"
},
"size": "3rem",
"slug": "xx-large",
"name": "2xl"
},
{
"fluid": {
"min": "2.25rem",
"max": "4rem"
},
"size": "4rem",
"slug": "xxx-large",
"name": "3xl"
}
],
"lineHeight": true
},
"useRootPaddingAwareAlignments": true
},
"styles": {
"blocks": {
"core/columns": {
"spacing": {
"margin": {
"bottom": "0px"
}
}
},
"core/spacer": {
"spacing": {
"margin": {
"top": "0 !important"
}
}
}
},
"elements": {
"link": {
"typography": {
"textDecoration": "false"
},
"textDecoration": false
}
},
"spacing": {
"blockGap": "var(--wp--preset--spacing--medium)",
"padding": {
"top": "0",
"right": "var(--wp--preset--spacing--medium)",
"bottom": "0",
"left": "var(--wp--preset--spacing--medium)"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment