easy
+5 XP
FRONTEND

Tailwind Button Variants

Create buttons with primary, secondary, and danger variants using Tailwind.
You're exploring as a guest. Create a free account to save progress and submit solutions.
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" href="/styles.css" />
  <script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
  <button class="bg-blue-500 text-white px-4 py-2 rounded">Primary</button>

  <script src="/index.js"></script>
</body>
</html>