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