- Hyperclay
- Docs
- Publishing
- Tailwind on save
Tailwind on save
Hyperclay generates the Tailwind CSS your document uses, regenerated on every save with no build step.
Hyperclay automatically generates Tailwind CSS for your apps. No build tools, no config files required. The stylesheet is regenerated on save with only the utilities you actually use.
Tailwind CSS#
Hyperclay automatically generates Tailwind CSS for your apps. No build tools, no config files required.
Add this to your <head>:
<link rel="stylesheet" href="/tailwindcss/YOUR-APP-NAME.css">
Replace YOUR-APP-NAME with your HTML filename (without .html). For a file named my-app.html:
<link rel="stylesheet" href="/tailwindcss/my-app.css">
If your app lives in a folder, the Tailwind URL mirrors that path. For an app at /projects/todo.html:
<link rel="stylesheet" href="/tailwindcss/projects/todo.css">
Then use Tailwind classes anywhere in your HTML:
<button class="px-4 py-2 bg-blue-500 text-white rounded">
Click me
</button>
The CSS regenerates on save (and on first request if missing) with only the utilities you use. Works on hyperclay.com and Hyperclay Local.