This page shows four button styles using Tailwind CSS. Each button has clear colors, spacing, and focus outlines for accessibility. The disabled button looks faded and cannot be clicked.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Button Patterns</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="flex flex-col items-center gap-4 p-8 bg-gray-50 min-h-screen">
<button class="bg-blue-600 text-white px-6 py-3 rounded shadow hover:bg-blue-700 focus:outline-none focus:ring-4 focus:ring-blue-300" aria-label="Primary action">Primary</button>
<button class="bg-gray-200 text-gray-800 px-6 py-3 rounded hover:bg-gray-300 focus:outline-none focus:ring-4 focus:ring-gray-400" aria-label="Secondary action">Secondary</button>
<button class="border border-blue-600 text-blue-600 px-6 py-3 rounded hover:bg-blue-50 focus:outline-none focus:ring-4 focus:ring-blue-200" aria-label="Outline action">Outline</button>
<button class="bg-green-600 text-white px-6 py-3 rounded disabled:opacity-50" disabled aria-label="Disabled action">Disabled</button>
</body>
</html>