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

@citron-systems/citron-ui

v1.11.0

Published

Core UI component library for Citron CRM. Accessible, design-token-driven React components built with consistency and scalability in mind.

Downloads

1,116

Readme

Citron UI

The core UI component library for the company CRM. A collection of accessible, design-token-driven React components built with consistency and scalability in mind.

Architecture

The project consumes design tokens from the @citron-systems/citron-ds NPM package. The package provides CSS variables (e.g. var(--inkblot-semantic-color-*)) which are activated via @import '@citron-systems/citron-ds/css' in the main CSS entry point. All components use semantic tokens only—never primitives—ensuring automatic dark mode support via [data-theme="dark"] and alignment with WCAG AAA standards. Spacing and border-radius from the package are mapped into Tailwind's theme via src/utils/inkblotTheme.ts.

Tech Stack

  • React
  • TypeScript
  • Vite (Library Mode for bundling)
  • Tailwind CSS
  • Storybook (Vite builder)
  • tsup
  • @citron-systems/citron-ds

Project Structure

| Path | Purpose | |------|---------| | src/components | React components. Each component lives in its own folder with the component file and optional stories. | | src/utils/inkblotTheme.ts | Maps @citron-systems/citron-ds resolved tokens (Inkblot prefix) to Tailwind spacing and borderRadius. | | src/index.ts | Library entry point. Exports all public components and their types. | | docs/LOVABLE_CITRON_INVENTORY.md | Lovable→Citron inventory: equivalences (refactor vs create), Phase 1 scope, and token mapping matrix. |

Development Workflow

Run the preview

npm run dev

Starts Storybook on http://localhost:6006. Use it to develop and document components in isolation.

Build the library

npm run build

Uses tsup to bundle the library. Output is written to the dist folder.

Library Consumption

The build produces artifacts in the dist folder:

  • dist/index.js (CommonJS)
  • dist/index.mjs (ESM)
  • dist/index.d.ts (TypeScript definitions)

Consumers must import the design system CSS and can optionally set data-theme="dark" on a parent element for dark mode. Ensure react and react-dom are peer dependencies in your project.

Publishing (CI/CD)

Pushes to main automatically publish to npm via GitHub Actions. Version bumps follow Conventional Commits:

  • patchfix:, chore:, docs:, style:, refactor:, perf:, test:
  • minorfeat:
  • majorfeat!:, fix!:, or BREAKING CHANGE in commit body

Setup (one-time): Add NPM_TOKEN as a repository secret in GitHub (Settings → Secrets and variables → Actions). Create an Automation token at npmjs.com with publish permission for @citron-systems.

Guidelines

All new components must use semantic tokens from @citron-systems/citron-ds via CSS variables (e.g. var(--inkblot-semantic-color-interactive-primary)). Never use primitives or hardcoded colors. Follow the Principles of Radical Clarity and use semantic tokens for all states (hover, focus, disabled, error). Components automatically support dark mode when [data-theme="dark"] is applied.