A minimalist React component library based on Tailwind CSS.
- πΏ Minimal & Clean β No extra dependencies beyond Tailwind.
- β‘ SSR Compatible β Works seamlessly with Next.js and other SSR frameworks.
- π¨ Fully Stylable β Designed to fit into your Tailwind theme easily.
npm install @mints/ui
Make sure Tailwind CSS is properly configured in your project.
import { Button } from '@mints/ui';
export default function App() {
return <Button>Click me</Button>;
}
If you're using Tailwind CSS v3 or v4, you need to explicitly include @mints/ui
in your Tailwind content array so that Tailwind can detect all class names used by the library.
In your tailwind.config.js
or tailwind.config.ts
:
export default {
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/@mints/ui/dist/**/*.js', // π Required for Mints UI
],
// ... your theme/plugins/etc
};
Tailwind CSS v4 introduced the @config
directive for content-aware builds.
If you're using Tailwind v4 with a CSS entry file (like main.css
), make sure to declare your config path at the top of the file:
@config "../tailwind.config.js";
Without this, Tailwind wonβt be able to access your configuration and may purge styles used in @mints/ui
.
Also confirm your tailwind.config.js
includes the following:
export default {
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/@mints/ui/dist/**/*.js', // π Required for Mints UI
],
};
This ensures Tailwind correctly processes class names inside third-party packages like @mints/ui
.
π View full Storybook
MIT