News for hackers. Stuff that matters.
Re:Show HN: A simple, plain, minimal, classless CSS for simp... by katsura on Sunday December 06, 2020 @01:12PM (#25325302)
> 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>

There are no comments on this comment yet.