Open this example in the interactive library
Source code
<div
class="demo bg-[repeating-linear-gradient(45deg,#e0f2fe_0_8px,#f8fafc_8px_16px)]"
>
Create repeating diagonal stripes
</div>
Create repeating diagonal stripes with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div
class="demo bg-[repeating-linear-gradient(45deg,#e0f2fe_0_8px,#f8fafc_8px_16px)]"
>
Create repeating diagonal stripes
</div>