Restructure the repo into npm workspaces so the component kit publishes as its own package, like MUI and shadcn/ui: - packages/ui: @openkhalix/tansy-ui (published), with components, stories, tests, tokens and the library build - packages/brand: private logo and catalogue data shared by both apps - apps/site: the landing page - apps/docs: Storybook The package: - MIT licence (copyright OpenKhalix) - per-component ES modules and type declarations - "use client" on component modules so they import into Next.js Server Components; helpers stay server-safe - tokens.css for Tailwind v4 apps, and a prebuilt styles.css for apps without Tailwind - lucide-react 1.x, whose types compile against current React 19 types The apps resolve the package through a "source" export condition, so they hot-reload component edits, while outside users get dist/. scripts/test-package.mjs packs the package and installs the tarball into Vite + Tailwind (strict types), plain React and Next.js apps; each must build and render correctly. Gitea workflows run CI on push and publish to npm when a vX.Y.Z tag matching the package version is pushed.
4.7 KiB
Roadmap
Where Tansy UI stands against MUI and shadcn/ui, what's done, and what comes before v1.
Last reviewed: 2026-09-29, at v0.4.0.
Where things stand
| Tansy UI (v0.3) | shadcn/ui | MUI (Material UI + Base UI) | |
|---|---|---|---|
| Distribution | npm package @openkhalix/tansy-ui (ES modules, types, Tailwind or prebuilt CSS) |
CLI and registries. CLI v4 installs a whole design system in one payload | npm packages |
| Components | 38 | 50+, plus blocks and charts | Material UI's full set; Base UI v1 has 35 unstyled parts; MUI X adds Data Grid, Charts, Date Pickers, Tree View |
| Accessibility base | Base UI primitives | Radix and Base UI primitives | Base UI primitives |
| Theming | Seven runtime palettes, scoped to any element; semantic tokens | CSS variables | createTheme, CSS variables |
| Dark mode | Yes, token-based | Yes | Yes |
| Tests | Unit and axe tests per component; every story checked in a real browser in both modes | Per primitive | Unit, visual and a11y suites |
| Docs | Storybook: a story per state, full controls, Introduction guides | Docs site, examples, blocks | Docs site, demos, templates |
Sources: shadcn/ui changelog, shadcn CLI v4, MUI: 2026 and beyond, Base UI v1.
Phase 0: Foundations (done in v0.3.0)
- Visible keyboard focus on every interactive element
- Labels, help text and errors linked to every field (
Field) - Overlays, selects and menus on Base UI: focus traps, focus return, Escape, roving focus, type-ahead, a real ARIA combobox
- Alert roles by severity; tooltips on keyboard focus
- One API:
color,variant,size,startIcon/endIconas nodes,value/defaultValue/onValueChange,label/description/error - Controlled and uncontrolled use everywhere; ids from
useId - Token-only colours, fixed Classic Blue ramp, semantic status ramps
- Dark mode
- Tests for every component, and a browser check of every story in both modes
- Icons imported individually (no full
lucide-reactbundle) - Library build with per-component modules, types and
tokens.css
Phase 1: Components
Shipped in v0.3.0: Field, Input, FeaturedInput, TextArea, FeaturedTextArea, NumberInput, Select, FeaturedSelect, Combobox, NativeSelect, Checkbox, CheckboxGroup, Radio, Switch, Slider, ToggleGroup, Button, IconButton, LinkButton, Dialog, AlertDialog, Drawer, Popover, Tooltip, InfoTip, DropdownMenu, Tabs, Accordion, Breadcrumb, Pagination, Alert, Toast, Spinner, Progress, Meter, Skeleton, Badge, CountBadge, Avatar, AvatarGroup, Card, Kbd, Separator and Table.
Still to come:
- Date Picker and Date Range Picker
- Data Table (sorting, filtering, selection and pagination on top of Table)
- Command palette
- File upload with drag and drop
- OTP / verification code input (Base UI OTPField)
- Context menu, Menubar and Navigation menu (Base UI primitives exist)
- Stepper and Timeline
Each ships with stories for every state, keyboard and a11y tests, tokens only, and a docs page.
Phase 2: Distribution
Done in v0.4.0:
- Monorepo:
packages/ui(published),apps/site,apps/docs - Package
@openkhalix/tansy-ui: ES modules per component, types,"use client"for Next.js,tokens.cssfor Tailwind apps and a prebuiltstyles.cssfor apps without Tailwind - MIT licence
- Install tests: the packed tarball must build and render in Vite +
Tailwind, plain React and Next.js apps (
npm run test:package) - CI and tag-triggered publishing (Gitea Actions)
Still to do:
- Create the
openkhalixnpm organisation and publish the first release. - Serve the same components as a shadcn-compatible registry, so
npx shadcn add <url>copies a Tansy component into a project. - Ship the palettes as a registry base item (tokens, fonts and CSS variables in one install).
- A public repository URL in
package.jsononce the repo is public.
Phase 3: Where Tansy can lead
- Scoped runtime palettes.
applyPalette()already themes any subtree at runtime. Next: a palette builder that makes a full, contrast-checked 50–900 ramp from one brand colour and exportstokens.css. - Form-heavy business apps. Floating labels, inline help, required marks, validation states, currency and number inputs are built in, where shadcn leaves them to the app. Extend with masked inputs and date ranges.
- Owned or installed. One source, as an npm package or registry code.
- Every state verified. Every story is rendered and checked in light and dark mode on each release. Publish that report with the docs.