JSFiddle - React, Tailwind, and code Playground

by camel2243

HTML

<ul>
    <li>This text will be orange.</li>
    <li>Lorem ipsum dolor sit amet. <span>This text will be orange.</span></li>
    <li>Lorem ipsum dolor sit amet. <a href="#">123</a></li>
</ul>

CSS

ul *:first-of-type {
    color: orange;
}

ul li:last-of-type {
    color: blue;
}