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

@mt-gloss/tokens

v0.1.157

Published

Design tokens (colors, spacing, typography, shadows, radii) for the MarketTime design system — a **single source of truth** emitted in multiple formats.

Readme

@mt-gloss/tokens

Design tokens (colors, spacing, typography, shadows, radii) for the MarketTime design system — a single source of truth emitted in multiple formats.

Color values are authored ONCE in tokens/colors.tokens.json (W3C DTCG format) and generated by Style Dictionary v5 (build-tokens.mjs) into:

| Output | File | Consumed as | |---|---|---| | SCSS $vars | src/_generated/_color-tokens.scss | @use$color-blue-600, $range-a | | CSS custom properties | src/_generated/_color-vars.scss | cascade → var(--gloss-color-blue-600), var(--gloss-range-a) | | Tree-shakeable JS/TS | src/index.js + src/index.d.ts | import { rangeColors } from '@mt-gloss/tokens' |

Colors-first (S0): the color scale + the comparison-range (A/B/C) palette flow through the pipeline today; remaining tokens stay hand-authored in src/_tokens.scss / src/_css-vars.scss and are added incrementally. Regenerate with nx build tokens (also wired into the release preVersionCommand).

Install

npm install @mt-gloss/tokens

No Dependencies

This package has no runtime or peer dependencies. (Style Dictionary is a build-time-only devDependency of the workspace; the published package ships pre-generated artifacts.)

Usage — JS values

import { rangeColors, rangeEmphasisColors, colors } from '@mt-gloss/tokens';

rangeColors.A.base;        // '#2563EB'  (comparison Range A fill)
rangeColors.B.light;       // '#6EE7B7'  (Range B gradient stop)
rangeEmphasisColors.A.base // '#1D4ED8'  (Range A hover/emphasis)
colors.blue['600'];        // '#2563eb'

rangeColors / rangeEmphasisColors are the canonical source for the dashboard's ECharts comparison series and the date-picker's compare surfaces (which read var(--gloss-range-a|b|c) from the same source) — eliminating the historical chart-vs-picker color drift.

Usage — SCSS

In your Vite config:

css: {
  preprocessorOptions: {
    scss: {
      additionalData: `@use "@mt-gloss/tokens/src/tokens" as *;\n`,
      loadPaths: [path.resolve(__dirname, 'node_modules')]
    }
  }
}

Or import directly in SCSS:

@use '@mt-gloss/tokens/src/tokens' as *;

.my-component {
  color: $color-gray-900;
  padding: $space-4;
}