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

@tdduydev/ui

v0.1.0

Published

React Aria based UI kit for xdev-ui: accessible form controls, overlays and data display styled with @tdduydev/tokens.

Readme

@tdduydev/ui

React UI kit for xdev-ui: accessible components built on React Aria Components and styled with the design tokens from @tdduydev/tokens. It supports React 19 and ships ES modules with type declarations.

Install

npm install @tdduydev/ui react react-dom

react and react-dom (^19) are peer dependencies. react-aria-components and @tdduydev/tokens are installed with the kit.

Load the CSS

Pick one of two entry points. Both include the token variables, so you do not import @tdduydev/tokens yourself.

Without Tailwind: styles.css

styles.css is precompiled CSS with the token variables and every class the kit uses. It also includes Tailwind Preflight, a global reset (box sizing, margins, headings, form controls) that applies to the whole page, not only to the kit. Import it once, at the root of the app:

import '@tdduydev/ui/styles.css'
import { Button, Card } from '@tdduydev/ui'

export function App() {
  return (
    <Card>
      <Button variant="solid">Create project</Button>
    </Card>
  )
}

With Tailwind v4: tailwind.css

If the app already uses Tailwind v4, import tailwind.css after tailwindcss. It already includes the token variables and the token theme (so utilities such as bg-action-primary-bg and rounded-pill exist), and it registers the kit's dist/ folder as a Tailwind source, so the kit's classes are generated in your build. No extra import is needed.

/* app.css */
@import "tailwindcss";
@import "@tdduydev/ui/tailwind.css";

Do not wrap these imports in a CSS layer: the token variables must stay plain, unlayered CSS (see the tokens README).

Set the theme

Components read their colors from CSS variables. Set data-theme on <html> (or any ancestor):

<html data-theme="light"></html>

Dark is the default, so data-theme="dark" is optional.

Components

Every component is a named export of @tdduydev/ui. Labels and messages come from props; the kit has no built-in UI strings.

Form

| Component | Description | | -------------------------- | ------------------------------------------------------------------- | | Button | Pill button with eight visual variants and three sizes. | | Checkbox | Checkbox with a label, an indeterminate state and an invalid state. | | ComboBox, ComboBoxItem | Text input with a filterable list of suggestions. | | IconButton | Square icon-only button; aria-label is required by the type. | | LevelSelector | Compact horizontal picker for an access or permission level. | | Link | Inline text link in the theme link color. | | RadioGroup, Radio | Group of radio buttons where exactly one option can be selected. | | SearchField | Search input with a built-in clear button. | | Segmented | Segmented control: a row of mutually exclusive choices. | | Select, SelectItem | Dropdown that opens a list of options and selects one. | | Switch | On/off switch for settings that apply immediately. | | TextArea | Labelled multiline text input. | | TextField | Labelled text input with description and error message. |

Overlay

| Component | Description | | -------------------------------------------------- | -------------------------------------------------------- | | Dialog, DialogTrigger | Modal dialog with a title, body and optional footer. | | Drawer | Modal panel docked to the left or right edge. | | Menu, MenuItem, MenuSeparator, MenuTrigger | Dropdown list of actions. | | Popover | Floating panel anchored to its trigger. | | ToastRegion, toast | Corner stack of toasts, shown with toast.show. | | Tooltip | Short hint shown when its trigger is hovered or focused. |

Display

| Component | Description | | ------------------------------------------------------------ | --------------------------------------------------------------- | | Avatar | Round avatar showing the initials of a name. | | Badge | Pill that labels a status in one of eight tones. | | Callout | Inline note that highlights information, a warning or an error. | | Card | Surface container with a glass ring and large rounded corners. | | CodeBlock | Scrollable monospace block for source code. | | Dot | Eight pixel status dot. | | EmptyState | Centered placeholder for a list or page with nothing to show. | | IdCode | Inline monospace identifier such as a ticket or record code. | | KV | Key-value list: labels in a fixed column, values beside them. | | ProgressBar | Six pixel progress bar with a tone-colored fill. | | SectionHeader | Small uppercase heading that names a group of items. | | Spinner | Indeterminate loading spinner that announces its label. | | Stat | Metric tile: a large figure over a short label. | | Table, TableHeader, Column, TableBody, Row, Cell | Data table with keyboard row navigation. | | Tabs | Tab list and the panel of the selected tab. | | Tag | Static chip for a label or a filter value. | | TreeItem | Row of a navigation tree, indented by depth. |

The helper cx joins class names.

Use the skill in another repo

The package ships an agent skill that describes the components and the token class names. To use it in a repo that has installed the kit, copy it into that repo's skills folder:

mkdir -p .claude/skills/xdev-ui
cp -r node_modules/@tdduydev/ui/skill/. .claude/skills/xdev-ui/

Registry

The packages are published to npmjs.org and mirrored to GitHub Packages. To install from another registry, set the scope in an .npmrc (for example @tdduydev:registry=https://npm.pkg.github.com); package.json does not pin a registry.

License

MIT