-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1ce9877
commit d0e89d4
Showing
3 changed files
with
273 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,226 @@ | ||
export function App() { | ||
return ( | ||
<div className="m-3 p-3 border"> | ||
<h1 className="text-blue-500">Hello World</h1> | ||
<div className="-inset-x-full -inset-y-full -space-x-full -space-y-full -inset-full"></div> | ||
<div className="px-6 antialiased"> | ||
<div className="mx-auto max-w-xl py-12 md:max-w-4xl"> | ||
<h2 className="text-2xl font-bold">Reset styles</h2> | ||
<p className="mt-2 text-lg">These are form elements this plugin styles by default.</p> | ||
<div className="mt-8 grid grid-cols-1 items-start gap-6 md:grid-cols-2"> | ||
<div className="grid grid-cols-1 gap-6"> | ||
<label className="block"> | ||
<span className="">Input (text)</span> | ||
<input | ||
type="text" | ||
className="form-input mt-1 block w-full" | ||
placeholder="john@example.com" | ||
/> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (email)</span> | ||
<input | ||
type="email" | ||
className="form-input mt-1 block w-full" | ||
placeholder="john@example.com" | ||
/> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (email, multiple)</span> | ||
<input | ||
type="email" | ||
multiple="" | ||
className="form-input mt-1 block w-full" | ||
placeholder="john@example.com" | ||
/> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (password)</span> | ||
<input | ||
type="password" | ||
className="form-input mt-1 block w-full" | ||
placeholder="john@example.com" | ||
/> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (date)</span> | ||
<input type="date" className="form-input mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (datetime-local)</span> | ||
<input type="datetime-local" className="form-input mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (month)</span> | ||
<input type="month" className="form-input mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (number)</span> | ||
<input type="number" className="form-input mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (search)</span> | ||
<input type="search" className="form-input mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (time)</span> | ||
<input type="time" className="form-input mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (week)</span> | ||
<input type="week" className="form-input mt-1 block w-full" /> | ||
</label> | ||
|
||
<label className="block"> | ||
<span className="">Button</span> | ||
<div className="mt-1"> | ||
<button className="rounded">Submit</button> | ||
</div> | ||
</label> | ||
</div> | ||
<div className="grid grid-cols-1 gap-6"> | ||
<label className="block"> | ||
<span className="">Input (tel)</span> | ||
<input | ||
type="tel" | ||
multiple="" | ||
className="form-input mt-1 block w-full" | ||
placeholder="john@example.com" | ||
/> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (url)</span> | ||
<input | ||
type="url" | ||
multiple="" | ||
className="form-input mt-1 block w-full" | ||
placeholder="john@example.com" | ||
/> | ||
</label> | ||
<label className="block"> | ||
<span className="">Select</span> | ||
<select className="form-select appearance-none_ mt-1 block w-full"> | ||
<option>Option 1</option> | ||
<option>Option 2</option> | ||
</select> | ||
</label> | ||
<label className="block"> | ||
<span className="">Select (single, with size)</span> | ||
<select className="form-select mt-1 block w-full" size="3"> | ||
<option>Option 1</option> | ||
<option>Option 2</option> | ||
<option>Option 3</option> | ||
<option>Option 4</option> | ||
<option>Option 5</option> | ||
</select> | ||
</label> | ||
<label className="block"> | ||
<span className="">Select (multiple)</span> | ||
<select className="form-multiselect mt-1 block w-full" multiple=""> | ||
<option>Option 1</option> | ||
<option>Option 2</option> | ||
<option>Option 3</option> | ||
<option>Option 4</option> | ||
<option>Option 5</option> | ||
</select> | ||
</label> | ||
<label className="block"> | ||
<span className="">Select (multiple, with size)</span> | ||
<select className="form-multiselect mt-1 block w-full" multiple="" size="3"> | ||
<option>Option 1</option> | ||
<option>Option 2</option> | ||
<option>Option 3</option> | ||
<option>Option 4</option> | ||
<option>Option 5</option> | ||
</select> | ||
</label> | ||
<label className="block"> | ||
<span className="">Textarea</span> | ||
<textarea | ||
className="form-textarea mt-1 block h-24 w-full" | ||
rows="3" | ||
placeholder="Enter some long form content." | ||
></textarea> | ||
</label> | ||
<fieldset className="block"> | ||
<legend className="">Checkboxes</legend> | ||
<div className="mt-2"> | ||
<div> | ||
<label className="inline-flex items-center"> | ||
<input className="form-checkbox" type="checkbox" checked="" /> | ||
<span className="ml-2">Option 1</span> | ||
</label> | ||
</div> | ||
<div> | ||
<label className="inline-flex items-center"> | ||
<input className="form-checkbox" type="checkbox" /> | ||
<span className="ml-2">Option 2</span> | ||
</label> | ||
</div> | ||
<div> | ||
<label className="inline-flex items-center"> | ||
<input className="form-checkbox" type="checkbox" /> | ||
<span className="ml-2">Option 3</span> | ||
</label> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<fieldset className="block"> | ||
<legend className="">Radio Buttons</legend> | ||
<div className="mt-2"> | ||
<div> | ||
<label className="inline-flex items-center"> | ||
<input | ||
className="form-radio" | ||
type="radio" | ||
checked="" | ||
name="radio-direct" | ||
value="1" | ||
/> | ||
<span className="ml-2">Option 1</span> | ||
</label> | ||
</div> | ||
<div> | ||
<label className="inline-flex items-center"> | ||
<input className="form-radio" type="radio" name="radio-direct" value="2" /> | ||
<span className="ml-2">Option 2</span> | ||
</label> | ||
</div> | ||
<div> | ||
<label className="inline-flex items-center"> | ||
<input className="form-radio" type="radio" name="radio-direct" value="3" /> | ||
<span className="ml-2">Option 3</span> | ||
</label> | ||
</div> | ||
</div> | ||
</fieldset> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="mx-auto max-w-4xl py-12"> | ||
<h2 className="text-2xl font-bold">Untouched</h2> | ||
<p className="mt-2 text-lg"> | ||
These are form elements we don't handle (yet?), but we use this to make sure we haven't | ||
accidentally styled them by mistake. | ||
</p> | ||
<div className="mt-8 grid grid-cols-2 items-start gap-6"> | ||
<div className="grid grid-cols-1 gap-6"> | ||
<label className="block"> | ||
<span className="">Input (range)</span> | ||
<input type="range" className="mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (color)</span> | ||
<input type="color" className="mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (file)</span> | ||
<input type="file" className="mt-1 block w-full" /> | ||
</label> | ||
<label className="block"> | ||
<span className="">Input (file, multiple)</span> | ||
<input type="file" multiple="" className="mt-1 block w-full" /> | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
@import 'tailwindcss'; | ||
|