One of the challenges I am facing is changing the CSS for a button:
.Button {
background-color: #somehex;
}
After experimenting with different methods, I have settled on adjusting the background-color
to be slightly darker when the user hovers over the button:
.Button:hover {
transition: 0.2s ease-in;
background-color: #ALittleDarkerHex;
}
However, this process can be quite laborious as I have to manually find a darker shade of the existing color. Is there an easier way in CSS to darken the background-color
of a button?