Add to Cart Button Component
A 3D styled Add to Cart button component with vibrant colors, responsive design, and dark theme support using Tailwind CSS.
HTML Code
<div class="flex justify-center items-center p-6">
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-4 transform transition-transform hover:scale-105">
<div class="flex justify-between items-center mb-4">
<img src="https://picsum.photos/50" alt="Product Image" class="w-16 h-16 rounded-full border-2 border-violet-600 shadow-lg">
<div class="ml-4">
<h2 class="text-lg font-bold text-violet-700 dark:text-violet-300">Product Name</h2>
<p class="text-md text-gray-600 dark:text-gray-300">$49.99</p>
</div>
</div>
<button class="w-full bg-violet-600 hover:bg-violet-700 dark:bg-violet-700 dark:hover:bg-violet-600 text-white font-bold py-2 px-4 rounded-lg shadow-2xl transform hover:translate-y-1 transition-all duration-200 ease-in-out">
Add to Cart
</button>
</div>
</div>
Related Components
Retro Add to Cart Button
Responsive 'Add to Cart' button with Retro/Vintage design, Complementary color scheme, and moderate complexity for a dashboard purpose. Supports dark mode.
Luxury_Retro_Add_to_Cart_Button
An elegant 'Add to Cart' (or 'Inquire Now' for real estate) button component with a luxury/premium feel and a retro/vintage color palette. Designed for real estate platforms, featuring responsive design and dark mode support.
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.