css darken property code example
Example 1: css hover darken color
.your-css-class:hover {
background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25));
}
Example 2: how to lighten the color of text in html
There is "opacity" which will make the background shine through:
opacity: 0.5;(change the value according to your needs)