Problem: Hero with signup form.

Solution#

html
<section class="grid items-center gap-12 py-20 lg:grid-cols-2">
  <div>pitch…</div>
  <form class="rounded-2xl border p-6 shadow-xl space-y-3">
    <input class="w-full rounded-lg border px-3 py-2.5" placeholder="Work email" />
    <button class="w-full rounded-lg bg-blue-600 py-2.5 font-semibold text-white">Get started</button>
  </form>
</section>

Why this works#

Form card replaces the screenshot.

Variants#

  • Responsive: add screen prefixes to the core classes
  • Dark: pair each color utility with its dark: twin
  • Animated: add transition + a state variant for motion

cookbook/index|Cookbook index · utilities/index|Utilities reference · patterns/index|Layout patterns