@tan-ahmed/tan-ui-kit
v0.1.16
Published
A React component library built with Tailwind CSS v4 and base-ui
Downloads
1,576
Maintainers
Readme
@tan-ahmed/tan-ui-kit
A React component library built with Tailwind CSS v4 and base-ui components.
Installation
Recommended: Using pnpm
pnpm add @tan-ahmed/tan-ui-kitUsing yarn
yarn add @tan-ahmed/tan-ui-kitUsing npm
npm install @tan-ahmed/tan-ui-kitNote: If you encounter the error Cannot read properties of null (reading 'matches') with npm, this is a known npm bug with Node.js 23.x. Please use one of the following workarounds:
- Use pnpm or yarn (recommended)
- Use
npm install --legacy-peer-deps - Clear npm cache:
npm cache clean --forceand retry - Update npm:
npm install -g npm@latest
See INSTALLATION_TROUBLESHOOTING.md for more details.
Usage
The package includes pre-generated CSS with all utility classes, so no Tailwind configuration is needed - it works out of the box!
1. Import styles in your entry file
Import the styles once in your main entry point file:
- React (Vite/CRA):
src/main.tsxorsrc/index.tsx - Next.js (App Router):
app/layout.tsxorapp/page.tsx - Next.js (Pages Router):
pages/_app.tsx - TanStack Start:
app.tsx - Other frameworks: Your main entry point file
// In your main entry point file (e.g., src/main.tsx, app.tsx, etc.)
import "@tan-ahmed/tan-ui-kit/styles";2. Use components anywhere
After importing the styles, you can use components anywhere in your app:
import { Button } from "@tan-ahmed/tan-ui-kit";
function MyComponent() {
return <Button variant="secondary">Click me</Button>;
}License
MIT
