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

@massds/mds-tokens

v1.0.0

Published

Design tokens for the Massachusetts Design System

Readme

Massachusetts Design System Tokens

CSS design tokens for the Massachusetts Design System. This package publishes CSS variable files that can be imported into applications, component libraries, and other front-end builds.

For general guidance on how to use the Design System, check out the Design System Microsite.

Installation

npm install @massds/mds-tokens

Package Contents

The published package includes token files under dist/:

dist/
├── index.css
└── primitives.css
  • dist/index.css contains the semantic tokens intended for application use
  • dist/primitives.css contains lower-level primitive tokens used to build the semantic layer (Do not reference directly)

Usage

Import the semantic token file from your CSS entrypoint:

@import "@massds/mds-tokens/dist/index.css";

Use index.css as the public entrypoint for the package. Applications should not reference primitives.css directly, primitive values are for theming and may change as the design system evolves.

Source Layout

Source files live under src/ and are copied into dist/ during the build:

src/
├── index.css
└── primitives.css

The test-page/ directory is only for local validation and is not published to npm.

Development

Install dependencies, lint the source files, and then build the distributable files from this package directory:

npm install
npm run lint
npm run build

Individual lint commands:

npm run lint:css
npm run lint:html

The build copies the CSS token source files from src/ into dist/.

Publishing

The package is published to npm as @massds/mds-tokens with the GitHub Actions workflow at .github/workflows/publish-tokens.yml.

Recommended branch and tag strategy for tokens:

  • Use main as the long-lived release branch for @massds/mds-tokens.
  • Merge tokens release work into main through a pull request with required checks.
  • Create tokens release tags only from commits already on main.
  • Use the tokens-v* tag prefix for every tokens release.

Tokens release flow:

  1. Create a release branch from main, based on semantic versioning, for example release/tokens-1.0.0
  2. Update packages/tokens/package.json to the release version
  3. Run npm run changelog:release -- <version> <date> from packages/tokens, or omit arguments to use the version from package.json and today’s date
  4. Merge the release branch into main through a pull request
  5. In the GitHub UI, create the release tag for the merged release commit using the format tokens-v*, for example tokens-v1.0.0
  6. In the GitHub Release for that tag, copy the relevant release notes from packages/tokens/CHANGELOG.md
  7. Creating the tag in GitHub triggers .github/workflows/publish-tokens.yml to publish the package
  • Stable releases use tags such as tokens-v1.0.0 and publish to the npm latest dist-tag.
  • Prereleases use tags such as tokens-v1.1.0-beta.1 and publish to the npm beta dist-tag.

Questions? Email the Massachusetts Design System Team at [email protected]