Standalone NPM package extracted from dash/ and aligned with the dashboard's production primitives, tokens, and styles.
- Dashboard theme tokens and global CSS
- Reusable base primitives from
dash/src/components/base - Shared foundations and assets from
dash/src/components/foundationsanddash/src/components/shared-assets - Generic application primitives:
EmptyStateModalTableTabs
- A package-owned
ThemeProviderthat applies the same.dark-modeand.light-moderoot classes used by the dashboard
pnpm add @rewritetoday/design-system react react-domThis package ships the dashboard's Tailwind v4 CSS entrypoint. Your app should support importing package CSS.
import "@rewritetoday/design-system/styles.css";
import {
Button,
Card,
Input,
ThemeProvider,
} from "@rewritetoday/design-system";
export function App() {
return (
<ThemeProvider defaultTheme="dark">
<Card>
<Card.Header>
<Card.Title>Rewrite UI</Card.Title>
</Card.Header>
<Card.Content className="space-y-4">
<Input label="Project name" placeholder="Acme SMS" />
<Button>Create project</Button>
</Card.Content>
</Card>
</ThemeProvider>
);
}pnpm run build: bundle the library sources, emit declarations, and copy package CSS intodistpnpm run check: run TypeScript verification
- Component implementation:
dash/src/components - Theme implementation:
dash/src/styles