Skip to main content
The gadget-ui package requires React 18+, Tailwind CSS 3.4+, and Node 18+. It ships with ESM and CJS builds plus TypeScript definitions.

Install with package managers

Peer dependencies

The package declares these peer dependencies:
Tailwind CSS 4.x is supported. The preset uses CSS custom properties that work with both v3 and v4.

Direct dependencies

The package bundles these dependencies (you do not need to install them separately):

Package exports

The package exposes three entry points:
package.json exports

Import paths

Verify installation

Check that the package is available:
Expected output:

Next steps

After installation, configure Tailwind and import global styles:
1

Configure Tailwind

Add the gadget-ui preset to tailwind.config.js:
tailwind.config.js
You must include ./node_modules/@aurelienbbn/gadget-ui/dist/**/*.js in your content array so Tailwind detects component classes.
2

Import global styles

Add to your main CSS file:
styles/globals.css
This imports:
  • Inter Variable font
  • Inconsolata monospace font (400, 700)
  • CSS custom properties for colors, shadows, radius
  • Dark and light theme definitions
3

Use components

Import and render:
src/App.tsx
See Setup for a detailed walkthrough of Tailwind configuration.

TypeScript support

The package includes TypeScript definitions (dist/index.d.ts). Type exports are available:

Next steps

Setup

Configure Tailwind and import global styles

Theming

Learn about design tokens and theme switching