I am creating a Button component using styled-system (with styled-components).
I want to create a hover effect that slightly lightens the color of the button, regardless of what that color is.
For instance, let's imagine three buttons -- a default button, primary button and secondary button:
<Button>Default</Button>
<Button bg="primary">Primary</Button>
<Button bg="secondary">Secondary</Button>
And let's imagine that the default color is dark grey, the primary color is green and the secondary color is blue.
So, if I hover over the default button, the color should be a slightly lighter form of the dark grey. For the primary, a slightly lighter green, for secondary, a lighter blue.
I cannot figure out, though, how to do this?
Any ideas?