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

@monetizekit/design-tokens

v0.4.0

Published

Framework-agnostic MonetizeKit design tokens (Brand Direction v0.8, incl. §12 dark mode) — the single source of truth, with a theme × palette × mode resolver and build artifacts for JS/TS, CSS, Tailwind, and the SDK --mk-* contract.

Readme

@monetizekit/design-tokens

Framework-agnostic design tokens for Brand Direction v0.8 (incl. the §12 dark-mode system) — the single source of truth for MonetizeKit brand values, with a theme × palette × mode composition engine and build artifacts for JS/TS, CSS, Tailwind, and the SDK --mk-* contract.

Install

npm install @monetizekit/design-tokens

Composition model

Theming composes three orthogonal axes:

  • theme — brand identity (brand). Carries the frozen color ramp + structure (radius 0, 3px borders, hard shadows, tilt, Inter/JetBrains Mono).
  • palette — a named semantic color scheme: default (on-brand) plus nord, solarized, dracula, github, rose-pine, blue, green, unicorn (ported from the product app).
  • modelight | dark | system (system resolves via prefersDark).

Dark mode (§12)

Dark is inversion, not dimming. resolveTokens returns a mode-aware brand — the neutral set inverts (warm near-black grounds, cream edges), the hard-shadow color shade dims to #AFAD98 and is distinct from ink, and accent text lifts (violet-txt → #BB86FC). Saturated brand grounds (orange, yellow) do not invert; they use the fixed .on-color light-island set (also returned as resolved.onColor), which re-pins neutrals to their fixed light values and keeps a black edge + black text via onlight = #1A1A1A. Dark is driven by [data-theme="dark"] on the root; system follows prefers-color-scheme.

import { resolveTokens, tokensToCssVars } from "@monetizekit/design-tokens";

const tokens = resolveTokens({ theme: "brand", palette: "nord", mode: "system" }, { prefersDark: true });
const style = tokensToCssVars(tokens); // { "--background": "...", "--mk-orange": "#FF6B35", ... }

Build artifacts

| Import | File | Use | |---|---|---| | @monetizekit/design-tokens | dist/index.js | Typed data + resolveTokens/tokensToCssVars/mkContractVars | | @monetizekit/design-tokens/css | dist/tokens.css | :root + [data-theme="dark"] + .on-color + [data-palette] custom properties | | @monetizekit/design-tokens/theme | dist/theme.css | Tailwind v4 @theme inline mapping | | @monetizekit/design-tokens/tailwind | dist/tailwind-preset.js | Config-based Tailwind preset | | @monetizekit/design-tokens/mk | dist/mk-tokens.css | The @monetizekit/react SDK --mk-* contract | | @monetizekit/design-tokens/tokens.json | dist/tokens.json | Machine-readable source export |

Notes

  • Source of truth is TypeScript (src/brand.ts, src/palettes.ts); tokens.json is emitted from it. A follow-up may invert this to author DTCG sources and generate everything via Style Dictionary (incl. native Swift/Compose/Flutter targets) — the data shapes are designed to make that migration mechanical.