1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="UTF-8 " />
7
7
< link rel ="stylesheet " href ="/dist/tailwind.css " />
8
8
</ head >
9
9
< body >
10
- < div class ="antialiased text-gray-900 px-6 ">
11
- < div class ="max-w-xl mx-auto py-12 divide-y md:max-w-4xl ">
10
+ < div class ="px-6 text-gray-900 antialiased ">
11
+ < div class ="mx-auto max-w-xl divide-y py-12 md:max-w-4xl ">
12
12
< div class ="py-8 ">
13
13
< h1 class ="text-4xl font-bold "> @tailwindcss/forms examples</ h1 >
14
14
< p class ="mt-2 text-lg text-gray-600 ">
@@ -41,7 +41,7 @@ <h2 class="text-2xl font-bold">Unstyled</h2>
41
41
</ label >
42
42
< label class ="block ">
43
43
< span class ="text-gray-700 "> What type of event is it?</ span >
44
- < select class ="block w-full mt-1 ">
44
+ < select class ="mt-1 block w-full ">
45
45
< option > Corporate event</ option >
46
46
< option > Wedding</ option >
47
47
< option > Birthday</ option >
@@ -95,7 +95,7 @@ <h2 class="text-2xl font-bold">Simple</h2>
95
95
< label class ="block ">
96
96
< span class ="text-gray-700 "> What type of event is it?</ span >
97
97
< select
98
- 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 "
98
+ 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 "
99
99
>
100
100
< option > Corporate event</ option >
101
101
< option > Wedding</ option >
@@ -116,7 +116,7 @@ <h2 class="text-2xl font-bold">Simple</h2>
116
116
< label class ="inline-flex items-center ">
117
117
< input
118
118
type ="checkbox "
119
- 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 "
119
+ class ="rounded border-gray-300 text-indigo-600 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 focus:ring-offset-0 "
120
120
checked
121
121
/>
122
122
< span class ="ml-2 "> Email me news and special offers</ span >
@@ -135,29 +135,29 @@ <h2 class="text-2xl font-bold">Underline</h2>
135
135
< span class ="text-gray-700 "> Full name</ span >
136
136
< input
137
137
type ="text "
138
- class ="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black "
138
+ class ="mt-0 block w-full border-0 border-b-2 border-gray-200 px-0.5 focus:border-black focus:ring-0 "
139
139
placeholder =""
140
140
/>
141
141
</ label >
142
142
< label class ="block ">
143
143
< span class ="text-gray-700 "> Email address</ span >
144
144
< input
145
145
type ="email "
146
- class ="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black "
146
+ class ="mt-0 block w-full border-0 border-b-2 border-gray-200 px-0.5 focus:border-black focus:ring-0 "
147
147
148
148
/>
149
149
</ label >
150
150
< label class ="block ">
151
151
< span class ="text-gray-700 "> When is your event?</ span >
152
152
< input
153
153
type ="date "
154
- class ="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black "
154
+ class ="mt-0 block w-full border-0 border-b-2 border-gray-200 px-0.5 focus:border-black focus:ring-0 "
155
155
/>
156
156
</ label >
157
157
< label class ="block ">
158
158
< span class ="text-gray-700 "> What type of event is it?</ span >
159
159
< select
160
- class ="block w-full mt-0 pl-0.5 pr-7 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black "
160
+ class ="mt-0 block w-full border-0 border-b-2 border-gray-200 pl-0.5 pr-7 focus:border-black focus:ring-0 "
161
161
>
162
162
< option > Corporate event</ option >
163
163
< option > Wedding</ option >
@@ -168,7 +168,7 @@ <h2 class="text-2xl font-bold">Underline</h2>
168
168
< label class ="block ">
169
169
< span class ="text-gray-700 "> Additional details</ span >
170
170
< textarea
171
- class ="mt-0 block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black "
171
+ class ="mt-0 block w-full border-0 border-b-2 border-gray-200 px-0.5 focus:border-black focus:ring-0 "
172
172
rows ="2 "
173
173
> </ textarea >
174
174
</ label >
@@ -178,7 +178,7 @@ <h2 class="text-2xl font-bold">Underline</h2>
178
178
< label class ="inline-flex items-center ">
179
179
< input
180
180
type ="checkbox "
181
- class ="border-gray-300 border-2 text-black focus:border-gray-300 focus:ring-black "
181
+ class ="border-2 border-gray-300 text-black focus:border-gray-300 focus:ring-black "
182
182
/>
183
183
< span class ="ml-2 "> Email me news and special offers</ span >
184
184
</ label >
@@ -196,29 +196,29 @@ <h2 class="text-2xl font-bold">Solid</h2>
196
196
< span class ="text-gray-700 "> Full name</ span >
197
197
< input
198
198
type ="text "
199
- class ="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 "
199
+ class ="mt-1 block w-full rounded-md border-transparent bg-gray-100 focus:border-gray-500 focus:bg-white focus:ring-0 "
200
200
placeholder =""
201
201
/>
202
202
</ label >
203
203
< label class ="block ">
204
204
< span class ="text-gray-700 "> Email address</ span >
205
205
< input
206
206
type ="email "
207
- class ="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 "
207
+ class ="mt-1 block w-full rounded-md border-transparent bg-gray-100 focus:border-gray-500 focus:bg-white focus:ring-0 "
208
208
209
209
/>
210
210
</ label >
211
211
< label class ="block ">
212
212
< span class ="text-gray-700 "> When is your event?</ span >
213
213
< input
214
214
type ="date "
215
- class ="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 "
215
+ class ="mt-1 block w-full rounded-md border-transparent bg-gray-100 focus:border-gray-500 focus:bg-white focus:ring-0 "
216
216
/>
217
217
</ label >
218
218
< label class ="block ">
219
219
< span class ="text-gray-700 "> What type of event is it?</ span >
220
220
< select
221
- class ="block w-full mt-1 rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 "
221
+ class ="mt-1 block w-full rounded-md border-transparent bg-gray-100 focus:border-gray-500 focus:bg-white focus:ring-0 "
222
222
>
223
223
< option > Corporate event</ option >
224
224
< option > Wedding</ option >
@@ -229,7 +229,7 @@ <h2 class="text-2xl font-bold">Solid</h2>
229
229
< label class ="block ">
230
230
< span class ="text-gray-700 "> Additional details</ span >
231
231
< textarea
232
- class ="mt-1 block w-full rounded-md bg-gray-100 border-transparent focus:border-gray-500 focus:bg-white focus:ring-0 "
232
+ class ="mt-1 block w-full rounded-md border-transparent bg-gray-100 focus:border-gray-500 focus:bg-white focus:ring-0 "
233
233
rows ="3 "
234
234
> </ textarea >
235
235
</ label >
@@ -239,7 +239,7 @@ <h2 class="text-2xl font-bold">Solid</h2>
239
239
< label class ="inline-flex items-center ">
240
240
< input
241
241
type ="checkbox "
242
- 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 "
242
+ class ="rounded border-transparent bg-gray-200 text-gray-700 focus:border-transparent focus:bg-gray-200 focus:ring-1 focus:ring-gray-500 focus:ring-offset-2 "
243
243
/>
244
244
< span class ="ml-2 "> Email me news and special offers</ span >
245
245
</ label >
0 commit comments