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/themes

v0.1.2

Published

Paradox Design System themes — overrides of the semantic token layer

Readme

@paradox-design/themes

Themes for Paradox Design System. A theme overrides only the semantic color layer — never the primitive palette and never dimension tokens.

Why

If a theme replaced --pdx-color-blue-600, it would change the look of every theme that uses that palette. A theme says "what the surface background is", not "what blue is".

primitive (shared palette)  ──►  semantic (overridden by the THEME)  ──►  component

Installation

npm install @paradox-design/tokens @paradox-design/themes

Install @paradox-design/tokens explicitly, even though it is already a dependency of this package. Themes do not import the tokens themselves — your code does (below), and strict package managers such as pnpm only resolve imports of direct dependencies.

Upgrade all @paradox-design/* packages together, to their latest versions. In 0.x a minor release may rename tokens; mixing minors leaves some variables undefined.

Usage

<html data-pdx-theme="dark"></html>
@import '@paradox-design/tokens/css'; /* tokens — always first */
@import '@paradox-design/themes/css/default'; /* base values           */
@import '@paradox-design/themes/css/dark'; /* variant               */

⚠️ Tokens must be loaded first. Themes contain only var(--pdx-color-…) references — without the palette they resolve to empty values. Load the full @paradox-design/tokens/css: a theme overrides only semantic colors, so spacing, typography and the rest of the semantic layer still come from the tokens.

Automatic switching

@import '@paradox-design/themes/css/system';

Applies the dark variant on prefers-color-scheme: dark until the user picks a theme manually — an explicit data-pdx-theme on <html> has higher specificity and wins.

Available themes

| Theme | Mode | color-scheme | Purpose | | --------- | -------- | -------------- | -------------------------------------- | | default | complete | light | base theme | | dark | complete | dark | dark variant | | hc | complete | light | high contrast, AAA (7:1) threshold | | jungle | partial | light | brand theme of the Jungle app |

complete vs partial

| | complete | partial | | ----- | -------------------------------------------------------------------------- | ------------------------------------------------------------- | | Scope | all semantic color tokens | only the differences from base | | When | the theme changes lightness (dark, hc) | the theme changes the brand (action color, link) | | Why | a missing token would fall back to the light palette → white text on white | copying unchanged values guarantees drift at the first change |

The mode is declared in themes.config.json; pnpm check enforces it automatically.

Custom theme

  1. Copy dist/css/template.css.
  2. Change the name in the [data-pdx-theme='…'] selector.
  3. Override only what distinguishes your theme from the base.
  4. Set color-scheme — native scrollbars and form controls depend on it.

The full list of tokens to override is in dist/css/default.css.

Quality checks

pnpm build   # generates themes + runs the checks
pnpm check   # checks only

The check-themes.mjs script verifies:

  • completeness — a complete theme covers the whole contract (currently 65 tokens),
  • no unknown tokens — a typo in a name never passes silently,
  • WCAG contrast — 19 text/background and element/background pairs, with a 4.5:1 threshold for text (7:1 in hc) and 3:1 for non-text elements.

ℹ️ border-default is not checked for contrast, border-interactive is. WCAG 1.4.11 applies to borders that identify a control (an input border, a checkbox outline) — that is what border-interactive is for. border-default and border-subtle are decorative (separators, card borders) and have no 3:1 requirement. Using border-default as a form field border is an accessibility bug.

Tokens with an alpha channel (e.g. surface-scrim) are skipped — their contrast depends on a background that is unknown at build time.

License

MIT © Paradox Software