Create Colors Palette starting from a base color

TiagoDecarli

New Member
I need to implement Theming on a website (made in ASP.net MVC).The idea is that the user picks one color (the base color), and from it I have to generate:
  • hover state color (40% lighter)
  • pressed state color (20% lighter)
  • darker color (20% darker)
I tried to make the implementation, but I realize that this is not working properly.If user puts a lighter color, then the hover state would become almost invisible.Searching the internet I found this link which seems to be what I'm looking for, but I couldn't find a real example.Are there any projects or examples that do what I am trying to achieve?
 
Back
Top