Components Forms Forms Component

Forms Component

A complex Material Design form component with a triadic color scheme for a dashboard. It is responsive and supports dark mode.

Preview

HTML Code

<div class="min-h-screen bg-gray-100 dark:bg-gray-900 p-8 flex items-center justify-center">
  <div class="max-w-4xl w-full bg-white dark:bg-gray-800 rounded-lg shadow-xl p-8">
    <h2 class="text-2xl font-bold text-gray-800 dark:text-white mb-8 text-center">Dashboard Settings</h2>
    <div class="grid grid-cols-1 md:grid-cols-2 gap-8">
      <div>
        <label for="username" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Username</label>
        <input type="text" id="username" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="john.doe">
      </div>
      <div>
        <label for="email" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Email Address</label>
        <input type="email" id="email" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="[email protected]">
      </div>
      <div>
        <label for="password" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Password</label>
        <input type="password" id="password" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="********">
      </div>
      <div>
        <label for="confirm-password" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Confirm Password</label>
        <input type="password" id="confirm-password" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="********">
      </div>
      <div class="md:col-span-2">
        <label for="bio" class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Bio</label>
        <textarea id="bio" rows="4" class="w-full px-4 py-2 border rounded-lg dark:border-gray-700 bg-gray-200 dark:bg-gray-700 text-gray-700 dark:text-gray-200 focus:outline-none focus:border-blue-500 dark:focus:border-blue-500" placeholder="Tell us about yourself..."></textarea>
      </div>
      <div class="md:col-span-2">
        <label class="block text-gray-700 dark:text-gray-200 font-bold mb-2">Notification Settings</label>
        <div class="flex items-center mb-4">
          <input type="checkbox" id="email-notifications" class="mr-2">
          <label for="email-notifications" class="text-gray-700 dark:text-gray-200">Receive email notifications</label>
        </div>
        <div class="flex items-center">
          <input type="checkbox" id="push-notifications" class="mr-2">
          <label for="push-notifications" class="text-gray-700 dark:text-gray-200">Receive push notifications</label>
        </div>
      </div>
    </div>
    <div class="flex justify-end mt-8">
      <button class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded mr-4">Cancel</button>
      <button class="bg-green-500 hover:bg-green-700 text-white font-bold py-2 px-4 rounded">Save Settings</button>
    </div>
  </div>
</div>

Related Components

Brutalist Forms Component

A simple brutalist-styled forms component for social media. It features a high contrast, raw design using grayscale colors and is responsive with dark mode support.

Open

Forms Component

Forms Component with Glassmorphism style, Vibrant color scheme, and Simple complexity for Portfolio. Responsive design with dark theme support using Tailwind CSS. No JavaScript.

Open

Social Media Form Component with 3D Design and Vibrant Colors

A complex, responsive, and vibrant 3D-inspired social media form component with dark theme support.

Open