I'm trying to get the text color in a button to change when I hover over it but it doesn't work... My React code is this
<button className="px-4 py-2 bg-blue-500 text-light hover:bg-light hover:border-2 hover:border-blue-500 hover:text-blue-500">Sign Up</button>
and my tailwind config file looks like this
const colors = require("tailwindcss/colors");
module.exports = {
purge: [],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
light: "#e2f3f5",
teal: "#22d1ee",
blue: "#3d5af1",
dark: "#0e153a",
},
},
},
variants: {
extend: {
fontSize: ["hover", "focus"],
backgroundOpacity: ["active"],
borderWidth: ["hover", "focus"],
textColor: [
"responsive",
"dark",
"group-hover",
"focus-within",
"hover",
"focus",
],
},
},
plugins: [],
};
Yet the text color does not change on hover. Can someone please help me?