I’m trying to adjust a theme to my liking and I’m having issues with finding the css variable for changing the button background color to a lighter shade when on hover.
I want it to be able to generate a lighter shade of the button color with any color that I choose for the button.
I’ve looked and looked and tried things, and couldn’t find the answer.
I think if you share the theme you are working with and a screenshot or two of the button(s) you’d like to change, it will be easier for others to offer some assistance.
Thanks ariehen, but I know how to change the color on hover to a different one. What I’m after is for it to be automatically lighter (on hover) than its original color, without having to write exactly what color I want it change it to.
So let’s say that the button’s color is salmon to begin with, and then on hover it’s salmon but 50% lighter/lower opacity.
I want to be able to choose from any color for the buttons in the Style Settings and have the button always be automatically the same color but lighter on hover.
Hope that makes sense…
I thought maybe background-color: rgba(var(--interactive-accent-hover), 0.6); could be easy, but that doesn’t work with it not being rgb to begin with.
So, there’s probably a better way to do this (there always is), but following the trail from the original →
You could make a new one, let’s say --color-accent-3, for both theme modes and play around with the values until you get something you like. It’s worth a shot.