<p class="text-lg">Here's a <a class="cool-link" href="#0">cool link</a>.</p>
// 💡 CSS Nugget: New text-decoration properties
// 💬 A look at the new text-decoration-color property
// 🔗 https://codyhouse.co/nuggets/new-text-decoration-properties

body {
  padding: 2em;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cool-link {
  color: indigo;
  text-decoration-color: hsla(275, 100%, 25%, 0.3);
  // text-decoration-style: wavy; // 🤟
  transition: .3s;

  &:hover {
    text-decoration-color: hsla(275, 100%, 25%, 1);
  }
}
View Compiled

External CSS

  1. https://codepen.io/codyhouse/pen/oNxLjqp
  2. https://unpkg.com/codyhouse-framework/main/assets/css/style.css

External JavaScript

  1. https://unpkg.com/codyhouse-framework/main/assets/js/util.js