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

@n3rdw1z4rd/smoke-ui-components

v0.1.1

Published

Themeable convenience components (Panel, Row, Slider, Checkbox, Vec3Group) for @n3rdw1z4rd/smoke-ui, styled via CSS custom properties.

Readme

@n3rdw1z4rd/smoke-ui-components

A small set of convenience components — Panel, Row, Slider, Checkbox, Vec3Group — for @n3rdw1z4rd/smoke-ui, themeable via CSS custom properties.

Install

npm install @n3rdw1z4rd/smoke-ui @n3rdw1z4rd/smoke-ui-components

@n3rdw1z4rd/smoke-ui is a peer dependency — your project needs its own JSX setup (see that package's README) for these components to render.

Usage

import { Signal } from "@n3rdw1z4rd/smoke-ui";
import { Panel, Vec3Group } from "@n3rdw1z4rd/smoke-ui-components";

const posX = new Signal(0);
const posY = new Signal(0);
const posZ = new Signal(0);

const DebugPanel = () => (
  <Panel title="Box Transform">
    <Vec3Group title="Position" x={posX} y={posY} z={posZ} min={-5} max={5} step={0.1} />
  </Panel>
);

document.body.append(<DebugPanel />);

A default dark theme is applied automatically the moment this package is imported — no setup required to get a reasonable-looking result immediately.

Theming

Every visual property in these components — colors, spacing, radius, font — is a named constant from tokens.ts whose value is a CSS var() reference, not a hardcoded literal. That gets you two things at once:

  • Compile-time safety. Import COLOR_ACCENT instead of writing "var(--smoke-accent)" by hand, and a typo or rename is a TypeScript error instead of a silently broken style.
  • Runtime theming with zero JavaScript re-render. Since the underlying value is still a CSS variable, changing it repaints every component that references it immediately — no signal, no subscription, no re-render pass.

Changing the theme

import { setTheme } from "@n3rdw1z4rd/smoke-ui-components";

setTheme({ accent: "#ff4477", bg: "#111111" });

setTheme only overrides the keys you pass — anything omitted keeps its current value. Call it any time; every mounted component using that variable updates instantly.

Full theme shape

import { defaultTheme, setTheme } from "@n3rdw1z4rd/smoke-ui-components";

setTheme({
  ...defaultTheme,
  bg: "#ffffff",
  fg: "#111111",
  // ...override the rest as needed
});

Scoped themes

setTheme accepts an optional second argument — the element to apply variables to (defaults to document.documentElement, i.e. global). Pass a specific container element to theme just one panel differently from the rest of the page:

setTheme({ accent: "#22cc88" }, someContainerElement);

Available tokens

| Category | Tokens | |---|---| | Color | bg, bgElevated, fg, fgMuted, accent, border | | Spacing | spacingXs, spacingSm, spacingMd, spacingLg | | Radius | radiusSm, radiusMd | | Typography | fontMono, fontSizeSm, fontSizeMd |

Components

  • Panel({ title, children }) — a titled container.
  • Row({ label, children }) — a label + control row, used inside Panel.
  • Slider({ label, signal, min, max, step? }) — a range input bound to a Signal<number>.
  • Checkbox({ label, signal }) — a checkbox bound to a Signal<boolean>.
  • Vec3Group({ title, x, y, z, min, max, step? }) — three Sliders for x/y/z, e.g. for position/rotation/scale.

License

MIT