@gridkitjs/theme-tailwind v0.4.0
Minor Changes#
-
a01c851: The stylesheet no longer registers its own
@custom-variant dark— it now follows whateverdark:variant your app's own Tailwind build already resolves to, so it never conflicts with an app that configures its own (a class, adata-attribute, or anything else). Out of the box, with nothing customized, a grid now follows the OSprefers-color-schemeinstead of a.darkclass.To keep the previous class-toggle behavior, declare it yourself, same as any Tailwind v4 app would:
@import "tailwindcss"; @custom-variant dark (&:where(.dark, .dark *)); @import "@gridkitjs/theme-tailwind/styles.css";Also new:
.gridkit-light/.gridkit-dark, which pin a grid to one palette regardless of the ambientdark:state. Put either on any ancestor of the grid, including the grid's own root, to force a single grid's theme independent of the app around it.