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

@zenbujs/view-theme

v0.0.1

Published

Tailwind v4 @theme mapping that wires shadcn-style utility classes (bg-card, text-muted-foreground, border, rounded-md, …) onto the host design tokens that zenbu auto-injects into every plugin view. Plugins import this after `@import "tailwindcss"` and im

Readme

@zenbujs/view-theme

Tailwind v4 @theme mapping that wires shadcn-style utility classes onto the host design tokens that zenbu auto-injects into every plugin view.

Plugin views run in an iframe served by their own Vite root, but they're embedded in a host app that already has a design system. This package is the tiny bridge: with <View> propagating the host's :root tokens into the iframe (via the URL on first paint and postMessage on later changes), importing this stylesheet makes bg-card, text-muted-foreground, border, rounded-md, etc. all resolve to the host's current theme — automatically following dark mode toggles, custom palettes, anything the host changes at runtime.

Usage

/* In your plugin view's stylesheet (e.g. src/views/.../styles.css) */
@import "tailwindcss";
@import "@zenbujs/view-theme/tailwind.css";

/* From here on, shadcn class names "just work" with the host theme. */

That's it. No duplicated token values. No .dark / prefers-color-scheme blocks. No theme-change wiring on the plugin side.

Without Tailwind

Plugins that don't use Tailwind can ignore this file entirely and reference the underlying CSS custom properties directly:

.my-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

zenbu injects those vars into the iframe synchronously before first paint, so no flash.

Tokens covered

The full shadcn standard set:

--background           --foreground
--card                 --card-foreground
--popover              --popover-foreground
--primary              --primary-foreground
--secondary            --secondary-foreground
--muted                --muted-foreground
--accent               --accent-foreground
--destructive          --destructive-foreground
--border  --input  --ring
--radius

The host defines whichever subset it wants; missing tokens are simply not forwarded, and var(--name) falls back to whatever the plugin specifies as a default.