Open this example in the interactive library
Source code
<div
class="demo [--accent:#0f766e] text-(color:--accent) border-2 border-(color:--accent)"
>
Use one custom property for coordinated colour
</div>
Use one custom property for coordinated colour with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div
class="demo [--accent:#0f766e] text-(color:--accent) border-2 border-(color:--accent)"
>
Use one custom property for coordinated colour
</div>