Beta — DSAi is in active development. APIs may change between releases. Early access & collaboration →
Build beautiful, accessible interfaces - fast. DSAi gives you production-ready components, a design token pipeline, and a CLI that lets you own your code. No black-box dependencies, just copy, customize, and ship.
Accessible by default. Themeable with design tokens. Designed to work the way your team already builds, with Bootstrap styling, Figma integration, and TypeScript you can trust.
| Package | Version | Description |
|---|---|---|
@dsai-io/react |
1.0.2 | 33 React components with Bootstrap 5 styling and WCAG 2.1 AA compliance |
@dsai-io/tools |
CLI, component registry, token pipeline, and build tooling | |
@dsai-io/figma-tokens |
Figma Variables API client and token synchronization | |
@dsai-io/storybook |
1.0.6 | Component documentation and visual testing |
git clone https://github.com/michelve/draft_v0.git my-app
cd my-app
pnpm install
pnpm devThe DSAi Starter Template comes pre-configured with the full token pipeline, Bootstrap 5 compiled with DSAi tokens, and Button + Typography components installed.
# Add specific components, hooks, or utilities
dsai add button modal tabs use-focus-trap cn
# Browse all 80 available items
dsai add --list
# Add all hooks
dsai add --all --type hook
# Preview without writing
dsai add modal --dry-runComponents are copied as source files into your project. Dependencies (hooks, utils, types, npm packages) are resolved and installed automatically.
import { Button } from '@/components/ui/button';
import { Modal } from '@/components/ui/modal';
import { Heading, Text } from '@/components/ui/typography';
function App() {
return (
<div>
<Heading level={1}>Welcome</Heading>
<Text>Build accessible UIs with DSAi components.</Text>
<Button variant="primary">Get Started</Button>
</div>
);
}Design tokens flow from Figma to code through a multi-step pipeline:
Figma Variables --> figma-exports/ --> collections/ --> Style Dictionary --> CSS/SCSS/JS/TS
(dsai-figma) (dsai tokens (dsai tokens
transform) build)
# Full rebuild
dsai tokens build
# Validate token structure
dsai tokens validate
# Transform Figma exports to DTCG collections
dsai tokens transform
# Sync from Figma (requires FIGMA_TOKEN env var)
dsai-figma syncThe pipeline supports multi-theme builds (light + dark), SCSS compilation with Bootstrap variable injection, and CSS postprocessing.
- Node.js >= 22
- pnpm >= 10
git clone https://github.com/michelve/dsai.git
cd dsai
pnpm install
pnpm buildpnpm build # Build all packages
pnpm test # Run all tests
pnpm lint # Lint all packages
pnpm storybook # Start Storybook
# Single package
npx nx build @dsai-io/react
npx nx test @dsai-io/tools
# Only changed packages
npx nx affected -t build
npx nx affected -t testdsai/
packages/@dsai-io/
react/ 33 React components, 23 hooks, 23 utilities
tools/ CLI, registry, token pipeline, build tooling
figma-tokens/ Figma API client and token sync
storybook/ Component documentation (Storybook 10)
docs/ Documentation package
apps/
playground/ Development playground
- TypeScript strict mode
- Biome + ESLint for linting
- Jest 30 + Testing Library for tests
- jest-axe for accessibility testing
- 80% minimum coverage threshold, 90%+ target
- GitHub Actions CI on every push and PR
- DSAi Starter Template -- official starter app (React 19, Bootstrap 5, Express, Prisma)
- @dsai-io/tools on npm -- CLI and build tooling
- @dsai-io/figma-tokens on npm -- Figma integration
- GitHub Issues
AGPL-3.0-or-later -- individual packages may use different licenses (see each package's README).