src/main.js
import { createApp } from 'vue'
import App from './App.vue'
import './styles.css'
createApp(App).mount('#app')
Online Vue and Tailwind CSS playground with editable single-file components, Tailwind CSS v4 utilities, and instant live preview.
Choose a source file from the explorer and edit it with Monaco.
Edit package.json to add browser-compatible npm packages or change versions. Preview packages load from esm.sh. Successful previews save resolved versions for ranges and tags with your draft and shares; change the range to resolve again. Scripts and build plugins run only in downloaded projects.
Auto-run updates the browser preview as you type. Turn it off to run your changes manually.
Use the console for browser logs and errors, or evaluate a command against the preview.
Share creates a snapshot link. Download exports the source so you can continue locally.
import { createApp } from 'vue'
import App from './App.vue'
import './styles.css'
createApp(App).mount('#app')
<script setup>
import { ref } from 'vue'
import MetricCard from './components/MetricCard.vue'
const published = ref(false)
</script>
<template>
<main class="min-h-screen bg-emerald-950 px-6 py-16 text-emerald-50">
<section class="mx-auto max-w-4xl">
<span class="rounded-full border border-emerald-300/25 bg-emerald-300/10 px-3 py-1 font-mono text-xs font-bold uppercase tracking-[0.18em] text-emerald-200">
Vue 3 + Tailwind CSS 4
</span>
<div class="mt-8 grid gap-8 lg:grid-cols-[1.25fr_0.75fr] lg:items-end">
<div>
<h1 class="text-5xl font-black tracking-[-0.055em] text-white sm:text-7xl">
Utility-first Vue components.
</h1>
<p class="mt-5 max-w-2xl text-lg leading-8 text-emerald-100/65">
Edit Vue single-file components with Tailwind utilities and see the
browser preview update instantly.
</p>
</div>
<button
type="button"
class="rounded-2xl bg-emerald-300 px-5 py-3 font-bold text-emerald-950 shadow-lg shadow-emerald-500/20 transition hover:-translate-y-0.5 hover:bg-emerald-200"
@click="published = !published"
>
{{ published ? 'Published successfully' : 'Publish preview' }}
</button>
</div>
<div class="mt-12 grid gap-4 sm:grid-cols-3">
<MetricCard label="Components" value="2" detail="Editable SFC files" />
<MetricCard label="Runtime" value="3.5" detail="Vue Composition API" />
<MetricCard label="Styling" value="v4" detail="Tailwind CSS" />
</div>
</section>
</main>
</template>
The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Edit a source file from the project explorer — the live preview recompiles automatically.
Add, rename, duplicate or delete project files as needed. Update affected imports after renaming or moving a file.
Use the console for logs and errors, and Format to tidy the active file.
Share the complete project or download a Vite project ZIP with its source files and package.json.
Vue 3 Composition API
Tailwind CSS v4
Utility Class IntelliSense
Editable Single-File Components
Local Component Imports
Live Preview
Vite Project Export
Auto-run updates the preview as you type. Turn it off to run manually with Run or Ctrl/⌘ + Enter.
The Console prompt can inspect browser globals and the rendered DOM, but not variables scoped inside ES modules or component state.
Console shortcuts apply when its prompt is focused. Editor shortcuts apply inside the code editor.
Code runs in a sandboxed browser preview, without Node.js, a backend, or private environment variables.
Download the project when you need build plugins, server APIs, native modules, or a production dependency workflow.