Open this example in the interactive library
Source code
<details
class="demo open:[&_summary]:text-amber-800 open:[&_summary]:font-bold"
>
<summary>Paper notes</summary>
Grain follows the spine.
</details>
Open details heading colour with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<details
class="demo open:[&_summary]:text-amber-800 open:[&_summary]:font-bold"
>
<summary>Paper notes</summary>
Grain follows the spine.
</details>