@treeseed/ui is the reusable Treeseed interface system. It provides layout-down Astro components, React widgets, forms, controls, cards, shells, dashboards, theme utilities, and CSS used by Treeseed admin, market, and core site surfaces.
Use this package when you need Treeseed visual primitives. Use @treeseed/admin for admin routes and workflows, @treeseed/core for site runtime integration, and the root market app for Treeseed-specific messaging and buyer-facing marketplace pages.
- Treeseed app shells and public shells
- auth cards and account surfaces
- form controls and data-entry panels
- operation status panels and deployment timelines
- reusable capacity/status controls when consumed by Admin or Market
- market/catalog cards
- commerce marketplace cards, offer panels, ownership summaries, service timelines, capacity risk panels, seller monitoring panels, and governance/Commons presentation components
- docs and content presentation components
- React widgets such as editors, charts, and rich controls
- theme-aware app layouts for admin and market surfaces
npm install @treeseed/uiImport the base styles once in the host shell or plugin CSS list:
import '@treeseed/ui/styles/tokens.css';
import '@treeseed/ui/styles/theme.css';
import '@treeseed/ui/styles/ui.css';
import '@treeseed/ui/styles/forms.css';
import '@treeseed/ui/styles/app-shell.css';
import '@treeseed/ui/styles/app-controls.css';
import '@treeseed/ui/styles/auth.css';
import '@treeseed/ui/styles/operations.css';
import '@treeseed/ui/styles/market.css';
import '@treeseed/ui/styles/commerce.css';
import '@treeseed/ui/styles/governance.css';Admin contributes these styles through @treeseed/admin/plugin when a host app installs the admin portal.
---
import AppLayout from '@treeseed/ui/components/astro/layouts/AppLayout.astro';
import Button from '@treeseed/ui/components/astro/forms/Button.astro';
import Panel from '@treeseed/ui/components/astro/surface/Panel.astro';
---
<AppLayout title="Operations">
<Panel title="Deployments">
<Button type="submit">Deploy</Button>
</Panel>
</AppLayout>Import from package exports such as @treeseed/ui/components/astro/.... Do not import from packages/ui/src.
React components are available through documented React exports such as:
import { MarkdownEditor } from '@treeseed/ui/react';Use React widgets for interactive controls that need client-side state. Keep route data loading, auth policy, and workflow orchestration in admin, market, API, SDK, or CLI code.
The package owns reusable tokens, theme CSS, app shell styles, form styles, operation styles, market/card styles, and Stripe-free commerce/governance components. Tenant-specific brand colors, public marketing art direction, copy, data loading, and workflow orchestration belong in the host app or Admin/API packages.
Run the component sandbox while developing UI primitives:
npm install
npm run devRun package verification before publishing:
npm run verify:local- routes or page ownership
- auth/session policy
- backend API behavior
- hosting or reconciliation
- package workflow orchestration
- admin view models
- marketplace business policy
- Stripe.js, Stripe Elements, checkout confirmation, backend API behavior, webhooks, billing, subscriptions, coupons, or licensing
- payout, commission, application-fee, revenue-split, capacity billing, provider execution, grant, reservation, or routing logic
- capacity-provider runtime
- capacity allocation policy, assignment selection, mode-run persistence, or capacity ledger behavior
- TreeDX repository service behavior
Admin, market, and core should compose UI primitives instead of recreating layout-down controls locally.
See the root Package Ownership guide for cross-package boundaries.