Add to Cart Button

A responsive Add to Cart button component designed with skeuomorphic elements, vibrant colors, and dark theme support, suitable for blog and content consumption purposes.

Preview

HTML Code

<div class="flex flex-col items-center justify-center p-6 bg-white rounded-lg shadow-lg dark:bg-gray-800 transition duration-300">
    <img src="https://picsum.photos/200/100" alt="Product Image" class="w-full h-32 rounded-lg shadow-md mb-4">
    <h2 class="text-lg font-bold text-gray-800 dark:text-gray-200 mb-2">Special Product</h2>
    <p class="text-gray-600 dark:text-gray-400 mb-4">This is a great product for your reading material. Click the button below to add it to your cart!</p>
    <button class="bg-gradient-to-r from-blue-500 to-purple-600 text-white font-semibold py-2 px-4 border rounded-lg hover:scale-105 transform transition duration-300 ease-in-out shadow-lg">
        <span class="flex items-center justify-center">
            <img src="https://randomuser.me/api/portraits/men/10.jpg" alt="Avatar" class="w-8 h-8 rounded-full mr-2">
            Add to Cart
        </span>
    </button>
</div>

Related Components

Add to Cart Button

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

Open

Add to Cart Button Component

A responsive 'Add to Cart' button component for travel/tourism websites, inspired by paper/print design with warm sunset tones. Includes dark mode support and a subtle interactive effect.

Open

Add to Cart Button

Brutalism-inspired Add to Cart button with vibrant colors and dark mode support.

Open