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

@pixxl-tools/components

v0.1.0

Published

Shared React primitives, icons, tokens, and CSS for Pixxl tools.

Readme

@pixxl-tools/components

Shared React primitives, icons, metadata, tokens, and CSS for Pixxl apps.

@pixxl-tools/components is intentionally generic. Canvas-product chrome belongs in @pixxl-tools/canvas/react; app-specific file actions and product workflows belong in website.

Package status: pre-1.0 public package. APIs may change before 1.0.

Quick Start

import { Button, Text } from "@pixxl-tools/components";
import { DownloadIcon } from "@pixxl-tools/components/icons";
import "@pixxl-tools/components/styles.css";

export function ToolbarButton() {
  return (
    <Button icon={<DownloadIcon />} variant="primary">
      Export
    </Button>
  );
}

Install/CSS

Install the package:

pnpm add @pixxl-tools/components

Import primitives from the root and CSS once in the app:

import "@pixxl-tools/components/styles.css";

Server-safe metadata and tokens use @pixxl-tools/components/metadata and @pixxl-tools/components/tokens.

Public API

  • @pixxl-tools/components: React primitives, icons, and tokens for browser UI.
  • @pixxl-tools/components/metadata: component and recipe metadata used by docs.
  • @pixxl-tools/components/tokens: token objects for web colors, motion, opacity, radius, spacing, typography, and z-index.
  • @pixxl-tools/components/icons: shared icon components plus SvgIcon for rare composed icon previews.
  • @pixxl-tools/components/styles.css: CSS variables and component classes.

All primitive modules are client components. Server-safe metadata and token subpaths must not import primitive component entrypoints.

Model/Persistence

Components are stateless UI primitives. Persistent state belongs to product packages or host apps. Controlled props follow value / defaultValue / onValueChange and open / defaultOpen / onOpenChange.

Boundaries

  • No app framework imports.
  • No runtime dependencies.
  • React is the only peer dependency.
  • No canvas-product primitives in this package.
  • No raw visual values outside token definitions.

Examples

Runnable examples:

  • examples/components/basic-ui.tsx: primitive composition with CSS import.
  • examples/components/tokens.ts: token object usage for non-React code.

Use Button, Text, ToolRail, ToolTopbar, and form primitives from @pixxl-tools/components. Use icons from @pixxl-tools/components/icons. Use token objects from @pixxl-tools/components/tokens.

Testing

Relevant checks:

pnpm test

Limits

  • Generic primitives only; canvas-product chrome belongs in @pixxl-tools/canvas/react.
  • React is the only peer dependency.
  • No app framework imports.

Troubleshooting

  • Missing styles usually means @pixxl-tools/components/styles.css was not imported.
  • If metadata tests fail, add metadata for new primitive exports.
  • If architecture tests fail, check framework imports, raw CSS values, icon duplication, and client directives.

Migration/Versioning

Add public primitives through root exports and metadata together. Keep broad root type exports through components/src/types.ts, not components/src/internal.