A modern, scalable React design system for building consistent, accessible, and beautiful user interfaces across Kopexa products and beyond.
The Kopexa Design System is a monorepo powered by Turborepo, providing a robust foundation for UI development with:
- React 19+ for component architecture
- TypeScript for type safety
- Storybook for interactive documentation and visual testing
- Tsup for fast, modern bundling
- Vite for lightning-fast development
- Biome for code quality and consistency
- Changesets for versioning and automated releases
Built and maintained by Kopexa
- Consistency: Shared components, hooks, and utilities for a unified product experience.
- Accessibility: All components are designed with accessibility in mind.
- Developer Experience: Fast builds, type safety, and clear documentation.
- Scalability: Modular packages for easy extension and maintenance.
apps/— Applications (e.g., Storybook, documentation)packages/— Core packages:components/— UI components (e.g., Button, Dialog, Popover)hooks/— React hooks (e.g., use-controllable-state, use-callback-ref)core/— Theming, foundational utilitiesutilities/— Shared utility packages (icons, motion, etc.)
Clone the repo and install dependencies:
pnpm installpnpm build— Build all packages and Storybookpnpm dev— Run all packages locally with hot reloadpnpm lint— Lint all packagespnpm test— Run all testspnpm changeset— Generate a changeset for versioningpnpm clean— Clean up allnode_modulesanddistfolders
Each component lives in its own package under packages/components/. Example:
import * as React from 'react';
export interface ButtonProps {
children: React.ReactNode;
}
export function Button({ children }: ButtonProps) {
return <button type="button">{children}</button>;
}
Button.displayName = 'Button';Add stories in the stories/ directory for interactive docs and visual tests.
Run Storybook for live component previews and documentation:
pnpm devVisit http://localhost:6006 to explore components.
We use Changesets for versioning and automated npm publishing. See .github/workflows/release.yml for CI details.
We welcome contributions! Please see our contributing guidelines.
MIT © Kopexa