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

@windforge/tokens

v0.1.1

Published

The typed token source of truth for **Windforge** — a token-driven, AI-native design system. Every design decision (color, spacing, radius, type, elevation, motion) is a `--wf-*` CSS variable, so the whole UI re-skins from one place with no CSS-in-JS runt

Readme

@windforge/tokens

The typed token source of truth for Windforge — a token-driven, AI-native design system. Every design decision (color, spacing, radius, type, elevation, motion) is a --wf-* CSS variable, so the whole UI re-skins from one place with no CSS-in-JS runtime.

Most apps consume tokens transitively through @windforge/ui, which re-exports this entire surface. Install directly when you want the CSS, the Tailwind map, or the token constants on their own.

Install

npm install @windforge/tokens

Exports

| Entry | What it is | |---|---| | @windforge/tokens | Typed constants — wfColorBrandPrimary = '--wf-color-brand-primary', … — plus brandRamp (the default indigo ramp), the brandVars / themeVars derivers, and the Ramp / Mode types. | | @windforge/tokens/tokens.css | The generated stylesheet: :root (light) + .dark. Import once at app root. | | @windforge/tokens/tailwind | The Tailwind color / radius / spacing / type map, consumed by the @windforge/ui preset. |

Use it

import '@windforge/tokens/tokens.css'
import { wfColorBrandPrimary } from '@windforge/tokens'

const accent = `var(${wfColorBrandPrimary})` // → var(--wf-color-brand-primary)

Re-skin via tokens

Override any --wf-* variable in plain CSS to reskin the library — a token change can't break a layout, only restyle it:

/* load after @windforge/tokens/tokens.css */
:root {
  --wf-color-brand-primary: var(--acme-brand-600);
}

Or derive a full, WCAG-aligned brand var-set from a single 50→950 ramp. The brand isn't nine hand-written variables — brandVars(ramp, mode) produces the role-named --wf-color-brand-* set from one ramp for a given mode:

import { brandVars, type Ramp } from '@windforge/tokens'

const brand: Ramp = {
  50:  '#eff6ff', 100: '#dbeafe', 200: '#bfdbfe', 300: '#93c5fd', 400: '#60a5fa',
  500: '#3b82f6', 600: '#2563eb', 700: '#1d4ed8', 800: '#1e40af', 900: '#1e3a8a',
  950: '#172554',
}

const vars = brandVars(brand, 'light')
// → { '--wf-color-brand-primary': '#1d4ed8', '--wf-color-brand-primary-hover': …, … }

themeVars wraps brandVars and also swaps font, radius, and any other token in the same call:

import { themeVars } from '@windforge/tokens'

const vars = themeVars({ brand, fontSans: 'Inter, sans-serif' }, 'light')

Feed the result to a static :root/.dark rule, or pass it to @windforge/ui's ThemeProvider tokens prop for live, mode-aware theming.

License

MIT