Currently working with React (Next.js) and TailwindCSS.
<ul>
<li>
<h1 className="bg-red-400">first</h1>
</li>
<li>
<h1 className="bg-green-400">second</h1>
</li>
<li>
<h1 className="bg-green-400">third</h1>
</li>
<li>
<h1 className="bg-green-400">four</h1>
</li>
</ul>
I'm interested in creating a TailwindCSS class that will specifically change the background color of the first child's subchild within the <ul>
element, like so:
ul > li::first-child > h1