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

@smart-grid/themes

v1.2.0

Published

CSS themes for Smart Grid — smart-light and smart-dark presets, toolbar, tool panel, pagination, and chart tokens.

Readme

@smart-grid/themes

npm Monorepo / npm release 1.2.0 (stable 1.x).

Shared CSS for Smart Grid: light and dark presets (smart-light / smart-dark), toolbar, filters, pagination, Columns | Filters tool panel, chart panel, tree and master/detail affordances, and focus states. Pair with @smart-grid/react, @smart-grid/angular, or @smart-grid/js.

Live demo & docs: https://smart-grid-mu.vercel.app/

The grid host needs a theme class (smart-light or smart-dark). Framework components set this from the theme input/prop; vanilla createSmartGrid applies it on the root element.

What's new in 1.2.0

  • Right-side tool panel layout (smart-grid__main--with-panel), collapsed panel strip, column resize handle styles.
  • Header filter overflow fixes; pinned column width tokens. See CHANGELOG.md.

Install

npm install @smart-grid/themes

No runtime dependency on @smart-grid/core — CSS only.

Usage (recommended)

Import the package export (resolves to dist/smart-grid.css on npm):

@import "@smart-grid/themes/smart-grid.css";
// React / Vite / webpack
import "@smart-grid/themes/smart-grid.css";

Angular angular.json

{
  "projects": {
    "your-app": {
      "architect": {
        "build": {
          "options": {
            "styles": ["src/styles.css", "node_modules/@smart-grid/themes/dist/smart-grid.css"]
          }
        }
      }
    }
  }
}

Or @import "@smart-grid/themes/smart-grid.css"; in src/styles.css (same as the docs site).

Plain HTML

<link rel="stylesheet" href="/node_modules/@smart-grid/themes/dist/smart-grid.css" />

Theme classes

| Class on grid root | Preset | | --- | --- | | smart-light (default) | Light borders, white surface | | smart-dark | Dark slate surface |

Override tokens on .smart-grid or .smart-grid.smart-dark, for example --sg-accent, --sg-border, --sg-bg (see source CSS).

Wiring theme in adapters

| Adapter | How | | --- | --- | | React SmartGrid | theme="smart-light" or theme="smart-dark" | | Angular <smart-grid> | [theme]="'smart-dark'" | | Vanilla createSmartGrid | theme: "smart-light" in options |

Package contents (npm)

| Path | Purpose | | --- | --- | | dist/smart-grid.css | Primary stylesheet (built on prepack) | | src/smart-grid.css | Source copy (same content; for deep links / monorepo) | | README.md, CHANGELOG.md, LICENSE | Docs and MIT licence |

Exports map:

  • @smart-grid/themes./dist/smart-grid.css
  • @smart-grid/themes/smart-grid.css./dist/smart-grid.css
  • @smart-grid/themes/src/smart-grid.css → source path (backward compatible)

Publish checklist (maintainers)

From repo root, after bumping version in lockstep with other @smart-grid/* packages:

npm --workspace @smart-grid/themes run build
npm pack -w @smart-grid/themes
# inspect tarball: dist/smart-grid.css, LICENSE, README.md
npm publish -w @smart-grid/themes --access public

prepack runs build automatically so dist/ is fresh in the published tarball.

Related packages

Links

License

MIT — see LICENSE in this package.