A reusable React component library with design tokens and Tailwind-powered components, built with Vite, Tailwind CSS, CVA, and Storybook. Share your design language across projects with ease.
- 📦 Ready-to-use React components
- 🎨 Centralized design tokens (colors, spacing, typography, etc.)
- ⚡ Tailwind CSS + CVA for flexible variants
- 📚 Storybook for documentation and testing
- �� Lightweight, tree-shakeable, and optimized for performance
- 🔧 Easily extendable with your own theme
- ✅ Compatible with:
- Vite + React
- Next.js 15 (Pages Router and App Router)
- Next.js 15 + App Router + Turbopack
npm install @newton-design-system/react
⚠️ This library usesreact
,react-dom
, andtailwindcss
as peer dependencies. Make sure they’re installed in your project.
import '@newton-design-system/react/styles.css'
import { Button } from '@newton-design-system/react'
export default function App() {
return <Button variant="default">Click me</Button>
}
You can browse all available components and tokens in the 📚 Storybook
The design system includes tokens for:
- Colors
- Spacing
- Font Sizes
- Font Weights
- Fonts
- Border Radius
- Line Heights
These tokens are mapped to Tailwind using the config file, so you can use them in both your components and custom styles.
Coming soon! For now, feel free to open issues or discussions.
MIT © Newton Duarte Cavalcanti