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

@paradox-design/tokens

v0.1.0

Published

Design tokens for Paradox Design System — CSS, SCSS, TypeScript and JSON output

Readme

@paradox-design/tokens

Design tokens for Paradox Design System. Plain JSON + a generator — zero runtime dependencies, no Lit. Use this package in React, Vue or Angular projects, or in plain SCSS.

Three layers

primitive  ──►  semantic  ──►  component

| Layer | Where | Example | Purpose | | ------------- | ---------------------------- | ---------------------------------------------------------- | -------------------------------------------- | | primitive | src/primitive/ | --pdx-color-blue-600: #2563eb | raw palette, do not use directly | | semantic | src/semantic/ | --pdx-color-action-primary-bg: var(--pdx-color-blue-600) | theme API — this is what themes override | | component | @paradox-design/components | --pdx-button-primary-bg | component API |

The rules are enforced by a machine, not by convention — scripts/validate-layers.mjs runs before every build:

  • R1 — a primitive must have a literal value (no {references}),
  • R2 — a semantic token must reference a primitive (exceptions are listed explicitly, with a reason),
  • R3 — a semantic token must not point to another semantic token (the layer is flat),
  • R4 — every reference must point to an existing token.

Installation and usage

npm install @paradox-design/tokens

CSS

/* Option 1: everything at once */
@import '@paradox-design/tokens/css';

/* Option 2: separately — when you want to swap the palette and keep the semantics */
@import '@paradox-design/tokens/css/primitive';
@import '@paradox-design/tokens/css/semantic';

⚠️ Order matters. semantic.css refers to variables from primitive.css through var(). Loading the semantic layer alone yields undefined values. This is deliberate — it lets you swap the palette without regenerating tokens.

SCSS

@use '@paradox-design/tokens/scss' as tokens;

.my-button {
  background: tokens.$pdx-color-action-primary-bg;
}

TypeScript / JavaScript

import { PdxColorActionPrimaryBg, PdxSpace4 } from '@paradox-design/tokens';

Every token is a separate named export (PdxPascalCase) holding a resolved value ('#2563eb', not var(--…)). Semantic values match the default theme — switching themes changes the CSS variables, not these constants. Use CSS custom properties for styling in the browser; the JS export is meant for places CSS cannot reach (canvas, charts, tests).

Source format: DTCG

The source of truth is JSON in the DTCG format ($value, $type) — the same format exported by Figma Tokens Studio. If Figma joins the workflow, you replace the files in src/ and touch nothing else.

Scripts

pnpm validate   # layer validation only
pnpm build      # validation + generating dist/
pnpm clean

Outputs

| Path | Format | Consumer | | --------------------------------------- | --------------------- | ---------------------- | | dist/css/{primitive,semantic,all}.css | CSS custom properties | browser | | dist/scss/_tokens.scss | SCSS variables | SCSS projects | | dist/js/tokens.{js,d.ts} | ESM + types | component code, tests | | dist/json/tokens.json | flat JSON | tooling, documentation |

Versioning

🔴 Tokens are public API. Removing a semantic token or changing its meaning is a major change, even if no component changed. Adding a token is a minor change.

License

MIT © Paradox Software