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

@beydesign/tokens

v0.0.12

Published

BeyDesign System Tokens - CSS variables generated from Figma design tokens

Readme

Design Token Automation

This repository manages the automated workflow for transforming Figma design tokens into platform-specific formats (CSS) for our design system.

Overview

This project automates the process of:

  1. Receiving design tokens from Figma (via Tokens Studio for Figma)
  2. Resolving token references and relationships
  3. Transforming tokens into CSS variables
  4. Publishing the processed tokens as an npm package

Installation

npm install @beydesign/tokens

Usage

// Import CSS variables in your project
import '@beydesign/tokens/build/css/variables.css';

Or in CSS:

@import '@beydesign/tokens/build/css/variables.css';

Workflow

graph LR
    A[Figma] -->|Tokens Studio Plugin| B[tokens.json]
    B -->|GitHub Action| C[resolve-tokens.js]
    C -->|Transform| D[resolved-tokens.json]
    D -->|Style Dictionary| E[CSS Variables]
  1. Designers update tokens in Figma using Tokens Studio plugin
  2. Tokens Studio pushes updates to tokens.json
  3. GitHub Action automatically:
    • Resolves token references
    • Transforms tokens into CSS variables
    • Commits the generated files

Generated Files

  • /tokens/resolved-tokens.json: Processed tokens with resolved references
  • /build/css/variables.css: CSS custom properties ready for consumption

Development

Prerequisites

  • Node.js 18 or higher
  • npm

Setup

  1. Clone the repository:
git clone [repository-url]
cd [repository-name]
  1. Install dependencies:
npm install

Local Development

To transform tokens locally:

# Transform tokens and resolve references
node scripts/resolve-tokens.js

# Generate CSS variables
node build.js

GitHub Actions

The repository includes an automated workflow (.github/workflows/transform-tokens.yml) that:

  • Triggers on pushes to the main branch
  • Processes the tokens
  • Commits the generated files back to the repository

Contributing

  1. Ensure you have Tokens Studio for Figma set up with the correct GitHub integration
  2. Make token changes in Figma
  3. Push changes using Tokens Studio
  4. The automation will handle the rest!

Architecture

  • scripts/resolve-tokens.js: Resolves token references and relationships
  • build.js: Transforms tokens into CSS using Style Dictionary
  • GitHub Actions workflow: Orchestrates the automated process

Releases

The project automatically:

  1. Versions the package (patch version for each token update)
  2. Creates a GitHub release
  3. Publishes to npm

Each release contains:

  • Updated design tokens from Figma
  • Generated CSS variables
  • Full token reference documentation

NPM Package Structure

@beydesign/tokens/
├── build/
│   └── css/
│       └── variables.css    # Generated CSS variables
└── tokens/
    └── resolved-tokens.json # Processed design tokens