I have the following CSS for a button:
.Button {
background-color: #somehex;
}
When the user hovers over the button, I want the background-color to be a little darker. I have tried changing opacity, which didn't work, and currently am doing it this way:
.Button:hover {
transition: 0.2s ease-in;
background-color: #ALittleDarkerHex;
}
While this process works, it is really tedious because I have to manually look for a darker version of the color I am working with. I was wondering if there was an easier way to darken the background-color of a button using CSS.