Installation
Get DengaUI set up in your project in under a minute.
1. Install the package
DengaUI is a Tailwind CSS plugin. Install it alongside Tailwind v4:
Or with your preferred package manager:
2. Configure your CSS
In your main CSS file, import Tailwind and register the DengaUI plugin:
That's it. No tailwind.config.js needed.
Tailwind v4 uses the CSS-first configuration approach, and DengaUI registers its components, utilities, and theme tokens automatically through the plugin directive.
3. Build your CSS
Run the Tailwind CLI to compile your stylesheet:
Or if you use Vite, PostCSS, or another bundler, Tailwind v4 integrates natively. See the Tailwind CSS docs for framework-specific guides.
4. Start using components
Add DengaUI classes to your HTML. All component classes are prefixed with dui-:
Hello World
DengaUI is ready to use.
CDN (Quick Prototyping)
For quick demos or prototyping, you can load the pre-built CSS from a CDN. This includes all components and the default theme:
Alpine.js (Optional)
DengaUI components are CSS-first and work without JavaScript. For interactive behavior like dropdowns, modals, and tabs, add Alpine.js:
Then initialize it in your entry file:
Or use the CDN script tag:
Alpine.js is entirely optional. DengaUI's styling works independently, and you can use any JavaScript framework for interactivity.