Skip to content

Instantly share code, notes, and snippets.

@aslamatwebdevstudios
Created April 28, 2023 14:55
Show Gist options
  • Save aslamatwebdevstudios/d3825fa918b814648244a184bba61ea4 to your computer and use it in GitHub Desktop.
Save aslamatwebdevstudios/d3825fa918b814648244a184bba61ea4 to your computer and use it in GitHub Desktop.
Example theme.json file
{
"version": 1,
"settings": {
"color": {
"primary": "#0073aa",
"secondary": "#005b8e",
"text": "#333",
"background": "#f5f5f5"
},
"typography": {
"body": {
"font-family": "Helvetica, Arial, sans-serif",
"font-size": "16px",
"line-height": "1.5",
"letter-spacing": "0.5px"
},
"heading": {
"font-family": "Georgia, serif",
"font-weight": "bold",
"letter-spacing": "-0.5px"
}
},
"spacing": {
"padding": "20px",
"margin": "10px"
},
"layout": {
"content-width": "700px"
},
"custom": {
"my-custom-setting": "some value"
}
},
"blocks": {
"core/paragraph": {
"color": {
"text": "#666"
},
"typography": {
"body": {
"font-size": "18px"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment