3 ms·
> unfortunately you’ll have to write it out each time you change the colour of a link Or you can just use CSS variables: <style> :root { --link-color:
by katsura 6y ago
> unfortunately you’ll have to write it out each time you change the colour of a link
Or you can just use CSS variables:
<style>
:root {
--link-color: 0, 0, 0;
}
a {
color: rgb(var(--link-color));
text-decoration-color: rgba(var(--link-color), .2);
}
</style>
<a href="#">Hello world</a>