Open this example in the interactive library
Source code
<p class="demo max-w-[22ch] first-line:font-bold">
A first-line style follows the line break even when the paragraph wraps
differently.
</p>
Emphasize the first rendered line with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<p class="demo max-w-[22ch] first-line:font-bold">
A first-line style follows the line break even when the paragraph wraps
differently.
</p>