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 Color Picker UI</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="{ color: '#6366f1' }"> <div class="w-full max-w-sm bg-white p-10 rounded-[3rem] shadow-xl border border-white"> <label class="block text-[10px] font-black text-slate-400 uppercase tracking-[0.3em] mb-8 text-center leading-relaxed">System Visual Frequency</label> <div class="flex flex-col items-center gap-10"> <!-- Representative Color Display --> <div class="h-32 w-32 rounded-[2.5rem] shadow-2xl transition-all duration-500 scale-110 border-8 border-slate-50 relative group overflow-hidden" :style="'background-color: ' + color" > <div class="absolute inset-0 bg-white opacity-0 group-hover:opacity-10 transition-opacity"></div> </div> <div class="w-full space-y-4"> <div class="relative h-14 w-full"> <input type="color" x-model="color" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer p-0 m-0 border-none" > <div class="w-full h-14 bg-slate-50 rounded-2xl border-2 border-slate-100 flex items-center justify-between px-6 font-black text-xs uppercase tracking-widest text-slate-900 shadow-sm pointer-events-none group-focus-within:border-indigo-600 transition-all"> <span x-text="color"></span> <div class="h-6 w-6 rounded-lg ring-2 ring-white shadow-sm" :style="'background-color: ' + color"></div> </div> </div> <p class="text-[10px] font-black text-slate-300 uppercase tracking-[0.2em] text-center italic">Calibrating UI Spectrum...</p> </div> </div> </div> <script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.x.x/dist/cdn.min.js"></script> </body> </html>