🚧 theme.json generator updates
This commit is contained in:
@@ -46,7 +46,11 @@ export default async (app) => {
|
||||
*
|
||||
* @note This overwrites `theme.json` on every build.
|
||||
*/
|
||||
.themeJson({
|
||||
.wpjson
|
||||
.useTailwindColors()
|
||||
.useTailwindFontFamily()
|
||||
.useTailwindFontSize()
|
||||
.settings({
|
||||
color: {
|
||||
custom: false,
|
||||
customGradient: false,
|
||||
@@ -68,9 +72,5 @@ export default async (app) => {
|
||||
customFontSize: false,
|
||||
},
|
||||
})
|
||||
|
||||
/**
|
||||
* Set `theme.json` colors from `tailwind.config.js` values
|
||||
*/
|
||||
.useTailwindColors();
|
||||
.enable()
|
||||
};
|
||||
|
||||
19
theme.json
19
theme.json
@@ -1,17 +1,13 @@
|
||||
{
|
||||
"__generated__": "⚠️ This file is generated. Do not edit.",
|
||||
"$schema": "https://schemas.wp.org/trunk/theme.json",
|
||||
"version": 2,
|
||||
"settings": {
|
||||
"color": {
|
||||
"custom": false,
|
||||
"customGradient": false,
|
||||
"palette": [
|
||||
{
|
||||
"name": "Primary",
|
||||
"slug": "primary",
|
||||
"color": "#525ddc"
|
||||
}
|
||||
]
|
||||
"defaultPalette": false,
|
||||
"defaultGradients": false
|
||||
},
|
||||
"custom": {
|
||||
"spacing": {},
|
||||
@@ -22,7 +18,14 @@
|
||||
},
|
||||
"spacing": {
|
||||
"padding": true,
|
||||
"units": ["px", "%", "em", "rem", "vw", "vh"]
|
||||
"units": [
|
||||
"px",
|
||||
"%",
|
||||
"em",
|
||||
"rem",
|
||||
"vw",
|
||||
"vh"
|
||||
]
|
||||
},
|
||||
"typography": {
|
||||
"customFontSize": false
|
||||
|
||||
Reference in New Issue
Block a user