daisyUI Online Compiler

About the daisyUI compiler

Tailwind CSS component library. Runs in your browser. Run daisyUI code in your browser with no install and no signup — the editor, the input and the output share one screen. daisyUI compiles and runs on your own device through WebAssembly, so once the page has loaded it keeps working without a network connection.

Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.

A daisyUI example

This is the program the daisyUI editor opens with — run it as it is, then change it.

<!DOCTYPE html>
<html>
<head>
  <link href="https://cdn.jsdelivr.net/npm/daisyui@4/dist/full.css" rel="stylesheet">
  <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="p-8 bg-base-200">
  <div class="max-w-md mx-auto space-y-4">
    <h1 class="text-3xl font-bold">daisyUI</h1>
    <div class="card bg-base-100 shadow-xl">
      <div class="card-body">
        <h2 class="card-title">Hello daisyUI!</h2>
        <p>Beautiful components built on Tailwind CSS.</p>
        <div class="card-actions justify-end">
          <button class="btn btn-primary">Accept</button>
          <button class="btn btn-ghost">Cancel</button>
        </div>
      </div>
    </div>
    <div class="alert alert-info"><span>Tip: daisyUI adds component classes to Tailwind.</span></div>
  </div>
</body>
</html>

More Web UI Frameworks compilers

Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.