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

@zazz-ui/core

v0.4.1

Published

Zazz Design Framework — a zero-build, semantic-token CSS + vanilla JS UI kit built on modern web standards.

Readme

@zazz-ui/core

Zazz is a CSS and vanilla JavaScript UI kit that does not require a build step. It uses semantic design tokens, cascade layers, data-* variants, and browser APIs such as popover, <dialog>, invoker commands, anchor positioning, and view transitions.

Docs: https://zazz.sh (component gallery, tokens, guides, and a build-your-first-page tutorial)

Install

pnpm add @zazz-ui/core
import "@zazz-ui/core/index.css"; // all styles, imported in cascade order
import "@zazz-ui/core"; // custom elements and shared behaviors

From a CDN:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@zazz-ui/[email protected]/dist/zazz.css" />
<script type="module" src="https://cdn.jsdelivr.net/npm/@zazz-ui/[email protected]/dist/zazz.js"></script>

Use an exact version in CDN URLs. Each release includes dist/sri.json, which lists the SHA-384 hash for every published file. Use those hashes in integrity attributes.

You can also copy files directly. Each primitive has a folder under src/primitives/<name>/ containing its stylesheet, script, and HTML examples. A zazz-ui CLI for copying primitives and their dependencies is planned.

Usage

<button class="ui-button" data-variant="primary">It works!</button>

Components are classes (.ui-button, .ui-dialog, .ui-field), and variants are data-* attributes (data-variant, data-size) rather than modifier classes.

Theming

Every value in the kit resolves from a CSS custom property, which gives you three override surfaces:

/* 1. Global tokens move the whole system */
:root {
  --primary: oklch(0.6 0.2 145);
  --radius-md: 0;
}

/* 2. Component hooks (--ui-*) restyle one primitive everywhere */
:root {
  --ui-button-radius: var(--radius-full);
}
<!-- 3. The same hooks set inline restyle one instance -->
<button class="ui-button" style="--ui-button-background: var(--secondary)">One-off</button>

Color roles resolve through light-dark(), so light and dark themes work out of the box and follow the OS preference (pin one with a .dark class on <html>). Styles live in cascade layers, so your own CSS can override anything without !important or specificity fights. The extending guide covers adding your own tokens, utilities, and variants.

Layout

The .container is not a fixed-width box. A region (main, header, footer, section, article) holding a .container becomes a grid of named width bands, and each direct child of the container picks its band. Measured text and full-bleed media can be siblings in the same flow:

<section>
  <div class="container">
    <h2>Sits in the default md band</h2>
    <figure data-container="bleed">
      <img src="/wide.jpg" alt="" />
    </figure>
    <p>Back to the md band.</p>
  </div>
</section>

See layout and containers for the band model, the article reading-measure variant, and responsive container variants.

Browser support

Zazz targets the latest Chrome, Firefox, and Safari, two versions back. Features below that floor are feature-detected with a polyfill or a graceful fallback where practical. The kit leans on modern CSS (cascade layers, container style queries, subgrid, light-dark()), so older browsers get a degraded but functional experience rather than a pixel-perfect one.

The head loads exactly one polyfill: invokers/interest, for Interest Invokers (interestfor), which is Chromium-only and drives tooltip triggers. Everything else the kit builds on — the Popover API, Invoker Commands, native <dialog>, <details> — is native across the floor. CSS anchor positioning is below the floor and is gated behind @supports with a UA-centered fallback.

Package layout

src/
├── index.css        stylesheet entry: @imports base + every primitive in cascade order
├── index.js         script entry: registers every custom element / behavior
├── base/            tokens, reset, typography, utilities, layout + shared runtime
└── primitives/<name>/       one folder per primitive: <name>.css, <name>.ts, examples (.html)
dist/
├── zazz.css         flattened single-file bundle (loaded by CDN tags)
├── zazz.js
└── sri.json         sha384 hashes of every published css/js file

The package includes readable, unminified .js and matching .d.ts files compiled from TypeScript. Component scripts are optional: the CSS works on its own, and the scripts add behaviors (typeahead, carousels, command menus, hotkeys) as custom elements and small helpers.

Development

This package is part of the zazz-ui monorepo. pnpm build compiles TypeScript beside each .ts file, then runs vp pack. pnpm dev runs the TypeScript compiler in watch mode.

See CONVENTIONS.styles.md and CONVENTIONS.scripts.md before contributing.

License

MIT