A modern, accessible, and customizable React component library built with Tailwind CSS by Uprock.
- 🎨 Comprehensive Component Library: Button, Card, Input, Modal, Radio, Select, Sidebar, Switch, Table, Tabs, and more
- 🎯 Accessibility First: Built with accessibility in mind using Radix UI primitives
- 🎨 Themeable: Customizable colors and styles
- 📦 TypeScript Support: Fully typed components
- 🎨 Tailwind CSS: Built with Tailwind for consistent styling
- 📚 Storybook Documentation: Interactive component documentation
npm install @bluewavelabs/prism-ui
- Import the styles in your app's entry point (e.g.,
App.tsx
ormain.tsx
):
import '@bluewavelabs/prism-ui/style';
- Use the components in your app:
import { Button, Card, Input } from '@bluewavelabs/prism-ui';
function App() {
return (
<div>
<Button>Click me</Button>
<Card>
<Card.Title>Welcome</Card.Title>
<Card.Content>This is a card</Card.Content>
</Card>
<Input label="Enter text" />
</div>
);
}
- Button - Versatile button component with multiple variants
- Card - Flexible card component for content display
- Input - Form input component with validation support
- Modal - Dialog/modal component
- Sidebar - Navigation sidebar
- Table - Data table component
- Tabs - Tabbed interface component
Prism uses Tailwind CSS for styling. You can customize the theme by:
- Extending the Tailwind config:
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
// Your custom colors
},
},
},
}
- Importing the base styles:
import '@bluewavelabs/prism-ui/style';
- Clone the repository
- Install dependencies:
npm install
- Start Storybook:
npm run storybook
npm run build
npm run release
- 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
MIT © Uprock Prism