Checkout Form Component
A simple and responsive checkout form component with dark mode support using Tailwind CSS.
HTML Code
<div class="min-h-screen flex items-center justify-center p-6 bg-gray-900">
<div class="w-full max-w-md bg-gray-800 p-8 rounded-md shadow-md">
<h2 class="text-2xl font-bold text-white mb-6">Checkout</h2>
<form>
<div class="mb-4">
<label for="name" class="block text-white text-sm font-bold mb-2">Name</label>
<input type="text" id="name" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="mb-4">
<label for="email" class="block text-white text-sm font-bold mb-2">Email</label>
<input type="email" id="email" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="mb-4">
<label for="card" class="block text-white text-sm font-bold mb-2">Card Number</label>
<input type="text" id="card" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="mb-6">
<label for="expiry" class="block text-white text-sm font-bold mb-2">Expiry Date</label>
<input type="text" id="expiry" class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline bg-gray-700 text-white border-gray-600">
</div>
<div class="flex items-center justify-between">
<button type="button" class="bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline">Submit</button>
</div>
</form>
</div>
</div>
Related Components
Checkout Form Component - Neumorphic Corporate Blues
A complex, responsive checkout form component with a neumorphic design style, using corporate blue tones. It supports dark mode and is suitable for business/corporate websites.
Checkout Form Component - Healthcare/Medical
A complex, responsive checkout form component with a soft, artistic watercolor design theme, warm neutral color scheme, and dark mode support, suitable for healthcare and medical applications.
Minimalist Grayscale Checkout Form
A complex, responsive, grayscale, minimalist checkout form for business/corporate websites with dark mode support using Tailwind CSS.