Free tool

Tailwind form generator

Formgong team ·

The Tailwind tab is already open. The sample is a contact form with a topic list. Copy the classes, or describe a different form.

Short answer: A Tailwind form generator writes utility classes for a whole form. This page opens on the Tailwind tab with name, email, a topic list and a message. Labels use for and id. The honeypot is botcheck. Replace the placeholder key and the form posts to Formgong. This page does not load Tailwind.

Copy a Tailwind CSS form

The form below is the example. The Tailwind tab is selected. HTML, Bootstrap 5, React and Vue are the other tabs, from the same fields. Nothing is sent until you replace fk_your_access_key.

Live preview

Preview only. Nothing is sent from this page.

Contact us

Copy the code

Replace fk_your_access_key with your own Formgong access key. The placeholder does not accept submissions. The honeypot field is named botcheck. Leave it empty.

The HTML form posts in the browser. React and Vue show an error on the page if the request fails. These class names need Tailwind on your site. This page does not load Tailwind. Bootstrap 5 class names need Bootstrap on your site. This page does not load Bootstrap.

HTML + Tailwind
<form class="relative mx-auto grid w-full max-w-lg gap-4 rounded-lg border border-slate-200 bg-white p-6 text-base text-slate-900" action="https://formgong.com/submit" method="POST">
  <h2 class="text-2xl font-semibold">Contact us</h2>
  <input type="hidden" name="access_key" value="fk_your_access_key">
  <input type="hidden" name="_lang" value="en">
  <div class="grid gap-1"><label class="font-medium" for="tw-name">Name *</label><input class="w-full rounded-md border border-slate-400 bg-white px-3 py-2 text-base text-slate-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-700" id="tw-name" type="text" name="name" autocomplete="name" required></div>
  <div class="grid gap-1"><label class="font-medium" for="tw-email">Email *</label><input class="w-full rounded-md border border-slate-400 bg-white px-3 py-2 text-base text-slate-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-700" id="tw-email" type="email" name="email" autocomplete="email" required></div>
  <div class="grid gap-1"><label class="font-medium" for="tw-topic">Topic *</label><select class="w-full rounded-md border border-slate-400 bg-white px-3 py-2 text-base text-slate-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-700" id="tw-topic" name="topic" required><option value="">Choose</option><option value="Product">Product</option><option value="Billing">Billing</option><option value="Something else">Something else</option></select></div>
  <div class="grid gap-1"><label class="font-medium" for="tw-message">Message *</label><textarea class="w-full rounded-md border border-slate-400 bg-white px-3 py-2 text-base text-slate-900 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-700 min-h-24" id="tw-message" name="message" required></textarea></div>
  <div class="absolute start-0 top-0 h-px w-px overflow-hidden" aria-hidden="true"><label>Leave this empty<input name="botcheck" tabindex="-1" autocomplete="off"></label></div>
  <button class="min-h-12 rounded-md bg-indigo-700 px-4 py-3 font-semibold text-white" type="submit">Send message</button>
</form>

Make it live free

Create a free form, then open Connect on that form in this browser. If it still has the default name, email and message fields, they are replaced with this form.

Tailwind form tools, checked 11 October 2026
This pageFlavio Copes field generator
OutputA full form: HTML, Tailwind, Bootstrap 5, React, VueOne field, with help text and an error state
DeliveryPosts to Formgong after you add a keyMarkup only. No backend
PreviewFormgong styles, not TailwindThe tool’s own CSS, not Tailwind
AccountNone to copy the codeNone

What the Tailwind classes do

Tailwind’s preflight removes the browser’s form look. An input with no classes is a thin line. Every control here sets width, padding, a slate border, a white background and a visible focus ring.

  • Labels. Each text, email, select and textarea has a label with for matching the control id. The id is tw- plus the field name.
  • Required. Required fields add required and a star in the label. The browser blocks an empty submit.
  • Choices. A select uses one name. Radios share a name. A checkbox group uses one name and is not marked required, because plain HTML would require every box.
  • Honeypot. botcheck sits in a one-pixel box, aria-hidden, tabindex="-1". Leave it empty. Do not style it back onto the page.
  • Button. The submit button uses bg-indigo-700 and a 48px minimum height.

Paste this into a page that already loads Tailwind. If the classes do nothing, the stylesheet is missing. This generator does not add a CDN script for you.

The official forms plugin is optional

The @tailwindcss/forms plugin restyles every form on the site. You do not need it for this snippet. The classes above set the border, radius and focus ring themselves.

Use the plugin when the rest of the site should share one form look. If both are on, the plugin and these classes can fight. Check one input in the browser before you ship.

Focus uses focus-visible, so a mouse click does not always draw the ring. Keyboard users still get it. That is the usual Tailwind pattern.

Where a Tailwind form fits

  • A marketing site on Tailwind. Drop the snippet into the contact section. Point the action at Formgong. Keep your layout classes around it.
  • An AI-built page. Tools such as v0 and Cursor often emit Tailwind. Paste this form instead of asking the model to invent a backend.
  • A component later. The React and Vue tabs use the same fields if the page is not plain HTML. They check result.success and write a failure on the page.

A visual canvas such as Windframe is a better fit when you want to drag fields and see Tailwind paint them live. A one-field lab such as Flavio Copes’s generator is a better fit when you only need help text, an error state and aria-invalid on a single control. This page builds the whole form and the delivery key.

Free limits, email and storage

The Tailwind copy is free. Delivery starts when the placeholder key is a real Formgong key.

Copying the code needs no account. AI generations are limited to 5 an hour and 10 a day for each network, plus 100 a day for the whole site. When a limit is hit, use “Build it yourself, without AI”. That path does not call the model.

On the free plan, Telegram is instant and email is sent for every submission. The free plan is 300 submissions a month. Auto-reply is not on the free plan. Submission data is stored in the EU. Support is Formgong at support@formgong.com.

Your description is sent to the model so it can choose fields. It is not stored. Do not paste passwords, card numbers or other secrets.

Questions

What is a Tailwind form generator?

It writes HTML that uses Tailwind utility classes. This page opens on that tab with a contact form: name, email, topic and message. You can describe a different form, or edit the fields without AI.

Does this page load Tailwind CSS?

No. The preview uses Formgong’s own preview styles. The class names work after you paste the code into a site that loads Tailwind.

How do I make a Tailwind CSS contact form?

Copy the Tailwind tab. Put your access key in the hidden access_key field. Publish the page on a host that already includes Tailwind. The HTML guide shows the same kind of form without utility classes.

Do I need the Tailwind forms plugin?

No. These classes set border, padding and focus themselves. Add @tailwindcss/forms only if you want that plugin’s look on every form.

Will the form send email?

After you replace the placeholder key, yes. On the free plan, Telegram is instant and email is sent for every submission. The free plan is 300 submissions a month.

Sources

Checked on 11.10.2026 against these public pages: Tailwind CSS forms plugin, Flavio Copes: Tailwind form generator, tailwindcss-generator.com form tool, Windframe form builder, Formgong HTML guide.

← Formgong