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

@kuzenbo/theme

v0.0.7

Published

Theme tokens, runtime, and prebuilt themes for Kuzenbo.

Readme

@kuzenbo/theme

Theme runtime, semantic tokens, and prebuilt themes for Kuzenbo.

Status: Public

✨ What This Package Solves

@kuzenbo/theme handles light/dark mode resolution, pre-hydration theme bootstrap, tokenized CSS variables, and provider-level runtime wiring.

📦 Install

bun add @kuzenbo/theme
npm install @kuzenbo/theme
pnpm add @kuzenbo/theme
yarn add @kuzenbo/theme

✅ Requirements

  • React 19+
  • react-dom
  • next-themes

🎨 Runtime Pairing

@kuzenbo/theme is the essential runtime package for Kuzenbo UI. Install it with @kuzenbo/core, @kuzenbo/ai, @kuzenbo/charts, @kuzenbo/date, @kuzenbo/notifications, @kuzenbo/datatable, @kuzenbo/code, or @kuzenbo/tiptap.

⚡ Quick Example

import type { ReactNode } from "react";

import "@kuzenbo/theme/prebuilt/kuzenbo.css";
import { ThemeBootstrapScript } from "@kuzenbo/theme";
import { ThemeProvider } from "@kuzenbo/theme";

export default function RootLayout({ children }: { children: ReactNode }) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body>
        <ThemeBootstrapScript />
        <ThemeProvider>{children}</ThemeProvider>
      </body>
    </html>
  );
}

🧱 Key Surface

  • Runtime APIs: ThemeBootstrapScript (root) and ThemeProvider (@kuzenbo/theme)
  • Bootstrap utilities: resolveThemeBootstrapPlan, getThemeBootstrapScript, applyThemeToRootElement
  • CSS assets: @kuzenbo/theme/prebuilt/*.css

🪜 Z-Index Layer Tokens

@kuzenbo/theme also provides semantic z-index layer tokens so components can share consistent stacking and apps can override globally with CSS variables.

  • 🧱 Base layers: z-underlay, z-behind, z-base, z-inline
  • 🪄 Raised layers: z-raised, z-elevated, z-floating, z-sticky
  • 🧩 Overlay layers: z-overlay, z-toast-viewport, z-affix, z-toast-stack, z-immersive
:root {
  --kb-z-sticky: 60;
  --kb-z-overlay: 80;
  --kb-z-toast-viewport: 120;
}

🖱️ Cursor Token Utility

@kuzenbo/theme provides a semantic cursor token and utility for interactive surfaces:

  • Token: --kb-cursor (default: pointer)
  • Utility: cursor-clickable (cursor: var(--kb-cursor))
:root {
  --kb-cursor: pointer;
}

.read-only-surface {
  --kb-cursor: default;
}
<button className="cursor-clickable">Open</button>

Use scoped overrides when a section should intentionally keep the default cursor while still consuming shared component utilities.

📐 Container Width Token

@kuzenbo/theme also exposes a layout token used by @kuzenbo/core Container:

  • Token: --kb-container-max-width (default: 86rem)
  • Usage: Container resolves max-width via var(--kb-container-max-width, 86rem)
:root {
  --kb-container-max-width: 92rem;
}

.reading-surface {
  --kb-container-max-width: 72rem;
}

🌫️ Overlay Scrim Tokens

Use shared scrim tokens to tune backdrop strength consistently across dialog-like overlays:

  • --kb-overlay-scrim-opacity (default: 0.1)
  • --kb-overlay-scrim-blur (default: 4px)

These tokens are consumed by Dialog, Sheet, Popover, AlertDialog, and PreviewCard backdrops.

🧱 Surface Layout Tokens

Tune modal/surface geometry globally without per-instance class overrides:

  • Dialog: --kb-dialog-max-width, --kb-dialog-edge-gutter
  • Sheet (left/right): --kb-sheet-side-width, --kb-sheet-side-max-width
  • Drawer: --kb-drawer-bleed, --kb-drawer-peek, --kb-drawer-stack-step, --kb-drawer-max-height, --kb-drawer-content-max-width-{xs|sm|md|lg|xl}, --kb-drawer-side-width-{xs|sm|md|lg|xl}, --kb-drawer-action-sheet-max-width, --kb-drawer-backdrop-opacity, --kb-drawer-backdrop-opacity-dark

🔔 Toast Layout Tokens

Control notification density and readable width at system level:

  • Viewport widths: --kb-toast-viewport-width-{xs|sm|md|lg|xl} and --kb-toast-viewport-width-{xs|sm|md|lg|xl}-sm
  • Toast card caps: --kb-toast-max-width-{xs|sm|md|lg|xl}

📊 Utility Layout Tokens

Additional cross-package layout tokens:

  • Overlay list cap (Select, Autocomplete, Combobox): --kb-overlay-list-max-height
  • Charts frame minimum height: --kb-chart-min-height
  • Sidebar defaults: --kb-sidebar-width, --kb-sidebar-width-mobile, --kb-sidebar-width-icon

✍️ Typography Tokens

Global typography primitives can now be tuned with --kb-typography-* variables:

  • Headings (Typography.Heading, H1..H6, Display, Subheading): --kb-typography-heading-*-size, --kb-typography-heading-*-line-height
  • Text variants (Typography.Text, Body, Lead, Muted, Small, Caption, Overline, Eyebrow): --kb-typography-text-*-size, --kb-typography-text-*-line-height
  • Prose wrapper (Typography.Prose): --kb-typography-prose-max-width, --kb-typography-prose-paragraph-margin-bottom, --kb-typography-prose-blockquote-size, --kb-typography-prose-blockquote-line-height, --kb-typography-prose-inline-code-size, --kb-typography-prose-code-size, --kb-typography-prose-code-line-height
  • Block/list primitives: --kb-typography-blockquote-border-width, --kb-typography-blockquote-padding-inline-start, --kb-typography-list-indent, --kb-typography-list-item-spacing, --kb-typography-list-item-line-height
:root {
  --kb-overlay-scrim-opacity: 0.14;
  --kb-overlay-scrim-blur: 6px;

  --kb-dialog-max-width: 34rem;
  --kb-sheet-side-max-width: 28rem;
  --kb-drawer-side-width-md: 22rem;

  --kb-toast-viewport-width-md: 280px;
  --kb-toast-viewport-width-md-sm: 340px;
  --kb-toast-max-width-md: 20rem;

  --kb-overlay-list-max-height: 24rem;
  --kb-chart-min-height: 280px;
  --kb-sidebar-width: 18rem;

  --kb-typography-heading-h1-size: 2.5rem;
  --kb-typography-heading-h1-line-height: 3rem;
  --kb-typography-text-body-size: 1.0625rem;
  --kb-typography-text-body-line-height: 1.875rem;
  --kb-typography-prose-max-width: 72ch;
  --kb-typography-list-indent: 1.5rem;
}

📚 Docs And Playgrounds

🧭 Compatibility And Status

@kuzenbo/theme is public and required for Kuzenbo UI package runtimes.