WorkAdventure's Tailwind themes.
- Node 20.19+ or 22.12+
- Tailwind CSS 4
Add the dependency:
npm install @workadventure/design-systemImport Tailwind and the design system from your application CSS:
@import "tailwindcss";
@import "@workadventure/design-system/theme.css";
@import "@workadventure/design-system/style.css";Tailwind 4 detects source files automatically. If your project needs explicit paths, add them in CSS:
@source "./index.html";
@source "./src/**/*.{js,ts,jsx,tsx}";How to run the example:
npm install
cd example
npm install
cd ..
npm run devAfter that, you can open the example in your browser.
The package is published from source, so there is no separate build step.
