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

@matters/design-system-tokens

v0.3.0

Published

Matters Design System — canonical design tokens (colors, typography, spacing, effects).

Readme

@matters/design-system-tokens

Canonical Matters Design System tokens — colors, typography, spacing, radii, shadows. Generated from Figma Design System 1.5.

穩定性(請先讀):本套件處於 0.x,正隨 Matters 2.0 品牌遷移演進。 token 名稱是公開 API;遷移期間可能改名(屬預期內 breaking)。請只綁 語意層、並鎖定窄版本範圍(~0.3.0)。完整規則見 docs/token-naming-contract.md

Install

pnpm add @matters/design-system-tokens
# or, for vendored consumers, see ../../docs/consume.md

Usage

CSS custom properties

@import "@matters/design-system-tokens/tokens.css";

.my-button {
  background: var(--color-brand-new-purple);
  color: var(--color-grey-white);
  padding: var(--space-sp8) var(--space-sp16);
}

TypeScript

import { tokens, colorByPath } from "@matters/design-system-tokens";

console.log(colorByPath["color.brand.new.purple"]); // "#7258FF"

Tailwind preset

// tailwind.config.cjs
module.exports = {
  presets: [require("@matters/design-system-tokens/tailwind")],
  content: ["./src/**/*.{ts,tsx,html}"],
};

What's inside

| Group | Tokens | | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | | Brand colors (canonical) | --color-brand-new-purple (#7258FF), --color-brand-new-green (#C3F432) | | Brand colors (legacy, migration period) | --color-brand-legacy-green-*, --color-brand-legacy-gold-* | | Semantic scales | primary, secondary, info, attention (each 0–900); grey (named); state colors under function.* (positive / negative / warn / heart …) | | Freewrite (七日書 only, opt-in) | --color-freewrite-* — shipped in a separate freewrite.css. See note below. | | Typography | System scale (h1/h2/h3/body-1/body-2/small/label) + Article scale (title/summary/body) | | Spacing | --space-sp2--space-sp32 (8pt grid + 2-unit fine-grain) | | Effects | --shadow-shadow-1--shadow-shadow-4 |

Freewrite isolation (Phase 3)

The Freewrite landing page has its own palette (cool blue), distinct from the canonical brand. To prevent product code from accidentally referencing it, --color-freewrite-* tokens are not included in tokens.css. They ship in a separate stylesheet that consumers must opt into:

import "@matters/design-system-tokens/tokens.css"; // canonical
import "@matters/design-system-tokens/freewrite.css"; // ⚠ Freewrite only

If a non-Freewrite surface references --color-freewrite-*, the variable will be undefined and CSS will fall back to its inherited value — that's the intended failure mode.

For the full freewrite design database (15 Figma pages, 7 component specs, 6 design-principle docs) and proposed extensions to the 4-token palette, see docs/freewrite-design-system/ and docs/freewrite-design-system/color-usage.md.

Building

pnpm --filter @matters/design-system-tokens build
# or
node packages/tokens/build.mjs

Outputs to both packages/tokens/dist/ (npm consumption) and tokens/dist/ (legacy vendored-copy back-compat).

Source

Figma Design System 1.5 — JDKpHezhllOvJF42xbKcNN. Token decisions live in docs/figma-tokens-diff.md and PM notes.

Brand color decision (2026-04-24): --color-brand-new-purple is the canonical brand reference. Legacy green/gold are retained for gradual migration only.