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

@mfp-design-system/tokens

v0.5.0

Published

Design tokens for the mfp-design-system, built with Style Dictionary.

Readme

@mfp-design-system/tokens

Design tokens for the mfp-design-system. Authored as JSON, built with Style Dictionary into:

  • build/css/tokens.css — CSS custom properties (:root { --color-... })
  • build/js/tokens.js — ES module exports
  • build/ts/tokens.d.ts — TypeScript types
  • build/json/tokens.json — flattened JSON for tooling

Usage

// CSS variables (load once, e.g. in your app shell)
import '@mfp-design-system/tokens/css';

// JS/TS values
import { color, size } from '@mfp-design-system/tokens';
console.log(color.brand[500]);

Themes

Each app can pick a brand theme that overrides the design system's default brand colors. Components consume semantic tokens (--color-brand-primary, --color-brand-primary-hover, --color-brand-primary-fg, etc.) so a single import re-themes every primary button, focus ring, checked state, and switch.

import '@mfp-design-system/tokens/css'; // base + structural tokens
import '@mfp-design-system/tokens/themes/terracotta'; // brand overrides for this app

Themes ship with the package:

Theme names are the color (not the project) so any app can pick any theme — themes/navy isn't locked to the portfolio.

| Subpath | Intended for | Brand color | | --------------------- | ----------------- | ----------------------------------------------- | | ./themes/blue | default | #2563eb blue | | ./themes/terracotta | fourseasonsstudio | #c4622a terracotta + warm cream/brown palette | | ./themes/orange | garage-sales | #f97316 orange | | ./themes/sand | lessonforge | Blue accent on warm sand neutrals | | ./themes/navy | portfolio | #1a2744 navy | | ./themes/emerald | frula-homes | #1d9e75 emerald |

Authoring a new theme

Create src/themes/<name>.css and at minimum override the brand semantic tokens:

:root {
    --color-brand-primary: #c4622a;
    --color-brand-primary-hover: #a3501f;
    --color-brand-primary-fg: #fcfaf7;
    --color-brand-primary-subtle: #f5e6d8;
    --color-brand-primary-emphasis: #8b6914;
}

Themes can also override neutral semantic tokens (--color-text-default, --color-background-default, --color-border-*) for a fuller visual identity — see themes/terracotta.css for an example.

Status colors (--color-status-success-*, --color-status-error-*, etc.) are universal across themes — success is green everywhere, regardless of brand.

Add a subpath export in package.json after creating the file, then rebuild.

Authoring

Source files live in src/ and follow the W3C design tokens shape:

{
    "color": {
        "brand": {
            "500": { "$value": "#3b82f6", "$type": "color" }
        }
    }
}

Rebuild after edits:

pnpm --filter @mfp-design-system/tokens build

Or watch during development:

pnpm --filter @mfp-design-system/tokens dev