Chris Collins

Accessible text gradients using CSS

19 February 2019

Accessible text gradients using CSS
h1 {
font-size: 3rem;
background: #2193b0; /* fallback for old browsers */
background: linear-gradient(
to right,
#6dd5ed,
#2193b0
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}