Shopping Cart Component
A Neumorphic styled shopping cart component for e-commerce, featuring a monochromatic color scheme, rich interactive elements, and dark theme support using Tailwind CSS.
HTML Code
<div class="min-h-screen bg-gray-100 dark:bg-gray-900 flex items-center justify-center p-6">
<div class="bg-white dark:bg-gray-800 shadow-inner rounded-xl p-8 max-w-md w-full">
<h2 class="text-gray-800 dark:text-white text-2xl font-semibold mb-6 text-center">Shopping Cart</h2>
<div class="space-y-4">
<div class="flex items-center justify-between bg-gray-200 dark:bg-gray-700 rounded-lg p-4">
<img src="https://picsum.photos/60/60" alt="Product" class="rounded-md shadow-md">
<div class="flex-1 ml-4">
<h3 class="text-gray-800 dark:text-white font-medium">Product Title</h3>
<p class="text-gray-600 dark:text-gray-400">$29.99</p>
</div>
<div class="flex items-center">
<button class="text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-white font-bold">-</button>
<span class="mx-2">1</span>
<button class="text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-white font-bold">+</button>
</div>
</div>
<div class="flex items-center justify-between bg-gray-200 dark:bg-gray-700 rounded-lg p-4">
<img src="https://picsum.photos/60/60" alt="Product" class="rounded-md shadow-md">
<div class="flex-1 ml-4">
<h3 class="text-gray-800 dark:text-white font-medium">Another Product</h3>
<p class="text-gray-600 dark:text-gray-400">$19.99</p>
</div>
<div class="flex items-center">
<button class="text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-white font-bold">-</button>
<span class="mx-2">2</span>
<button class="text-gray-600 dark:text-gray-400 hover:text-gray-800 dark:hover:text-white font-bold">+</button>
</div>
</div>
</div>
<div class="mt-6 bg-gray-300 dark:bg-gray-600 rounded-lg p-4 flex justify-between items-center">
<span class="text-gray-800 dark:text-white font-bold">Total:</span>
<span class="text-lg text-gray-800 dark:text-white font-semibold">$69.97</span>
</div>
<div class="mt-4 flex justify-center">
<button class="bg-blue-500 dark:bg-blue-700 text-white font-semibold py-2 px-4 rounded-lg shadow">
Checkout
</button>
</div>
</div>
</div>
Related Components
Shopping Cart Component
A shopping cart component designed with skeuomorphism. It features digital elements that mimic their real-world counterparts, full responsive support, and dark theme compatibility.
3D Shopping Cart Component
A visually striking shopping cart component with 3D design elements that create depth and engagement. Uses a triadic color scheme (primary blue, vivid red, and amber yellow) for visual interest. This complex interface includes product listings with images, quantity controls, price summaries, and hover effects that simulate 3D movement. Fully responsive with dark theme support. The component is designed for a content/blog environment where readers might purchase recommended products while consuming content.
Shopping Cart Component
A responsive shopping cart component with a skeuomorphic design, featuring dark theme support and random placeholder images.