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

@adobe/spectrum-design-data

v0.7.0

Published

Spectrum design tokens in cascade format — the canonical source of truth for @adobe/spectrum-tokens

Readme

@adobe/spectrum-design-data

Spectrum design tokens in cascade format — the canonical source of truth for @adobe/spectrum-tokens.

What is the cascade format?

Each .tokens.json file in tokens/ is a JSON array of spec-compliant token objects. Each token carries a structured name object with taxonomy fields (component, property, state, colorFamily, scaleIndex, etc.) instead of a flat kebab-case string. The format is defined in packages/design-data-spec.

// tokens/color-palette.tokens.json (excerpt)
[
  {
    "name": { "property": "color", "colorFamily": "blue", "scaleIndex": 100 },
    "$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/color.json",
    "value": "#E9F4FF",
    "uuid": "…"
  }
]

Relationship to @adobe/spectrum-tokens

packages/tokens/src/ (the legacy flat-object format consumed by Style Dictionary and downstream tooling) is generated from this package. Do not edit packages/tokens/src/ directly — changes will be overwritten.

To regenerate the legacy package after editing tokens here:

moon run design-data:legacy-output

Token corpus

8 files, 4 166 cascade tokens (from 2 460 legacy entries):

| File | Description | | ----------------------------- | ----------------------------------- | | color-palette.json | Global color scale (blues, reds, …) | | color-component.json | Component-scoped color tokens | | color-aliases.json | Semantic color aliases | | semantic-color-palette.json | Semantic/contextual palette | | typography.json | Font sizes, weights, families | | layout.json | Global spacing and sizing | | layout-component.json | Component-scoped layout tokens | | icons.json | Icon sizing tokens |

Name-object quality

95% of tokens carry structured name objects:

  • 23% enriched from sidecar name metadata (colorFamily, scaleIndex, variant, …)
  • 71% decomposed from the legacy key (component + property + state)
  • 6% thin (full legacy key stored in property) — tracked as SPEC-017 tech debt

moon tasks

| Task | Command | Purpose | | ------------------------ | --------------------------------------------- | ----------------------------------------------------- | | validate | moon run design-data:validate | Validate cascade files against spec rules | | legacy-output | moon run design-data:legacy-output | Regenerate packages/tokens/src/ | | roundtrip-verify | moon run design-data:roundtrip-verify | CI guard: fail if cascade and legacy diverge | | regenerate-from-legacy | moon run design-data:regenerate-from-legacy | Re-sync cascade from legacy (one-time / escape hatch) |

Consuming the cascade format

import colorPalette from "@adobe/spectrum-design-data/tokens/color-palette";
// colorPalette is an array of cascade token objects