Buttons Component
A minimalist buttons component designed with Tailwind CSS, featuring responsive effects and dark theme support.
HTML Code
<div class="flex flex-wrap space-x-4 justify-center p-6">
<button class="bg-blue-500 text-white font-semibold py-2 px-4 rounded shadow-md hover:shadow-lg transition duration-200 ease-in-out transform hover:scale-105">
Primary Button
</button>
<button class="bg-gray-300 text-gray-800 font-semibold py-2 px-4 rounded shadow-md hover:shadow-lg transition duration-200 ease-in-out transform hover:scale-105">
Secondary Button
</button>
<button class="bg-green-500 text-white font-semibold py-2 px-4 rounded shadow-md hover:shadow-lg transition duration-200 ease-in-out transform hover:scale-105">
Success Button
</button>
<button class="bg-red-500 text-white font-semibold py-2 px-4 rounded shadow-md hover:shadow-lg transition duration-200 ease-in-out transform hover:scale-105">
Danger Button
</button>
</div>
<style>
@media (prefers-color-scheme: dark) {
.bg-blue-500 { background-color: #2563eb; }
.bg-gray-300 { background-color: #4b5563; }
.bg-green-500 { background-color: #22c55e; }
.bg-red-500 { background-color: #ef4444; }
.text-white { color: #ffffff; }
.text-gray-800 { color: #f9fafb; }
.shadow-md { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
}
</style>
Related Components
Buttons Component
A minimalist/flat design Buttons Component with a grayscale color scheme. It is suitable for business/corporate websites and has moderate complexity with some interactive features. It is responsive and supports dark theme using Tailwind CSS.
Buttons Component
A set of interactive buttons designed for a portfolio, featuring microinteractions, a complementary color scheme, and full responsiveness with dark mode support.
Buttons Component
A Buttons Component designed in Material Design style with a pastel color scheme, responsive for business/corporate websites, and supporting dark themes.