Tailwind CSS interoperability
An optional Tailwind preset exposes WarUI tokens as Tailwind theme values, and the grid exposes stable class hooks for cell, header and row customization. The example also shows that Tailwind's preflight reset does not break grid layout.
Planned. This page shows the specification from issue #205. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid on a page with Tailwind preflight loaded and status cells styled with Tailwind utilities.
Expected behavior
The grid layout is identical with and without preflight. Utilities that reference tokens recolor when the theme switches, and Tailwind's dark: variant stays in sync with the grid theme.
Planned API surface
@warui/tailwind-preset (package name)cellClass optionheaderClass optionrowClass option--war-* tokensAcceptance criteria
- Grid styles survive Tailwind preflight (box-sizing, border and line-height resets) with no visual diff (pending)
- The preset maps every global --war-color-* token to Tailwind color names (pending)
- The class strategy for dark mode can be driven from the same element as data-war-theme (pending)
- cellClass accepts a string or a function and applies utility classes without specificity conflicts (pending)
- Grid CSS uses a cascade layer so that Tailwind utilities can override it predictably (pending)