Dark mode, all the way into popups
Switch mode on the Provider; dropdowns, drawers and calendars rendered through portals inherit it. Open the dropdown.
Customizable React components for ideas that deserve a great interface. From your first button to your next big thing.
npm install @rockshin/tao-uiDrag the right edge or use the arrow keys. Past 576px, the same Select and DatePicker code switches to bottom drawers.
Every colour below comes from a single colorPrimary. Hover, pressed, tint and border are derived natively in CSS with no runtime; radius, size and appearance move together through TaoProvider.
Daybreak Blue
oklch(0.599 0.219 259)<TaoProvider size="medium" theme={{ mode: 'light', token: { colorPrimary: 'oklch(0.599 0.219 259)', borderRadius: 6 } }}>Typed classNames and styles target the semantic parts you need. The same names ship in component-manifest.json and llms.txt, so people and agents read one contract.
<Input prefix="https://" suffix=".dev" classNames={{ root: 'field', prefix: 'field-prefix', input: 'field-input', suffix: 'field-suffix', }}/>Switch mode on the Provider; dropdowns, drawers and calendars rendered through portals inherit it. Open the dropdown.
locale drives built-in text, calendars and number formats. Nested providers override only the keys you pass; default date formats and the global Day.js locale stay unchanged.
One switch: controls go from 32 to 28px and spacing drops a step. Pure CSS, carried into popups.
import { Button } from '@rockshin/tao-ui/button';import { Select } from '@rockshin/tao-ui/select';import { DatePicker } from '@rockshin/tao-ui/date-picker';import { TaoProvider } from '@rockshin/tao-ui/provider';Component entries load only that component, its dependencies and the shared theme. No CSS import; the root entry still works.
Fields, pickers, overlays and selections carry ARIA semantics and visible focus. Open, browse, pick and close without a mouse.
Both majors are checked. Props, semantic parts and tokens all export types, so the editor is the docs.
Below 576px, Select becomes a bottom drawer with search and groups. A tap commits and closes. No second code path.
Multiple and tags selections stay a draft until Done; other closes cancel. Rotation keeps the draft, search and focus.
DatePicker moves to the same bottom drawer. Picking, confirming and clearing stay within thumb reach, labelled by your locale.
On coarse pointers, buttons, fields, checkbox labels and clear actions target 44px; Switch keeps its compact track with a reserved hit area. Mouse sizes stay put.
npm install @rockshin/tao-uiEvery page has runnable examples, copyable code and a generated API table.