123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>@tailwindcss/forms examples</title>
- <link rel="stylesheet" href="/dist/tailwind.css" />
- </head>
- <body>
- <div class="antialiased text-gray-900 px-6">
- <div class="max-w-xl mx-auto py-12 divide-y md:max-w-4xl">
- <div class="py-8">
- <h1 class="text-4xl font-bold">@tailwindcss/forms examples</h1>
- <p class="mt-2 text-lg text-gray-600">
- An opinionated form reset designed to make form elements easy to style with utility
- classes.
- </p>
- <div class="mt-4 flex space-x-4">
- <a class="text-lg underline" href="https://github.com/tailwindlabs/tailwindcss-forms"
- >Documentation</a
- >
- <a class="text-lg underline" href="/kitchen-sink.html">Kitchen Sink</a>
- </div>
- </div>
- <div class="py-12">
- <h2 class="text-2xl font-bold">Unstyled</h2>
- <p class="mt-2 text-lg text-gray-600">This is how form elements look out of the box.</p>
- <div class="mt-8 max-w-md">
- <div class="grid grid-cols-1 gap-6">
- <label class="block">
- <span class="text-gray-700">Full name</span>
- <input type="text" class="mt-1 block w-full" placeholder="" />
- </label>
- <label class="block">
- <span class="text-gray-700">Email address</span>
- <input type="email" class="mt-1 block w-full" placeholder="john@example.com" />
- </label>
- <label class="block">
- <span class="text-gray-700">When is your event?</span>
- <input type="date" class="mt-1 block w-full" />
- </label>
- <label class="block">
- <span class="text-gray-700">What type of event is it?</span>
- <select class="block w-full mt-1">
- <option>Corporate event</option>
- <option>Wedding</option>
- <option>Birthday</option>
- <option>Other</option>
- </select>
- </label>
- <label class="block">
- <span class="text-gray-700">Additional details</span>
- <textarea class="mt-1 block w-full" rows="3"></textarea>
- </label>
- <div class="block">
- <div class="mt-2">
- <div>
- <label class="inline-flex items-center">
- <input type="checkbox" checked />
- <span class="ml-2">Email me news and special offers</span>
- </label>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="py-12">
- <h2 class="text-2xl font-bold">Simple</h2>
- <div class="mt-8 max-w-md">
- <div class="grid grid-cols-1 gap-6">
- <label class="block">
- <span class="text-gray-700">Full name</span>
- <input
- type="text"
- class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
- placeholder=""
- />
- </label>
- <label class="block">
- <span class="text-gray-700">Email address</span>
- <input
- type="email"
- class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
- placeholder="john@example.com"
- />
- </label>
- <label class="block">
- <span class="text-gray-700">When is your event?</span>
- <input
- type="date"
- class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
- />
- </label>
- <label class="block">
- <span class="text-gray-700">What type of event is it?</span>
- <select
- class="block w-full mt-1 rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
- >
- <option>Corporate event</option>
- <option>Wedding</option>
- <option>Birthday</option>
- <option>Other</option>
- </select>
- </label>
- <label class="block">
- <span class="text-gray-700">Additional details</span>
- <textarea
- class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
- rows="3"
- ></textarea>
- </label>
- <div class="block">
- <div class="mt-2">
- <div>
- <label class="inline-flex items-center">
- <input
- type="checkbox"
- class="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-offset-0 focus:ring-indigo-200 focus:ring-opacity-50"
- checked
- />
- <span class="ml-2">Email me news and special offers</span>
- </label>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="py-12">
- <h2 class="text-2xl font-bold">Underline</h2>
- <div class="mt-8 max-w-md">
- <div class="grid grid-cols-1 gap-6">
- <label class="block">
- <span class="text-gray-700">Full name</span>
- <input
- type="text"
- class="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black"
- placeholder=""
- />
- </label>
- <label class="block">
- <span class="text-gray-700">Email address</span>
- <input
- type="email"
- class="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black"
- placeholder="john@example.com"
- />
- </label>
- <label class="block">
- <span class="text-gray-700">When is your event?</span>
- <input
- type="date"
- class="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black"
- />
- </label>
- <label class="block">
- <span class="text-gray-700">What type of event is it?</span>
- <select
- class="block w-full mt-0 px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black"
- >
- <option>Corporate event</option>
- <option>Wedding</option>
- <option>Birthday</option>
- <option>Other</option>
- </select>
- </label>
- <label class="block">
- <span class="text-gray-700">Additional details</span>
- <textarea
- class="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black"
- rows="2"
- ></textarea>
- </label>
- <div class="block">
- <div class="mt-2">
- <div>
- <label class="inline-flex items-center">
- <input
- type="checkbox"
- class="border-gray-300 border-2 text-black focus:border-gray-300 focus:ring-black"
- />
- <span class="ml-2">Email me news and special offers</span>
- </label>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="py-12">
- <h2 class="text-2xl font-bold">Solid</h2>
- <div class="mt-8 max-w-md">
- <div class="grid grid-cols-1 gap-6">
- <label class="block">
- <span class="text-gray-700">Full name</span>
- <input
- type="text"
- class="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0"
- placeholder=""
- />
- </label>
- <label class="block">
- <span class="text-gray-700">Email address</span>
- <input
- type="email"
- class="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0"
- placeholder="john@example.com"
- />
- </label>
- <label class="block">
- <span class="text-gray-700">When is your event?</span>
- <input
- type="date"
- class="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0"
- />
- </label>
- <label class="block">
- <span class="text-gray-700">What type of event is it?</span>
- <select
- class="block w-full mt-1 rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0"
- >
- <option>Corporate event</option>
- <option>Wedding</option>
- <option>Birthday</option>
- <option>Other</option>
- </select>
- </label>
- <label class="block">
- <span class="text-gray-700">Additional details</span>
- <textarea
- class="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0"
- rows="3"
- ></textarea>
- </label>
- <div class="block">
- <div class="mt-2">
- <div>
- <label class="inline-flex items-center">
- <input
- type="checkbox"
- class="rounded bg-gray-200 border-transparent focus:border-transparent focus:bg-gray-200 text-gray-700 focus:ring-1 focus:ring-offset-2 focus:ring-gray-500"
- />
- <span class="ml-2">Email me news and special offers</span>
- </label>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|