A modern, accessible, and customizable React component library built with TypeScript, featuring comprehensive design tokens and extensive testing.
- 🎯 TypeScript First: Full type safety and excellent developer experience
- ♿ Accessibility: WCAG AA compliant components with comprehensive a11y testing
- 🎨 Design Tokens: Consistent design system with CSS custom properties
- 📱 Responsive: Mobile-first approach with flexible breakpoints
- 🧪 Well Tested: Unit tests, visual regression tests, and accessibility tests
- 📖 Storybook: Interactive component documentation and playground
- 🚀 Modern Tooling: Built with Vite, tested with Vitest, and deployed automatically
# Install the package
npm install @diggin/ui-system
# or
pnpm add @diggin/ui-system
# or
yarn add @diggin/ui-system
import { Button, ThemeProvider } from '@diggin/ui-system';
import '@diggin/ui-system/dist/style.css';
function App() {
return (
<ThemeProvider>
<Button variant="primary" size="medium">
Get Started
</Button>
</ThemeProvider>
);
}
Visit our Storybook documentation to explore all components and their variants.
# Clone the repository
git clone https://github.com/your-username/diggin-ui-system.git
cd diggin-ui-system
# Install dependencies
pnpm install
# Start development server
pnpm dev
# Start Storybook
pnpm storybook
# Run tests
pnpm test
# Build for production
pnpm build
# Run all tests
pnpm test
# Run tests with coverage
pnpm test:coverage
# Run accessibility tests
pnpm test:a11y
# Run visual regression tests
pnpm chromatic
pnpm dev
- Start development serverpnpm build
- Build for productionpnpm preview
- Preview production buildpnpm storybook
- Start Storybookpnpm build-storybook
- Build Storybook for productionpnpm test
- Run unit testspnpm test:coverage
- Run tests with coveragepnpm test:a11y
- Run accessibility testspnpm lint
- Run ESLintpnpm lint:fix
- Fix ESLint errorspnpm format
- Format code with Prettierpnpm format:check
- Check code formattingpnpm type-check
- Run TypeScript compiler check
The design system includes comprehensive design tokens for:
- Colors (semantic and primitive)
- Typography (font sizes, weights, line heights)
- Spacing (margins, paddings, gaps)
- Shadows and effects
- Border radius and borders
- Z-index values
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Alexander's Studio - UX Engineer
If you have any questions or suggestions, feel free to connect with me on LinkedIn.
Made with ❤️ by Alexander's Studio