Form by Yaya12085
#e8e8e8
HTML +TailwindCSS
1<div class="w-80 rounded-2xl bg-white"> 2 <div class="flex flex-col gap-2 p-8"> 3 <input placeholder="Email" class="w-full rounded-lg border border-gray-300 bg-white px-4 py-3 focus:outline-none focus:ring-2 focus:ring-gray-700 focus:ring-offset-2 focus:ring-offset-gray-100"> 4 <label class="flex cursor-pointer items-center justify-between p-1"> 5 Accept terms of use 6 <div class="relative inline-block"> 7 <input type="checkbox" class="peer h-6 w-12 cursor-pointer appearance-none rounded-full border border-gray-300 bg-white checked:border-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-900 focus-visible:ring-offset-2"> 8 <span class="pointer-events-none absolute left-1 top-1 block h-4 w-4 rounded-full bg-gray-400 transition-all duration-200 peer-checked:left-7 peer-checked:bg-gray-900"></span> 9 </div> 10 </label> 11 <label class="flex cursor-pointer items-center justify-between p-1"> 12 Submit to newsletter 13 <div class="relative inline-block"> 14 <input type="checkbox" class="peer h-6 w-12 cursor-pointer appearance-none rounded-full border border-gray-300 bg-white checked:border-gray-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-900 focus-visible:ring-offset-2"> 15 <span class="pointer-events-none absolute left-1 top-1 block h-4 w-4 rounded-full bg-gray-400 transition-all duration-200 peer-checked:left-7 peer-checked:bg-gray-900"></span> 16 </div> 17 </label> 18 <button class="inline-block cursor-pointer rounded-md bg-gray-700 px-4 py-3.5 text-center text-sm font-semibold uppercase text-white transition duration-200 ease-in-out hover:bg-gray-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-700 focus-visible:ring-offset-2 active:scale-95">Save</button> 19 </div> 20</div>
315 views
315 views
Comments
Variations
1 MIT License