Skip to main content

Tailwind Input Generator

Build custom input styles with Tailwind utility classes.
Toggle options and copy the generated classes instantly.

Reset / Remove

Border

Spacing

Colors

Focus State

Hover State

Other

outline-none border-2 border-gray-200 rounded-lg px-4 py-2.5 bg-white text-gray-900 placeholder-gray-400 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 hover:border-gray-400 text-base w-full transition-all duration-200
<input
  type="text"
  placeholder="Type something..."
  class="outline-none border-2 border-gray-200 rounded-lg px-4 py-2.5 bg-white text-gray-900 placeholder-gray-400 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20 hover:border-gray-400 text-base w-full transition-all duration-200"
/>