@clerval42/ui-kit
v0.1.5
Published
A Tailwind CSS and Material-UI component library
Readme
@clerval42/ui-kit
A customizable React component library built on top of Material-UI (MUI) and styled with Tailwind CSS. Design tokens (JSON) control colors, spacing, borders, and icons — change once, apply everywhere.
- ✅ Ready-to-use, themeable UI components
- 🎯 Consistent design via tokens
- 🤝 Full compatibility with MUI + Tailwind
- 🧩 Easy to add variants/sizes
Quick Start
npm install @clerval42/ui-kitNote: You must have Tailwind CSS set up in your project to use this library. If you haven't already, follow the Tailwind CSS installation guide before proceeding.
Usage
Note: You must import the button as
UiButton(notButton):
import { UiButton } from "@clerval42/ui-kit";
export default function App() {
return <UiButton variant="primary">Submit</UiButton>;
}Features
- Design tokens (JSON) → CSS variables at runtime
- MUI
ButtonBase+ Tailwind styling startIcon/endIcon, sizes:small | medium | large- Variants:
primary | secondary | outlined | ghost - Dark/light themes via token switch
Tokens
Button styles (colors, borders, spacing, icon size/gap, etc.) are controlled by JSON design tokens for consistency and easy theming. Edit src/tokens/button.json to customize button appearance.
Peer Dependencies
- react >= 18
- @mui/material >= 5
- @emotion/react, @emotion/styled
Versioning
- SemVer. See Releases: https://github.com/clerval42/tailwind-mui-library/releases
License
MIT
