Components Product Cards Product Cards Component

Product Cards Component

A responsive product card component designed in Material Design style, featuring a grayscale color scheme. It includes an image, title, description, and a button with dark mode support using Tailwind CSS.

Preview

HTML Code

<div class="max-w-sm mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden">
    <img class="w-full h-48 object-cover" src="https://picsum.photos/400/300" alt="Product Image">
    <div class="p-4">
        <h2 class="font-semibold text-lg text-gray-800 dark:text-gray-200">Product Title</h2>
        <p class="text-gray-600 dark:text-gray-400 mt-2">This is a brief description of the product showcasing its features and benefits.</p>
        <div class="mt-4">
            <a href="#" class="bg-gray-800 text-white font-bold py-2 px-4 rounded hover:bg-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600">View Product</a>
        </div>
    </div>
</div>

<div class="max-w-sm mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden mt-6">
    <img class="w-full h-48 object-cover" src="https://picsum.photos/400/301" alt="Product Image">
    <div class="p-4">
        <h2 class="font-semibold text-lg text-gray-800 dark:text-gray-200">Product Title</h2>
        <p class="text-gray-600 dark:text-gray-400 mt-2">This is a brief description of the product showcasing its features and benefits.</p>
        <div class="mt-4">
            <a href="#" class="bg-gray-800 text-white font-bold py-2 px-4 rounded hover:bg-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600">View Product</a>
        </div>
    </div>
</div>

<div class="max-w-sm mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden mt-6">
    <img class="w-full h-48 object-cover" src="https://picsum.photos/400/302" alt="Product Image">
    <div class="p-4">
        <h2 class="font-semibold text-lg text-gray-800 dark:text-gray-200">Product Title</h2>
        <p class="text-gray-600 dark:text-gray-400 mt-2">This is a brief description of the product showcasing its features and benefits.</p>
        <div class="mt-4">
            <a href="#" class="bg-gray-800 text-white font-bold py-2 px-4 rounded hover:bg-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600">View Product</a>
        </div>
    </div>
</div>

<div class="max-w-sm mx-auto bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden mt-6">
    <div class="flex items-center p-4">
        <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/men/1.jpg" alt="Avatar">
        <div class="ml-3">
            <h3 class="text-gray-800 dark:text-gray-200 font-bold">User Name</h3>
            <p class="text-gray-600 dark:text-gray-400">Product Owner</p>
        </div>
    </div>
</div>

Related Components

Skeuomorphic Product Cards Component

Simple, responsive product cards component with a skeuomorphic design in grayscale, suitable for business/corporate websites. Includes dark mode support.

Open

Neumorphic Product Cards Component - Retro Palette

A complex, responsive product cards component designed with a soft Neumorphic UI style, using a muted retro/vintage color palette. Features include dark mode support, subtle shadows for extrusion effect, and semantic HTML for accessibility. Suitable for reading and content consumption, such as a blog or content display.

Open

Product Cards Component - Agriculture/Farming

A responsive product card component designed for agriculture and farming websites, featuring clean typography, grid systems, and autumn colors. Includes dark mode support.

Open