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.
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 Component
A responsive 'Add to Cart' button designed in dark mode using Tailwind CSS, with hover effects and dark theme support.
Add to Cart Button
A Skeuomorphic Add to Cart button with responsive effects and dark theme support.
Glassmorphism Add to Cart Button
Add to Cart Button with Glassmorphism style, Monochromatic color scheme, and Moderate complexity. Responsive with Dark Mode support.