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

@rockshin/tao-ui

v0.0.35

Published

A modern React component library with semantic DOM customization and OKLCH-based theming.

Readme

tao-ui

A component library for React 18.2 and 19 with semantic DOM customization and OKLCH-based theming.

Features

  • React 18.2 and 19 — supports React 18.2 as the minimum version and React 19, with React Compiler optimizations.
  • Semantic DOM — every visual component exposes classNames / styles props to style internal parts by semantic name, no fragile selector hacks.
  • OKLCH theming — TaoProvider derives a full theme (radius, font scale, control heights) from a small seed token set; components inherit size / disabled / variant.
  • Typed — full .d.ts, every Props and SemanticPart type exported.

Install

npm install @rockshin/tao-ui
# or
bun add @rockshin/tao-ui

Peer dependencies: react ^18.2.0 || ^19.0.0, react-dom ^18.2.0 || ^19.0.0. The minimum version is 18.2; React 19 is also supported. The date pickers' dayjs dependency is installed automatically.

Usage

Wrap your app once with TaoProvider, then use components. Import the component CSS that ships alongside the JS (your bundler resolves the side-effect imports automatically).

import { TaoProvider, Input, Select, Switch } from '@rockshin/tao-ui';

export default function App() {
  return (
    <TaoProvider size="medium">
      <Input placeholder="Search" />
      <Select options={[{ label: 'A', value: 'a' }]} />
      <Switch defaultChecked />
    </TaoProvider>
  );
}

Component imports

Use component entries to include only their styles and shared theme styles. No separate CSS import is needed. The root entry remains available and includes all component styles.

import { Button, type ButtonProps } from '@rockshin/tao-ui/button';
import { TaoProvider } from '@rockshin/tao-ui/provider';

Entry names use kebab-case, such as /input-number, /range-picker, and /form-layout. Related exports share an entry: CheckboxGroup uses /checkbox, and HeadlessInputNumber uses /number-input.

Dark mode

Pure-CSS dark algorithm — no JS runtime. One prop flips every component, including portaled popups (Modal, Drawer, Select dropdowns):

<TaoProvider theme={{ mode: 'dark' }}>
  <App />
</TaoProvider>

Fonts

Like antd, tao-ui does not bundle fonts. The stack is Geist-first with a full system fallback (incl. CJK), so everything renders well out of the box. To get the designed Geist look:

pnpm add @fontsource/geist-sans @fontsource/geist-mono
import '@fontsource/geist-sans/400.css';
import '@fontsource/geist-sans/500.css';
import '@fontsource/geist-sans/600.css';
import '@fontsource/geist-mono/400.css';

Customizing internal parts

<Drawer
  classNames={{ root: 'my-drawer', header: 'my-drawer-header' }}
  styles={{ body: { padding: 24 } }}
/>

Components

| Category | Components | |----------|-----------| | General | Button | | Layout | Stack, FormLayout, Splitter | | Navigation | Tabs, Pagination, Breadcrumb, Menu, Dropdown, ContextMenu | | Data Entry | Form, Input, Textarea, InputNumber, Select, Checkbox, Radio, Switch, DatePicker, RangePicker, FormField, FormSection, FormActions | | Data Display | Table, Tag, ScrollArea, Collapsible, Tooltip, Popover | | Feedback | Modal, Drawer, Sonner, Spinner, Alert, Popconfirm | | Config | TaoProvider, useTaoConfig, useTaoToken |

Responsive helpers: useBreakpoint, useIsMobile, plus breakpoint-map props on Stack (direction/gap/align), Modal (width), and Table (column responsive). Select / DatePicker / RangePicker render as bottom drawers on phones automatically.

Headless utilities: useNumberInput / NumberInput, and the cx semantic-class helper.

Token helpers are available from the package root or the dedicated subpath:

import { tokenVar, taoTokenNames, useTaoToken } from '@rockshin/tao-ui';
// or: import { taoTokenNames, tokenVar } from '@rockshin/tao-ui/tokens';

Package metadata uses an explicit subpath import:

import { componentDocs, getComponentDoc } from '@rockshin/tao-ui/meta';

License

MIT © rickyshin