JSFiddle - React, Tailwind, and code Playground
HTML
<p>
<span class="simpleUnderline">Underlined using Border-bottom</span>
</p>
<p>
<span class="Dottedunderline">Dotted underline with 5px height</span>
</p>
<p>
<span class="simpleUnderline underline--blue">Wrapping text across lines</span>
</p>
CSS
.simpleUnderline {
border-bottom: 2px solid currentColor;
}
.Dottedunderline{
border-bottom: 5px red dashed;
}
.underline--blue {
border-bottom-color: blue;
}