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

@mond-design-system/tokens

v3.2.0

Published

Mond Design System — design tokens. CSS custom properties: core scales, semantic contract with neutral defaults (light + dark), brand template for consuming apps.

Readme

@mond-design-system/tokens

The CSS custom properties @mond-design-system/react reads. Plain CSS — no build step, no JS import, no theme object.

pnpm add @mond-design-system/tokens
import "@mond-design-system/tokens/styles.css";

That one file pulls in the core scales, the semantic contract and the base reset. Individual layers are exported too (./core/spacing.css, ./semantic.css, ./base.css) for the rare app that wants only some of them.

Three layers

Core scales (core/*.css) are the rungs: --mds-space-1…12, --mds-radius-1…7, --mds-text-xs…4xl, durations, easings, z-indices, icon and avatar sizes.

Semantic aliases name what a rung is for: --mds-pad-card, --mds-text-button-lg, --mds-surface-raised, --mds-control-border, --mds-radius-modal. Components read these and only these.

Base (base.css) is the only global CSS the system ships: a reset, page defaults, and one focus treatment.

Why components never read a rung

A step is a number. --mds-space-2 is 8px in a chip, a list row, a tab and a toast, and a brand that wants roomier chips cannot have them without moving the other three. So every step a component reads has a name for the role it plays, and re-pointing that name moves exactly one thing.

The library's dsbridge check gate enforces it, along with the failures CSS keeps quiet about: a literal hex, a literal px outside a declared breakpoint, an undefined --mds-* (which drops the declaration with no error anywhere), and a brand file missing part of the semantic contract or its dark block.

Rebranding

Copy brand-template.css into your app and edit the values. It starts as the mond defaults, so a copy with nothing changed renders what you see today.

import "@mond-design-system/tokens/styles.css";
import "@mond-design-system/react/styles.css";
import "./tokens/brand-acme.css"; // last — it wins by cascade order

Four rules, and the first is the one that bites:

  • The light block re-declares every semantic token. A missing alias does not error; it silently falls through to the mond default.
  • The dark block ([data-theme="dark"]) re-points only what flips. Tokens on fixed backdrops — the scrim, text over media, the letterbox behind a video — stay put in both themes.
  • @font-face lives in your app. Point the three --mds-font-* role tokens at your faces here.
  • Keep WCAG AA: text 4.5:1 against its surfaces, control borders and the focus ring 3:1.

Colour is not the only surface. Density, radius, control padding and the type scale are aliases too, so a brand can be tighter or rounder without touching a component.

License

MIT