Skip to content
michelvePublic

About

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.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

714 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSAi Design System

CI codecov License: AGPL-3.0 React Bootstrap TypeScript Node.js pnpm Nx Storybook Jest WCAG 2.1 AA Figma

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.


Packages

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 npm CLI, component registry, token pipeline, and build tooling
@dsai-io/figma-tokens npm Figma Variables API client and token synchronization
@dsai-io/storybook 1.0.6 Component documentation and visual testing

Getting Started

For new projects (starter template)

git clone https://github.com/michelve/draft_v0.git my-app
cd my-app
pnpm install
pnpm dev

The DSAi Starter Template comes pre-configured with the full token pipeline, Bootstrap 5 compiled with DSAi tokens, and Button + Typography components installed.

Adding components

# 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-run

Components are copied as source files into your project. Dependencies (hooks, utils, types, npm packages) are resolved and installed automatically.

Using components

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>
  );
}

Token Pipeline

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 sync

The pipeline supports multi-theme builds (light + dark), SCSS compilation with Bootstrap variable injection, and CSS postprocessing.

Development (monorepo contributors)

Prerequisites

  • Node.js >= 22
  • pnpm >= 10

Setup

git clone https://github.com/michelve/dsai.git
cd dsai
pnpm install
pnpm build

Commands

pnpm 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 test

Project Structure

dsai/
  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

Code Quality

  • 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

Resources

License

AGPL-3.0-or-later -- individual packages may use different licenses (see each package's README).

About

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.

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages