Skip to content

Text Decoration

Decoration utilities set text-decoration. They are most useful for links, struck-through prices, and removing an inherited line.

Class text-decoration
text-underline underline
text-line-through line-through
text-none none
<p class="text-underline">Linked text</p>
<p class="text-line-through">Old price</p>
<a href="#" class="text-none">Custom link style</a>
<a class="text-none text-md-underline" href="#">Underlined on wider screens</a>

Responsive: text-sm-underline … text-2xl-none.

These classes are in the separate responsive module: import nightcss/utilities/responsive after the base bundle, or use nightcss/full.

  • Underlines are the most reliable link cue. If you remove one with text-none, replace it with another signal: weight, colour, or an icon.
  • line-through alone can be ambiguous. Pair it with a label such as “was” or a reduced opacity; do not rely on colour alone.
  • The base layer already handles link decoration. Use these classes for one-off changes, not to restyle every link.