Destructure defaultTheme and defaultConfig

This commit is contained in:
Oliver Davies 2019-05-10 23:04:38 +01:00
parent a7c5803dd2
commit 2dcb1bf963

View file

@ -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 }),
],
}