Install with package managers
- pnpm
- npm
- yarn
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: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
2
Import global styles
Add to your main CSS file:This imports:
styles/globals.css
- 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
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
