Merge pull request #2999 from roots/feat-bud-config

This commit is contained in:
Kelly Mears
2022-09-25 10:08:02 -07:00
committed by GitHub
3 changed files with 1259 additions and 13 deletions

View File

@@ -39,5 +39,38 @@ export default async (app) => {
/**
* URI of the `public` directory
*/
.setPublicPath("/app/themes/sage/public/");
.setPublicPath("/app/themes/sage/public/")
/**
* Generate WordPress `theme.json`
*
* @note This overwrites `theme.json` on every build.
*/
.wpjson
.settings({
color: {
custom: false,
customGradient: false,
defaultPalette: false,
defaultGradients: false,
},
custom: {
spacing: {},
typography: {
'font-size': {},
'line-height': {},
},
},
spacing: {
padding: true,
units: ['px', '%', 'em', 'rem', 'vw', 'vh'],
},
typography: {
customFontSize: false,
},
})
.useTailwindColors()
.useTailwindFontFamily()
.useTailwindFontSize()
.enable()
};

View File

@@ -1,8 +1,9 @@
// https://tailwindcss.com/docs/configuration
module.exports = {
content: ["./index.php", "./app/**/*.php", "./resources/**/*.{php,vue,js}"],
theme: {
extend: {
colors: {},
colors: {}, // Extend Tailwind's default colors
},
},
plugins: [],

1232
theme.json

File diff suppressed because it is too large Load Diff