Frameworks

Tailwind on Vite 8

Vite 8, React 19 and Tailwind CSS 4, with rolldown, lightningcss and Tailwind’s oxide scanner running as WebAssembly.

bash · ~/app
editor

The project's files open here.

Changes save as you type. Press Escape, then Tab, to leave the editor.

preview

The page the server serves shows here.

  1. boot
  2. npm install
  3. start
  4. ready

idle

betaClientVM is pre-1.0 (v0.2.0): things can break, and APIs may change between releases. Found a bug? Open an issue.

About this demo

Vite 8 and Tailwind 4 lean on native binaries: rolldown for bundling, lightningcss for CSS, and Tailwind’s oxide scanner. ClientVM swaps each for its official WebAssembly build of the same version, downloaded and integrity-checked on first use, so the project needs no changes.

The package.json and lockfile are the ones the end-to-end tests install. Edit a class in App.jsx and the scanner finds it; Vite hot-reloads the CSS.

How it's built

const app = await vm.createInstance({ fs: { from: { home: { user: { app: project } } } } });

app.onPortOpen((port, url) => (preview.src = url));
// native rolldown, lightningcss and oxide are swapped for their WebAssembly builds
await app.exec('npm install && npm run dev', { cwd: '/home/user/app' });