Toggle navigation
☰
HTML
CSS
Scripting
Database
<!doctype html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Tailwind CSS Checklist</title> <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4.2.1"></script> </head> <body class="bg-gray-50 flex items-center justify-center min-h-screen p-6 antialiased" x-data="{ tasks: [ { title: 'System Link: Stable', completed: true }, { title: 'Neural Sync: Enabled', completed: true }, { title: 'Grid Expansion: Pending', completed: false }, { title: 'Final Authorization', completed: false } ] }"> <div class="w-full max-w-sm bg-white rounded-[2.5rem] p-10 shadow-3xl border border-white"> <h3 class="text-2xl font-black text-slate-900 tracking-tighter mb-8 italic text-center">Protocol Checklist.</h3> <ul class="space-y-6"> <template x-for="(task, index) in tasks" :key="index"> <li @click="task.completed = !task.completed" class="flex items-center gap-5 group cursor-pointer"> <!-- Checkbox UI --> <div class="h-6 w-6 rounded-lg border-2 transition-all flex items-center justify-center" :class="task.completed ? 'bg-indigo-600 border-indigo-600 shadow-lg shadow-indigo-100' : 'bg-white border-slate-100 group-hover:border-indigo-300'" > <svg x-show="task.completed" class="h-3 w-3 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="4"> <path stroke-linecap="round" stroke-linejoin="round" d="M5 13l4 4L19 7" /> </svg> </div> <!-- Label --> <span class="text-sm font-medium transition-all" :class="task.completed ? 'text-slate-400 line-through' : 'text-slate-700'" x-text="task.title" ></span> </li> </template> </ul> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>