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
2026-09-29 11:20:02 +05:30

Tansy UI logo

Tansy UI

A themeable, accessible React component kit by OpenKhalix.
Website · Storybook · Source · Package README · Changelog


Tansy UI is named after the tansy flower, also called golden buttons: many small, round heads that read as one bloom. It is published to npm as @openkhalix/tansy-ui:

npm install @openkhalix/tansy-ui

See the package README for setup and usage.

Repository layout

This is an npm workspaces monorepo, laid out the way MUI and shadcn/ui lay out theirs:

Path Package Published What it is
packages/ui @openkhalix/tansy-ui yes The components, their stories and tests, tokens, and the library build
packages/brand @tansy/brand no The Tansy mark and the component catalogue, shared by both apps
apps/site @tansy/site no The landing page at ui.openkhalix.com
apps/docs @tansy/docs no Storybook at ui.openkhalix.com/docs
docs Conventions and roadmap
scripts Deploy, story checks, package install tests, catalogue generator

The apps depend on the package through its real exports. In this repo they resolve its source export condition, so editing a component hot-reloads the landing page and Storybook without a rebuild. Outside users get the built files in dist/.

Develop

npm install
npm run dev              # landing page at http://localhost:5173
npm run storybook        # Storybook at http://localhost:6006
npm run lint
npm run typecheck
npm test                 # unit, keyboard and axe tests for every component
npm run build            # package, then landing page, then Storybook

Checks before a release

npm run build:docs
node scripts/check-stories.mjs --mode light          # every story in Chrome: errors and axe
node scripts/check-stories.mjs --mode dark
node scripts/check-stories.mjs --width 320            # nothing may scroll sideways on phones
npm run test:package     # packs the package and installs it into Vite + Tailwind,
                         # plain React and Next.js apps; each must build and render

Adding a component: follow docs/CONVENTIONS.md, export it from packages/ui/src/index.ts, then run python3 scripts/gen_catalogue.py --patch after npm run build:docs to refresh the landing page catalogue.

Release

  1. Move the Unreleased notes in packages/ui/CHANGELOG.md under the new version and set version in packages/ui/package.json.
  2. Run the checks above.
  3. Commit, tag and push: git tag -a v0.4.0 -m "Tansy UI v0.4.0" && git push origin main --follow-tags.
  4. The Release workflow (.gitea/workflows/release.yml) checks that the tag matches the package version, re-runs the checks and publishes to npm. It needs an NPM_TOKEN repository secret for an account in the openkhalix npm organisation.

To publish by hand instead: npm login, then npm publish -w @openkhalix/tansy-ui (the package's prepublishOnly runs the type-check, tests and build first).

Deploy the website

The landing page is served at / and Storybook at /docs/.

  • cPanel: python3 scripts/deploy.py builds a committed tree, uploads it and removes files left over from earlier builds. See scripts/README.md.

  • Container: the Dockerfile runs the checks, builds both apps and serves them from nginx with a /healthz endpoint:

    docker build -t tansy-ui .
    docker run --rm -p 8041:80 tansy-ui
    

Brand

The mark is a tansy flowerhead: six buttons in the palette's primary colour around a gold centre button. packages/brand/src/TansyMark.tsx re-themes with the active palette; packages/brand/public/ holds the fixed-colour SVG and the favicon. Typefaces: Schibsted Grotesk, Instrument Sans and JetBrains Mono.

Licence

MIT © OpenKhalix. Free to use, fork and ship in commercial products; keep the copyright notice in copies of the code. A visible credit ("UI by Tansy UI") is appreciated but not required. Contributions are welcome.

S
Description
OpenKhalix UI Foundry — Tailwind UI component library, design tokens, and Storybook documentation.
Readme MIT
617 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 89%
Python 3.5%
CSS 2.8%
JavaScript 2.2%
MDX 1.5%
Other 1%