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.
21 lines
1.0 KiB
XML
21 lines
1.0 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" role="img" aria-labelledby="t">
|
|
<title id="t">Tansy UI</title>
|
|
<rect width="32" height="32" rx="8" fill="#12151c"/>
|
|
<g transform="translate(16 16) scale(.9) translate(-16 -16)">
|
|
<circle cx="16.00" cy="16.00" r="3.6" fill="#f5b40b"/>
|
|
<circle cx="16.00" cy="16.00" r="1.45" fill="#fde68a"/>
|
|
<circle cx="24.20" cy="16.00" r="3.6" fill="#5b87f5"/>
|
|
<circle cx="24.20" cy="16.00" r="1.45" fill="#dbe7ff"/>
|
|
<circle cx="20.10" cy="23.10" r="3.6" fill="#5b87f5"/>
|
|
<circle cx="20.10" cy="23.10" r="1.45" fill="#dbe7ff"/>
|
|
<circle cx="11.90" cy="23.10" r="3.6" fill="#5b87f5"/>
|
|
<circle cx="11.90" cy="23.10" r="1.45" fill="#dbe7ff"/>
|
|
<circle cx="7.80" cy="16.00" r="3.6" fill="#5b87f5"/>
|
|
<circle cx="7.80" cy="16.00" r="1.45" fill="#dbe7ff"/>
|
|
<circle cx="11.90" cy="8.90" r="3.6" fill="#5b87f5"/>
|
|
<circle cx="11.90" cy="8.90" r="1.45" fill="#dbe7ff"/>
|
|
<circle cx="20.10" cy="8.90" r="3.6" fill="#5b87f5"/>
|
|
<circle cx="20.10" cy="8.90" r="1.45" fill="#dbe7ff"/>
|
|
</g>
|
|
</svg>
|