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

@sub-design/themes

v0.10.0

Published

Two axes, per ADR 0001: `brand` × `colorScheme`. Nothing else. There is no runtime `product` prop.

Readme

@sub-design/themes

Two axes, per ADR 0001: brand × colorScheme. Nothing else. There is no runtime product prop.

How a theme is applied

Brand is a data attribute on any ancestor; scheme is the .dark class, matching the next-themes convention both NOKL and the Enterprise prototype already use.

<html class="dark">
  <div data-brand="nokl"> … </div>
</html>

Both nesting orders work — the brand element inside .dark, and the brand element that is .dark.

Because brand is an attribute rather than a build flag, one page can host both brands at once. The playgrounds rely on this to show GoodSync and NOKL side by side, which is the cheapest possible check that no brand value has leaked into component code.

Import order

Light must be imported before dark. Both selectors resolve to the same specificity (:where() contributes nothing), so the cascade falls through to source order. The per-brand index.css already does this correctly.

Settled: GoodSync separates action from accent

Explorer shipped a blue primary; the Enterprise prototype shipped a near-black one described as "Linear / Vercel inspired, no marketing blue". Two GoodSync surfaces, opposite decisions.

Resolved in favour of Enterprise: near-black is the primary action, blue is the brand accent. Two reasons decided it. Explorer's blue is 221.2 83.2% 53.3% — shadcn's default, inherited from the generator rather than chosen. And Enterprise keeps blue anyway, as --chart-1, which is exactly the accent role.

The consequence is a token split worth understanding:

| Token | Meaning | GoodSync | NOKL | | --- | --- | --- | --- | | --color-action-primary | what a primary button is | near-black | SeaGreen | | --color-brand-accent | the identifying colour — links, focus, charts | blue | SeaGreen |

For NOKL the two are the same value, so nothing about it changed. For GoodSync they differ, which is the whole point: collapsing them into one role is what made the two products look like they disagreed.

Focus rings follow the accent rather than the action. A near-black ring around a near-black button would be invisible, and focus is an accessibility guarantee.

Explorer will change appearance when it adopts the package — its buttons go from blue to near-black. That is intended, not a regression.