Answers for "darken a color using css ans html"

CSS
0

css darken

.button {
  color: #ff0000;
}

/* note: 100% is baseline so 85% is slightly darker, 
   20% would be significantly darker */
.button:hover {
  filter: brightness(85%);
}
Posted by: Guest on November-24-2021
0

css darken color

// Darker a color
rgba(var(--color-variable), 0.5);
Posted by: Guest on July-09-2021

Browse Popular Code Answers by Language