Destructure defaultTheme and defaultConfig
This commit is contained in:
parent
a7c5803dd2
commit
2dcb1bf963
|
@ -1,5 +1,5 @@
|
||||||
const defaultConfig = require('tailwindcss/defaultConfig')
|
const { variants } = require('tailwindcss/defaultConfig')
|
||||||
const defaultTheme = require('tailwindcss/defaultTheme')
|
const { spacing } = require('tailwindcss/defaultTheme')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
prefix: 'tw-',
|
prefix: 'tw-',
|
||||||
|
@ -15,12 +15,12 @@ module.exports = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
variants: {
|
variants: {
|
||||||
textColor: [...defaultConfig.variants.textColor, 'hocus'],
|
textColor: [...variants.textColor, 'hocus'],
|
||||||
fontStyle: [...defaultConfig.variants.fontStyle, 'hocus']
|
fontStyle: [...variants.fontStyle, 'hocus']
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
require('tailwindcss-interaction-variants')(),
|
require('tailwindcss-interaction-variants')(),
|
||||||
require('tailwindcss-list-reset')(),
|
require('tailwindcss-list-reset')(),
|
||||||
require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }),
|
require('tailwindcss-spaced-items')({ values: spacing }),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue