css darken

65

.button {
  color: #ff0000;
}

/* note: 100% is baseline so 85% is slightly darker, 
   20% would be significantly darker */
.button:hover {
  filter: brightness(85%);
}
@media (prefers-color-scheme: dark) {

}

Comments

Submit
0 Comments