Components Cards Dark Mode Social Cards

Dark Mode Social Cards

A responsive card component styled for dark mode with earth tones, designed for social media interfaces.

Preview

HTML Code

<div class="max-w-sm mx-auto p-4">
  <div class="bg-gray-800 rounded-lg shadow-lg dark:bg-gray-900">
    <img class="rounded-t-lg" src="https://picsum.photos/400/200" alt="Card image cap">
    <div class="p-4">
      <div class="flex items-center">
        <img class="w-12 h-12 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar">
        <div class="ml-4">
          <h2 class="text-lg font-bold text-gray-300 dark:text-gray-100">John Doe</h2>
          <p class="text-sm text-gray-500 dark:text-gray-400">@john_doe</p>
        </div>
      </div>
      <p class="mt-2 text-gray-300 dark:text-gray-200">
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque ut libero et neque vehicula porta.
      </p>
      <div class="flex justify-between mt-4">
        <button class="text-gray-300 dark:text-gray-200 hover:text-gray-200 dark:hover:text-gray-100">Like</button>
        <button class="text-gray-300 dark:text-gray-200 hover:text-gray-200 dark:hover:text-gray-100">Comment</button>
        <button class="text-gray-300 dark:text-gray-200 hover:text-gray-200 dark:hover:text-gray-100">Share</button>
      </div>
    </div>
  </div>
</div>

Related Components

Cards Component

Responsive Dark Mode Card Component for Portfolio with Pastel color scheme.

Open

Glassmorphism Cards Component

Glassmorphism Cards Component with Vibrant Colors. Responsive design with dark theme support. Uses picsum.photos for images and randomuser.me for avatars.

Open

Dark Mode Cards Component

A responsive cards component designed for Business/Corporate websites with a dark mode UI and grayscale color scheme, featuring moderate complexity and interactivity.

Open