Login Form Component
A simple login form component designed in a brutalist style with earth tones, suitable for blog/content purposes, and optimized for both light and dark themes.
HTML Code
<div class="flex items-center justify-center min-h-screen bg-gray-100 dark:bg-gray-900 p-4">
<div class="bg-brown-500 shadow-lg rounded-lg p-8 max-w-md w-full">
<h2 class="text-3xl font-bold text-white text-center mb-6">Login</h2>
<form>
<div class="mb-4">
<label class="block text-white text-sm font-bold mb-2" for="username">Username</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 focus:outline-none focus:ring focus:ring-brown-300" id="username" type="text" placeholder="Enter your username" required />
</div>
<div class="mb-6">
<label class="block text-white text-sm font-bold mb-2" for="password">Password</label>
<input class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 focus:outline-none focus:ring focus:ring-brown-300" id="password" type="password" placeholder="Enter your password" required />
</div>
<div class="flex items-center justify-between">
<button class="bg-brown-600 hover:bg-brown-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline" type="submit">Login</button>
</div>
</form>
</div>
</div>
Related Components
Login Form Component
A simple and responsive Login Form Component crafted with a pastel color palette (soft pinks and complementary grays) and engaging microinteractions, such as smooth transitions and subtle hover/focus effects. Designed for business or corporate websites, it features a clean layout, is fully responsive, and includes comprehensive dark theme support. Built purely with HTML and Tailwind CSS.
Login Form Component
A minimalist login form component designed with a triadic color scheme suitable for portfolio showcasing with dark mode support.
Brutalist Login Form
A complex, responsive login form designed in a brutalist style with earth tones, tailored for e-commerce applications, featuring dark mode support.