Tailwind's group-hover
is not working for me. I'm simply trying to change text color, which doesn't require any special config.
Am I forgetting something?
For reference my project is a Vue (Nuxt.js) app, all other Tailwind features are working for me and I've used TW group-hover on other projects without issue.
FAILS: Tried the following on a basic welcome page in my app.
<div class="group">
<div class="group-hover:text-gray-300">Hover me</div>
<div class="group-hover:text-red-300">Hover me</div>
</div>
WORKS: The same code works fine in Codepen https://codepen.io/MarsAndBack/pen/MWjroVZ
My tailwind.config.js
:
module.exports = {
variants: {},
plugins: [
require('@tailwindcss/custom-forms')
],
purge: {
enabled: process.env.NODE_ENV === 'production',
content: [
'components/**/*.vue',
'layouts/**/*.vue',
'pages/**/*.vue',
'plugins/**/*.js',
'nuxt.config.js'
]
},
theme: {
extend: {
colors: {
brandGreen: {
light: '#5bb751',
default: '#5bb751',
dark: '#3b7935',
darker: '#33602e'
}
}
},
screens: {
'xs': '480px'
}
}
}