Skip to content

Instantly share code, notes, and snippets.

@felixarntz
Created March 4, 2023 19:55
Show Gist options
  • Save felixarntz/1feeb1f75deab7abffc46d6529c407d0 to your computer and use it in GitHub Desktop.
Save felixarntz/1feeb1f75deab7abffc46d6529c407d0 to your computer and use it in GitHub Desktop.
My Twenty Twenty-Three child theme's `theme.json` for https://felix-arntz.me
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 2,
"settings": {
"color": {
"palette": [
{
"color": "#ffffff",
"name": "Base",
"slug": "base"
},
{
"color": "#222222",
"name": "Contrast",
"slug": "contrast"
},
{
"color": "#981b21",
"name": "Primary",
"slug": "primary"
},
{
"color": "#751519",
"name": "Secondary",
"slug": "secondary"
},
{
"color": "#f6f6f6",
"name": "Tertiary",
"slug": "tertiary"
}
]
},
"typography": {
"dropCap": false,
"fluid": true,
"fontFamilies": [
{
"fontFace": [
{
"fontDisplay": "block",
"fontFamily": "Outfit",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "100 900",
"src": [ "file:./assets/fonts/Outfit-Variable.woff2" ]
}
],
"fontFamily": "Outfit, sans-serif",
"name": "Outfit",
"slug": "outfit"
},
{
"fontFamily": "monospace",
"name": "Monospace",
"slug": "monospace"
},
{
"fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif",
"name": "System Font",
"slug": "system-font"
}
]
}
},
"styles": {
"blocks": {
"core/navigation": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--outfit)",
"textTransform": "uppercase"
},
"elements": {
"link": {
"color": {
"text": "inherit"
},
":visited": {
"color": {
"text": "inherit"
}
}
}
}
},
"core/post-content": {
"elements": {
"link": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
}
}
},
"core/site-title": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--outfit)",
"textTransform": "uppercase"
},
"elements": {
"link": {
"color": {
"text": "inherit"
},
":visited": {
"color": {
"text": "inherit"
}
}
}
}
},
"daily-quote/daily-quote": {
"border": {
"style": "solid",
"width": "1px 0"
},
"elements": {
"cite": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontSize": "var(--wp--preset--font-size--small)"
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--outfit)",
"fontSize": "var(--wp--preset--font-size--large)",
"lineHeight": "1.3"
},
"spacing": {
"margin": {
"bottom": "var(--wp--preset--spacing--40) !important",
"top": "var(--wp--preset--spacing--40) !important"
},
"padding": {
"bottom": "calc(var(--wp--preset--spacing--40) / 2) !important",
"top": "calc(var(--wp--preset--spacing--40) / 2) !important"
}
}
}
},
"elements": {
"button": {
"border": {
"radius": "0"
},
"color": {
"background": "var(--wp--preset--color--primary)",
"text": "var(--wp--preset--color--base)"
},
":hover": {
"color": {
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
}
},
":focus": {
"color": {
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
}
},
":active": {
"color": {
"background": "var(--wp--preset--color--secondary)",
"text": "var(--wp--preset--color--base)"
}
},
":visited": {
"color": {
"text": "var(--wp--preset--color--base)"
}
}
},
"cite": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--system-font)",
"fontSize": "var(--wp--preset--font-size--small)"
}
},
"heading": {
"typography": {
"fontFamily": "var(--wp--preset--font-family--outfit)"
}
},
"link": {
"color": {
"text": "var(--wp--preset--color--primary)"
},
":hover": {
"typography": {
"textDecoration": "none"
}
},
":focus": {
"typography": {
"textDecoration": "underline dashed"
}
},
":active": {
"color": {
"text": "var(--wp--preset--color--secondary)"
},
"typography": {
"textDecoration": "none"
}
},
":visited": {
"color": {
"text": "var(--wp--preset--color--primary)"
}
},
"typography": {
"textDecoration": "underline"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment