@newton-design-system/react
TypeScript icon, indicating that this package has built-in type declarations

1.1.11 • Public • Published

🧱 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.

npm version license


✨ 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, and tailwindcss as 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

Readme

Keywords

none

Package Sidebar

Install

npm i @newton-design-system/react

Weekly Downloads

6

Version

1.1.11

License

MIT

Unpacked Size

253 kB

Total Files

59

Last publish

Collaborators

  • newton_duarte