@newton-design-system/react
v1.1.11
Published
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.
Downloads
20
Readme
🧱 Newton Design System · React
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.
✨ Features
- 📦 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
🚀 Installation
npm install @newton-design-system/react⚠️ This library uses
react,react-dom, andtailwindcssas peer dependencies. Make sure they’re installed in your project.
🛠️ Usage
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>
}📚 Documentation
You can browse all available components and tokens in the 📚 Storybook
🎨 Design Tokens
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.
📦 Technologies Used
🤝 Contributing
Coming soon! For now, feel free to open issues or discussions.
📄 License
MIT © Newton Duarte Cavalcanti
