Tailwind CSS
Use Tailwind CSS utility classes to style consent components via the slot system.
c15t works with Tailwind CSS out of the box. Use the slots theme option to apply Tailwind utility classes to any component part.
Setup
Tailwind v4
No additional configuration needed. Tailwind v4 automatically scans your source files.
Tailwind v3
Add c15t's component paths to your content array:
Using Tailwind with Slots
Apply Tailwind classes via the theme's slots object:
Dark Mode with Tailwind
Combine Tailwind's dark mode with c15t's dark tokens:
Optional: noStyle Mode
If you want Tailwind to own all layout and visual styling, use noStyle: true.
Info
When using noStyle: true with Tailwind, you're responsible for all layout and visual styling. Start with slots first, then switch to noStyle only when you need full control.
For full custom markup (not just styles), see Headless Mode.