Open this example in the interactive library
Source code
<div class="demo [&_p_strong]:text-orange-800">
<p>Paragraph <strong>emphasis</strong></p>
<strong>Unstyled sibling</strong>
</div>
Style a deep descendant without styling siblings with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div class="demo [&_p_strong]:text-orange-800">
<p>Paragraph <strong>emphasis</strong></p>
<strong>Unstyled sibling</strong>
</div>