About Tailwind CSS Playground
Try Tailwind CSS classes and see the result live. Write HTML with Tailwind utility classes such as flex, p-4, text-xl and bg-indigo-600, and the preview updates as you type. You can add extra plain CSS, preview at tablet and phone widths, and download the finished page. The Tailwind engine is served from this site, so nothing is loaded from other websites and nothing you type is uploaded.
How to use Tailwind CSS Playground
- Press Sample to load an example, or write your own HTML with Tailwind classes.
- Change classes and watch the preview. Use the Tablet and Phone buttons to check responsive classes like md:flex.
- Add any extra plain CSS in the Extra CSS tab if you need it.
- Press Copy full page or Download HTML. The downloaded file loads Tailwind from a public CDN so it works on its own.
Tips and good to know
- This uses Tailwind CSS version 4. Some class names differ from version 3, and your project's version decides what works there.
- Responsive prefixes (sm:, md:, lg:) respond to the width of the preview frame, so use the width buttons to try them.
- Hover and focus classes such as hover:bg-indigo-500 work when you point at the preview.
- Colour and spacing scales come from Tailwind's default theme. Custom theme settings are not available in this playground.
- The preview is isolated and cannot load outside images or fonts.
Frequently asked questions
Which Tailwind version is this?
Version 4, using its browser build. It reads your classes in the preview and creates only the CSS they need.
Can I use my own tailwind.config?
No. This playground uses the default theme.
Is it safe to paste my code?
Yes. It runs in your browser in an isolated frame and nothing is sent anywhere.
Why does the downloaded page need the internet?
The downloaded file loads Tailwind from a public CDN. For a real project, install Tailwind and build your CSS instead.
Why do arbitrary values like w-[37px] work?
Tailwind generates the CSS for any valid class it finds in your HTML, including values in square brackets.
Is Tailwind CSS Playground free?
Yes. Tailwind CSS Playground is 100% free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.
Are my files uploaded?
No. This tool runs in your browser, so your input stays on your device.