@gridkitjs/theme-tailwind
Palette tokens, dark mode, and the grid's styles.
@gridkitjs/react renders semantic class names — gridkit-data-grid, header-cell, grid-row — and this stylesheet targets them directly. Nothing needs to scan component source, and every colour is a CSS custom property, so overriding one is plain CSS.
Install
npm install @gridkitjs/theme-tailwind@import "tailwindcss";
@import "@gridkitjs/theme-tailwind/styles.css";Semantic classes
Theme tokens
:root {
--gridkit-accent: oklch(0.6 0.17 145);
--gridkit-line: oklch(0.9 0.01 145);
}Dark mode
The dark: variant is bound to a .dark class rather than the OS preference, so you drive the theme yourself:
document.documentElement.classList.toggle("dark", isDark);