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

@minion-stack/design-tokens

v0.1.0

Published

Canonical design tokens (CSS custom properties via Tailwind 4 @theme) shared across the Minion platform.

Readme

@minion-stack/design-tokens

Canonical design tokens for the Minion platform — one source of truth for color, radius, shadow, elevation, motion and type tokens shared by minion_hub and minion_site. Tokens are plain CSS custom properties declared via Tailwind 4's @theme directive, so they generate utilities (bg-bg, text-foreground, rounded-lg, shadow-md, …) and are available at runtime as var(--…).

Install

Hub and site use Bun and are not part of the pnpm workspace, so consume via the published package once released:

// package.json
"dependencies": { "@minion-stack/design-tokens": "^0.1.0" }

…or, for local development before publishing, a workspace file dependency:

bun add @minion-stack/design-tokens@file:../packages/design-tokens

Usage

In the app's entry stylesheet (src/app.css), import Tailwind, then the tokens, then optionally the shared utilities:

@import 'tailwindcss';
@import '@minion-stack/design-tokens/tokens.css';
@import '@minion-stack/design-tokens/utilities.css'; /* .surface-*, .t-* type scale */

Tailwind 4 cannot split a single @theme across files at the language level, but it merges multiple @theme blocks — so the shared tokens load first and the app overrides only what differs.

Per-app overrides (the brand-accent pattern)

The shared accent is blue (--color-accent: #3b82f6, hub default). The marketing site re-declares the semantic accent to pink after the import:

@import 'tailwindcss';
@import '@minion-stack/design-tokens/tokens.css';

/* site-only semantic overrides */
@theme {
  --color-accent: #e8547a; /* --color-brand-pink */
  --color-accent-foreground: #ffffff;
  --color-accent-light: #f472b6;
  --color-accent-glow: rgba(232, 84, 122, 0.15);
}

Components reference only semantic tokens (bg-accent, text-foreground), so the same component renders blue in the hub and pink on the site with zero forking.

Runtime theming

The hub recolors tokens at runtime (8 theme presets) by setting the same custom properties on :root via applyTheme(). Inline :root declarations win over @theme defaults by the normal cascade, so runtime theming composes cleanly on top of these tokens.

Files

| Export | Contents | |---|---| | ./tokens.css | The @theme block: fonts, colors, radius, shadows, elevation, motion. | | ./utilities.css | @layer components.surface-1..4, .divide-hairline, .hover-lift, .t-display..t-mono type scale. |