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

@cycomdatasystems/headwindui

v1.3.0

Published

A React UI component library built with Tailwind CSS, Headless UI, and Motion

Readme

@cycomdatasystems/headwindui

A React UI component library built with Tailwind CSS, Headless UI, and Motion. WCAG 2.1 AA compliant.

Install

npm install @cycomdatasystems/headwindui

Peer Dependencies

These packages are required and must be installed by the consuming application:

npm install react react-dom @headlessui/react @heroicons/react @tanstack/react-table motion tailwindcss

| Package | Version | Used by | |---------|---------|---------| | react | >=18 | All components | | react-dom | >=18 | All components | | @headlessui/react | ^2.0 | Checkbox, Combobox, Drawer, Menu, Modal, Select, and others | | @heroicons/react | ^2.0 | Banner, BottomSheet, Chip, Combobox, DatePicker, Drawer, Table | | @tanstack/react-table | ^8.0 | Table | | motion | >=11 | All animated components | | tailwindcss | ^4.0 | All components (styling) |

Optional Peer Dependencies

These are only needed if you use the specific components listed:

# For HWDatePicker
npm install date-fns react-day-picker

# For HWToast / hwToast
npm install react-hot-toast

| Package | Version | Used by | |---------|---------|---------| | date-fns | ^3.0 \|\| ^4.0 | DatePicker | | react-day-picker | ^9.0 | DatePicker | | react-hot-toast | ^2.4 | Toast |

Usage

import { HWButton, HWModal, hwToast } from "@cycomdatasystems/headwindui";
import "@cycomdatasystems/headwindui/styles.css";

⚠️ The styles.css import is required. It contains the @theme declaration that registers every hw-* design token (bg-hw-primary, text-hw-surface, text-hw-danger, rounded-hw-md, outline-hw-focus-ring, etc.) plus their .dark overrides. Without it, every HW component renders unstyled — buttons have no background, inputs have no borders, required-field asterisks are invisible. Adding a Tailwind v4 @source directive pointing at the package does not substitute for this import: @source only controls class-string scanning, it does not register design tokens.

Theming (light / dark / system)

Wrap your app in <HWThemeProvider> and drop <HWThemeToggle> wherever you want the switcher. The hook useTheme() exposes { mode, resolved, setMode }.

import { HWThemeProvider, HWThemeToggle } from "@cycomdatasystems/headwindui";

export function App() {
  return (
    <HWThemeProvider>
      <HWThemeToggle />
      {/* …rest of your app… */}
    </HWThemeProvider>
  );
}

To prevent a flash of the wrong theme on first paint, inline this script in <head> before React mounts:

<script>
  (function () {
    try {
      var s = localStorage.getItem('headwind_theme') || 'system';
      var dark = s === 'dark' || (s === 'system' && matchMedia('(prefers-color-scheme: dark)').matches);
      if (dark) document.documentElement.classList.add('dark');
      document.documentElement.setAttribute('data-theme', s);
    } catch (e) {}
  })();
</script>

For AI tooling

The full usage guide (AI_AGENT_GUIDE.md) and a compact component-selection manifest (COMPONENT_INDEX.yaml) ship inside the published package so AI coding agents running in a consuming app can read accurate, version-pinned guidance from node_modules without cloning this repo. Resolve them via the package's subpath exports:

require.resolve("@cycomdatasystems/headwindui/agent-guide"); // → dist/AI_AGENT_GUIDE.md
require.resolve("@cycomdatasystems/headwindui/manifest");    // → dist/manifest/COMPONENT_INDEX.yaml

The manifest is stamped with _packageVersion at the top so tools can detect when a cached copy has gone stale relative to the installed version.

Development

# Install dependencies
npm install

# Start Storybook
npm run storybook

# Run tests
npm test

# Build the library
npm run build

Naming Convention

All exported components use the HW prefix:

  • Components: HWButton, HWModal
  • Sub-components: HWModal.Title, HWMenu.Item
  • Props: HWButtonProps, HWModalProps
  • Imperative APIs: hwToast.success()

License

MIT