Add to Cart Button Component
A responsive Add to Cart button designed for dark mode using Tailwind CSS.
HTML Code
<div class="flex items-center justify-center p-10 bg-gray-900 min-h-screen">
<div class="bg-gray-800 rounded-lg shadow-lg p-6">
<div class="flex items-center">
<img src="https://picsum.photos/100" alt="Product Image" class="w-16 h-16 rounded-lg mr-4">
<div class="text-white">
<h2 class="text-lg font-semibold">Product Name</h2>
<p class="text-gray-400">Product description goes here.</p>
<p class="text-xl font-bold mt-2">$29.99</p>
</div>
</div>
<button class="mt-4 w-full bg-blue-600 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition duration-200 ease-in-out">
Add to Cart
</button>
</div>
</div>
Related Components
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.
Brutalism Pastel Add to Cart Button
Brutalism-inspired Add to Cart button with a pastel color scheme, moderate complexity, and responsive design with dark mode support. Suitable for a blog or content website.
Glassmorphism Add to Cart Button
Add to Cart Button with Glassmorphism style, Monochromatic color scheme, and Moderate complexity. Responsive with Dark Mode support.