Files
thekhalidsha 260bb7c1ca
CI / check (push) Successful in 1m13s
Show how to install Tansy UI on the landing page and docs
The landing page had no install command anywhere, and the Storybook
welcome page only linked onward to Getting started. Add an Install
section to the site with the npm, pnpm, yarn and bun commands, the two
styling setups, and a link to the package on npmjs.com. Repeat the npm
command on the Storybook welcome page.

Also correct the roadmap, which still listed publishing the first
release and adding a public repository URL as pending. Both shipped in
0.4.0 and 0.4.1.
2026-09-29 11:38:46 +05:30

106 lines
5.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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](https://ui.shadcn.com/docs/changelog),
[shadcn CLI v4](https://ui.shadcn.com/docs/changelog/2026-03-cli-v4),
[MUI: 2026 and beyond](https://mui.com/blog/2026-and-beyond/),
[Base UI v1](https://infoq.com/news/2026/02/baseui-v1-accessible/).
## Phase 0: Foundations (done in v0.3.0)
- [x] Visible keyboard focus on every interactive element
- [x] Labels, help text and errors linked to every field (`Field`)
- [x] Overlays, selects and menus on Base UI: focus traps, focus return,
Escape, roving focus, type-ahead, a real ARIA combobox
- [x] Alert roles by severity; tooltips on keyboard focus
- [x] One API: `color`, `variant`, `size`, `startIcon`/`endIcon` as nodes,
`value`/`defaultValue`/`onValueChange`, `label`/`description`/`error`
- [x] Controlled and uncontrolled use everywhere; ids from `useId`
- [x] Token-only colours, fixed Classic Blue ramp, semantic status ramps
- [x] Dark mode
- [x] Tests for every component, and a browser check of every story in both modes
- [x] Icons imported individually (no full `lucide-react` bundle)
- [x] 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:
1. Date Picker and Date Range Picker
2. Data Table (sorting, filtering, selection and pagination on top of Table)
3. Command palette
4. File upload with drag and drop
5. OTP / verification code input (Base UI OTPField)
6. Context menu, Menubar and Navigation menu (Base UI primitives exist)
7. 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:
- [x] Monorepo: `packages/ui` (published), `apps/site`, `apps/docs`
- [x] Package `@openkhalix/tansy-ui`: ES modules per component, types,
`"use client"` for Next.js, `tokens.css` for Tailwind apps and a
prebuilt `styles.css` for apps without Tailwind
- [x] MIT licence
- [x] Install tests: the packed tarball must build and render in Vite +
Tailwind, plain React and Next.js apps (`npm run test:package`)
- [x] CI and tag-triggered publishing (Gitea Actions)
Done in v0.4.1:
- [x] The `openkhalix` npm organisation, and the first published releases
(0.4.0 and 0.4.1 on the `latest` tag)
- [x] Public repository at `git.openkhalix.com/thekhalidsha/tansy-ui`, with
`repository` and `bugs` in `package.json` so the npm page links to the
source and its issue tracker
Still to do:
- [ ] 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).
- [ ] An npm automation token, so releasing is a tag push with no browser
step. Today `npm publish` needs web 2FA, which blocks unattended
releases.
## 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 exports `tokens.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.