Add to Cart Button

A Skeuomorphic 'Add to Cart' button component designed with Tailwind CSS, featuring responsive effects and dark theme support.

Preview

HTML Code

<div class="flex items-center justify-center h-screen bg-gray-100 dark:bg-gray-900">
    <div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 flex items-center space-x-4 transition-transform transform hover:scale-105">
        <img src="https://picsum.photos/50" alt="Product Image" class="w-12 h-12 rounded-lg shadow">
        <div class="flex-1">
            <h2 class="text-lg font-bold text-gray-800 dark:text-gray-200">Product Name</h2>
            <p class="text-gray-600 dark:text-gray-400">Short description of the product.</p>
        </div>
        <button class="bg-blue-500 text-white font-semibold py-2 px-4 rounded-lg shadow-md hover:bg-blue-400 transition duration-200">
            Add to Cart
        </button>
    </div>
</div>

Related Components

Add to Cart Button Component

A retro/vintage styled 'Add to Cart' button component for e-commerce applications. This button has a nostalgic design inspired by the 80s and 90s, using an analogous color scheme and featuring effects for interactivity. It's responsive and supports dark themes.

Open

Add to Cart Button Component

A responsive Add to Cart Button component designed in a Brutalist style with vibrant colors, suitable for social media interfaces with dark theme support.

Open

Add to Cart Button

A responsive Add to Cart button component designed in a skeuomorphic style, with vibrant colors and dark theme support, suitable for social media interfaces.

Open