A shadcn-native, multi-brand design system for Mind projects. Ships React
components, theme tokens, and blocks, with a generated styles.css token sheet.
Published to GitHub Packages under the MIND-Studio org.
GitHub Packages requires authentication even for public packages, so each
consumer repo needs a scoped .npmrc:
# .npmrc
@mind-studio:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}Then set NODE_AUTH_TOKEN to a GitHub PAT with read:packages (in CI, the
job's GITHUB_TOKEN works for same-org repos), and:
npm install @mind-studio/uiWire the styles in your globals.css (Tailwind v4):
@import "tailwindcss";
@import "../../node_modules/@mind-studio/ui/dist/styles.css"; /* real path, not the exports subpath */
@source "../../node_modules/@mind-studio/ui/dist";pnpm build # gen:css → bunchee → copy-styles
npm version <patch|minor|major>
npm publish # publishConfig points at npm.pkg.github.comRequires a token with write:packages (gh auth refresh -s write:packages,read:packages).
The package links to its repo via the repository field in package.json.
pnpm storybook # component workbench on :6006
pnpm test # vitest
pnpm typecheckSee PRD.md / GOAL.md / GLOSSARY.md for design rationale.
Versioning, CHANGELOG.md, and tags are automated with
release-please — don't tag or
edit CHANGELOG.md by hand.
- Commit to
mainusing Conventional Commits:fix:→ patch,feat:→ minor,feat!:/BREAKING CHANGE:→ major.chore:/docs:/refactor:/test:don't trigger a release. - release-please keeps an open "chore(main): release X.Y.Z" PR that rolls the
pending commits into
CHANGELOG.mdand bumps the version. - Merge that PR to release: it creates the
vX.Y.Ztag + GitHub Release, which firespublish.ymlto publish the package to GitHub Packages.