npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gridkitjs/theme-tailwind

v0.7.0

Published

Tailwind v4 theme for GridKit — palette tokens, dark mode and grid styles.

Readme

@gridkitjs/theme-tailwind

Tailwind v4 theme for GridKit — palette tokens, dark mode and the grid's styles.

Early development. The API is still moving and may break between minor versions.

pnpm add @gridkitjs/theme-tailwind

Import it after Tailwind, in the stylesheet where you import tailwindcss:

@import "tailwindcss";
@import "@gridkitjs/theme-tailwind/styles.css";

That is all — @gridkitjs/react renders semantic class names (gridkit-data-grid, header-cell, grid-row), and this stylesheet targets them directly. Nothing needs to scan the component source.

Dark mode

GridKit doesn't register its own dark: variant — it follows whatever your app's Tailwind build already resolves dark: to. Out of the box that's the OS preference. For the common class-toggle pattern, declare it yourself, same as any Tailwind v4 app would:

@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));
@import "@gridkitjs/theme-tailwind/styles.css";
document.documentElement.classList.toggle("dark", isDark);

Forcing a theme on one grid

.gridkit-light / .gridkit-dark pin a grid to one palette regardless of the ambient dark: state. Put either on any ancestor of the grid, including the grid's own root:

<div className="gridkit-dark">
  <DataGridComponent ... />
</div>

Theming

Every colour is a CSS custom property, so overriding one is plain CSS — no Tailwind config:

:root {
  --gridkit-accent: oklch(0.6 0.17 145);
  --gridkit-line: oklch(0.9 0.01 145);
}

| Token | What it colours | | --------------------------- | ----------------------------------- | | --gridkit-surface | Header background | | --gridkit-surface-muted | Hover background | | --gridkit-line | Borders | | --gridkit-hover-line | Cell hover outline, resize edge | | --gridkit-fg | Text | | --gridkit-fg-muted | Secondary text, resize grip | | --gridkit-accent | Accent, drop indicator, focus ring | | --gridkit-selected | Selected row, column or cell | | --gridkit-selected-strong | A selected row or cell also hovered |

Redefine them inside @variant dark { } (or under .gridkit-dark) to change the dark palette too:

:root {
  --gridkit-accent: oklch(0.6 0.17 145);

  @variant dark {
    --gridkit-accent: oklch(0.7 0.15 145);
  }
}

--gridkit-selected-strong earns its place because hover already claims --gridkit-surface-muted: with one token a selected row would lose its highlight under the pointer.

State classes

The grid marks its own state, so a consumer's CSS can reach it too:

| Class | On | | ------------------------------------------------------------- | --------------------------------------------------- | | is-selected | A selected grid-row, header-cell or grid-cell | | is-resizing / is-dragging | The column being resized or dragged | | is-drop-before / is-drop-after | Where a dragged column would land | | is-reorderable / is-wrapped | A header that drags; a cell that wraps | | selectable-rows / selectable-columns / selectable-cells | On the grid, per selectable | | no-hover-rows / no-hover-columns / no-hover-cells | On the grid, per hoverable |

The selectable-* classes enable and the no-hover-* classes disable, because selection is off by default and hover is on — each follows its own default.

License

MIT © Blagoja Blazhevski