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

@reforma/tokens

v0.1.0

Published

Design tokens for Reforma design system

Readme

@reforma/tokens

Design tokens for Reforma project. Designed for Tailwind projects and provided as CSS custom properties (CSS variables) and utility classes for applying styles.

Package Structure

src/
├── variables/         # Primitive, motion, and semantic variables (from Figma — do not edit)
├── styles/            # Typography / shadows / colors utilities (from Figma — do not edit)
├── local/             # Explicit hand-authored exceptions only
│   ├── zIndex.css     # Stacking scale
│   └── breakpoints.css # Media queries
├── rulesets.css       # Hand-authored ruleset entry point
└── index.css          # Hand-authored main entry point

Editing Rules

⚠️ Important: Figma is the source of truth for design tokens. The variables/ and styles/ folders must not be edited manually. Any changes to these folders must be made only through synchronization from Figma.

The only hand-authored token-value exceptions are local/zIndex.css and local/breakpoints.css. index.css and rulesets.css are hand-authored entry points, not places for token values.

Do not add patch, override, fallback, or temporary token files to this package. If a shared design token is missing, coordinate with the designer, add it to Figma, and synchronize the package. Component-, model-, or feature-specific semantic variables belong in the owning CSS module next to their consumers, where they should map to Figma-backed tokens. This follows the same ownership model as component semantic variables in @reforma/components.

Synchronize a Figma Snapshot

The package owns the deterministic renderer. It always applies the fixed CSS (Ruleset) configuration: split CSS files, rem with a base of 16, typography in @layer rulesets, .dark for the dark theme, and no generated index files. There is no mode or output-preset selection.

./reforma sync tokens --input /absolute/path/to/figma-token-snapshot.json
./reforma sync tokens --input /absolute/path/to/figma-token-snapshot.json --check --json
./reforma sync tokens --input /absolute/path/to/figma-token-snapshot.json --json

The version 1 agent/MCP input contract is documented by scripts/token-snapshot.schema.json. Every snapshot contains the configured Figma file name and stable file key. The current package configuration and source identity live in src/tokens-metadata.json.

Before writing, the command validates the exact MCP file/collection identity, configured modes, all aliases, supported values, rendered paths, and package entry points. Existing group order stays stable; newly discovered groups are appended to tokens-metadata.json in their Figma order. --check reports that metadata change plus added and removed CSS names without writing. A real sync atomically replaces changed managed files and writes src/figma-tokens-manifest.json last. Equivalent snapshots produce no CSS diff even when capture metadata changes.

Figma TIMING values, including transition durations and delays, render as seconds. Linear and cubic EASING values render as CSS timing functions; normalized spring bounce values are sampled through the pinned motion-dom spring implementation into deterministic CSS linear(...). Repository-owned variable-name and typography-weight exceptions live under overrides in tokens-metadata.json. Typography otherwise derives weight from fontName.style, so live capture never scans pages or text-node consumers.

Figma capture is orchestrated by the repository sync-design-system agent skill. The deterministic package command requires --input; it never asks the user to choose modes.

Important

  • Manual changes in variables/ and styles/ will be overwritten by the next synchronization
  • scripts/fixtures/current-tokens.snapshot.json is the captured Figma MCP regression snapshot; refresh it together with managed output so the byte-for-byte test detects drift
  • After synchronization, always review the generated diff and run the package tests and linter