JSFiddle - React, Tailwind, and code Playground

by camel2243

HTML

<ul>
    <li>This text will be orange.</li>
</ul>

<ul>
    <li>Lorem ipsum dolor sit amet.</li>
    <span>test</span>
</ul>

CSS

ul li:only-of-type {
    color: orange;
}