Skip to content

Instantly share code, notes, and snippets.

@karmatosed
Created December 5, 2023 10:16
Show Gist options
  • Save karmatosed/0fea138ca8cdc369b70f65d6d683674e to your computer and use it in GitHub Desktop.
Save karmatosed/0fea138ca8cdc369b70f65d6d683674e to your computer and use it in GitHub Desktop.
Theme06
{
"$schema": "https://schemas.wp.org/wp/6.4/theme.json",
"version": 2,
"patterns": [],
"settings": {
"appearanceTools": true,
"color": {
"defaultDuotone": false,
"defaultGradients": false,
"defaultPalette": false,
"duotone": [],
"gradients": [],
"palette": [
{
"slug": "primary",
"color": "#e6308a",
"name": "Accent 1"
},
{
"slug": "secondary",
"color": "#b51963",
"name": "Accent 2"
},
{
"slug": "foreground",
"color": "#111111",
"name": "Foreground"
},
{
"slug": "contrast",
"color": "#5ba300",
"name": "Contrast"
},
{
"slug": "contrast-2",
"color": "#89ce00",
"name": "Contrast 2"
},
{
"slug": "base",
"color": "#ffffff",
"name": "Base"
}
]
},
"layout": {
"contentSize": "800px",
"wideSize": "1440px"
},
"spacing": {
"units": [ "%", "px", "em", "rem", "vh", "vw" ],
"spacingSizes": [
{
"name": "1",
"size": "1rem",
"slug": "10"
},
{
"name": "2",
"size": "min(1.5rem, 2vw)",
"slug": "20"
},
{
"name": "3",
"size": "min(2.5rem, 3vw)",
"slug": "30"
},
{
"name": "4",
"size": "min(4rem, 5vw)",
"slug": "40"
},
{
"name": "5",
"size": "min(6.5rem, 8vw)",
"slug": "50"
},
{
"name": "6",
"size": "min(10.5rem, 13vw)",
"slug": "60"
}
]
},
"typography": {
"fontFamilies": [
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "200",
"src": [
"file:./assets/fonts/Inter-VariableFont_slnt,wght.ttf"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "body"
},
{
"fontFace": [
{
"fontFamily": "Inter",
"fontStretch": "normal",
"fontStyle": "normal",
"fontWeight": "900",
"src": [
"file:./assets/fonts/Inter-VariableFont_slnt,wght.ttf"
]
}
],
"fontFamily": "\"Inter\", sans-serif",
"name": "Inter",
"slug": "heading"
}
],
"fontSizes": [
{
"fluid": false,
"name": "X-Small",
"size": "0.75rem",
"slug": "x-small"
},
{
"fluid": false,
"name": "Small",
"size": "0.875rem",
"slug": "small"
},
{
"fluid": false,
"name": "Medium",
"size": "1rem",
"slug": "medium"
},
{
"fluid": false,
"name": "Large",
"size": "1.375rem",
"slug": "large"
},
{
"fluid": false,
"name": "X-Large",
"size": "1.75rem",
"slug": "x-large"
},
{
"fluid": false,
"name": "XX-Large",
"size": "1.875rem",
"slug": "xx-large"
},
{
"fluid": false,
"name": "XXX-Large",
"size": "2.5rem",
"slug": "xxx-large"
}
],
"fontStyle": true,
"fontWeight": true,
"lineHeight": false
},
"useRootPaddingAwareAlignments": true
},
"styles": {
"blocks": {
"core/separator": {
"border": {
"color": "currentColor",
"style": "solid",
"width": "0 0 1px 0"
},
"color": {
"text": "var(--wp--preset--color--contrast)"
},
"css": " &:not(.is-style-wide):not(.is-style-dots):not(.alignwide):not(.alignfull){width: var(--wp--preset--spacing--60)}"
},
"core/button": {
"variations": {
"default": {
"spacing": {
"padding": {
"bottom": "calc(0.6rem - 1px)",
"left": "calc(1rem - 1px)",
"right": "calc(1rem - 1px)",
"top": "calc(0.6rem - 1px)"
}
},
"border": {
"width": "1px"
}
},
"outline": {
"spacing": {
"padding": {
"bottom": "calc(0.6rem - 1px)",
"left": "calc(1rem - 1px)",
"right": "calc(1rem - 1px)",
"top": "calc(0.6rem - 1px)"
}
},
"border": {
"width": "1px"
}
}
}
},
"core/buttons": {
"spacing": {
"blockGap": "0.7rem"
}
}
},
"color": {
"background": "var(--wp--preset--color--base)",
"text": "var(--wp--preset--color--foreground)"
},
"css": "a{text-decoration-thickness:0.0625em;text-underline-offset: 0.15em}",
"elements": {
"button": {
":active": {
"color": {
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
}
},
":focus": {
"color": {
"background": "var(--wp--preset--color--contrast-2)",
"text": "var(--wp--preset--color--base)"
},
"outline": {
"color": "var(--wp--preset--color--contrast)",
"offset": "2px",
"style": "dotted",
"width": "1px"
},
"border": {
"color": "var(--wp--preset--color--contrast-2)"
}
},
":hover": {
"color": {
"background": "var(--wp--preset--color--contrast-2)",
"text": "var(--wp--preset--color--base)"
},
"border": {
"color": "var(--wp--preset--color--contrast-2)"
}
},
"border": {
"radius": ".33rem",
"color": "var(--wp--preset--color--contrast)"
},
"color": {
"background": "var(--wp--preset--color--contrast)",
"text": "var(--wp--preset--color--base)"
},
"spacing": {
"padding": {
"bottom": "0.6rem",
"left": "1rem",
"right": "1rem",
"top": "0.6rem"
}
},
"typography": {
"fontSize": "var(--wp--preset--font-size--small)",
"fontStyle": "normal",
"fontWeight": "500"
}
},
"h1": {
"typography": {
"fontSize": "var(--wp--preset--font-size--xxx-large)",
"lineHeight": "1.15"
}
},
"h2": {
"typography": {
"fontSize": "var(--wp--preset--font-size--xx-large)"
}
},
"h3": {
"typography": {
"fontSize": "var(--wp--preset--font-size--x-large)"
}
},
"h4": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h5": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"h6": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)"
}
},
"heading": {
"color": {
"text": "var(--wp--preset--color--contrast)"
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--heading)",
"fontWeight": "400",
"lineHeight": "1.2"
}
},
"link": {
":hover": {
"typography": {
"textDecoration": "none"
}
},
"color": {
"text": "var(--wp--preset--color--contrast)"
}
}
},
"typography": {
"fontFamily": "var(--wp--preset--font-family--body)",
"fontSize": "var(--wp--preset--font-size--medium)",
"fontStyle": "normal",
"fontWeight": "400",
"lineHeight": "1.55"
},
"spacing": {
"blockGap": "1.2rem"
}
},
"templateParts": [
{
"area": "header",
"name": "header"
},
{
"area": "footer",
"name": "footer"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment