@@ -20,73 +20,95 @@ <h2 class="text-2xl font-bold">Reset styles</h2>
20
20
< div class ="grid grid-cols-1 gap-6 ">
21
21
< label class ="block ">
22
22
< span class ="text-gray-700 "> Input (text)</ span >
23
- < input type ="text " class ="mt-1 block w-full " placeholder ="john@example.com " />
23
+ < input
24
+ type ="text "
25
+ class ="form-input mt-1 block w-full "
26
+ placeholder ="john@example.com "
27
+ />
24
28
</ label >
25
29
< label class ="block ">
26
30
< span class ="text-gray-700 "> Input (email)</ span >
27
- < input type ="email " class ="mt-1 block w-full " placeholder ="john@example.com " />
31
+ < input
32
+ type ="email "
33
+ class ="form-input mt-1 block w-full "
34
+ placeholder ="john@example.com "
35
+ />
28
36
</ label >
29
37
< label class ="block ">
30
38
< span class ="text-gray-700 "> Input (email, multiple)</ span >
31
39
< input
32
40
type ="email "
33
41
multiple
34
- class ="mt-1 block w-full "
42
+ class ="form-input mt-1 block w-full "
35
43
placeholder ="john@example.com "
36
44
/>
37
45
</ label >
38
46
< label class ="block ">
39
47
< span class ="text-gray-700 "> Input (password)</ span >
40
- < input type ="password " class ="mt-1 block w-full " placeholder ="john@example.com " />
48
+ < input
49
+ type ="password "
50
+ class ="form-input mt-1 block w-full "
51
+ placeholder ="john@example.com "
52
+ />
41
53
</ label >
42
54
< label class ="block ">
43
55
< span class ="text-gray-700 "> Input (date)</ span >
44
- < input type ="date " class ="mt-1 block w-full " />
56
+ < input type ="date " class ="form-input mt-1 block w-full " />
45
57
</ label >
46
58
< label class ="block ">
47
59
< span class ="text-gray-700 "> Input (datetime-local)</ span >
48
- < input type ="datetime-local " class ="mt-1 block w-full " />
60
+ < input type ="datetime-local " class ="form-input mt-1 block w-full " />
49
61
</ label >
50
62
< label class ="block ">
51
63
< span class ="text-gray-700 "> Input (month)</ span >
52
- < input type ="month " class ="mt-1 block w-full " />
64
+ < input type ="month " class ="form-input mt-1 block w-full " />
53
65
</ label >
54
66
< label class ="block ">
55
67
< span class ="text-gray-700 "> Input (number)</ span >
56
- < input type ="number " class ="mt-1 block w-full " />
68
+ < input type ="number " class ="form-input mt-1 block w-full " />
57
69
</ label >
58
70
< label class ="block ">
59
71
< span class ="text-gray-700 "> Input (search)</ span >
60
- < input type ="search " class ="mt-1 block w-full " />
72
+ < input type ="search " class ="form-input mt-1 block w-full " />
61
73
</ label >
62
74
< label class ="block ">
63
75
< span class ="text-gray-700 "> Input (time)</ span >
64
- < input type ="time " class ="mt-1 block w-full " />
76
+ < input type ="time " class ="form-input mt-1 block w-full " />
65
77
</ label >
66
78
< label class ="block ">
67
79
< span class ="text-gray-700 "> Input (week)</ span >
68
- < input type ="week " class ="mt-1 block w-full " />
80
+ < input type ="week " class ="form-input mt-1 block w-full " />
69
81
</ label >
70
82
</ div >
71
83
< div class ="grid grid-cols-1 gap-6 ">
72
84
< label class ="block ">
73
85
< span class ="text-gray-700 "> Input (tel)</ span >
74
- < input type ="tel " multiple class ="mt-1 block w-full " placeholder ="john@example.com " />
86
+ < input
87
+ type ="tel "
88
+ multiple
89
+ class ="form-input mt-1 block w-full "
90
+ placeholder ="john@example.com "
91
+ />
75
92
</ label >
76
93
< label class ="block ">
77
94
< span class ="text-gray-700 "> Input (url)</ span >
78
- < input type ="url " multiple class ="mt-1 block w-full " placeholder ="john@example.com " />
95
+ < input
96
+ type ="url "
97
+ multiple
98
+ class ="form-input mt-1 block w-full "
99
+ placeholder ="john@example.com "
100
+ />
79
101
</ label >
80
102
< label class ="block ">
81
103
< span class ="text-gray-700 "> Select</ span >
82
- < select class ="block w-full mt-1 ">
104
+ < select class ="form-select block w-full mt-1 ">
83
105
< option > Option 1</ option >
84
106
< option > Option 2</ option >
85
107
</ select >
86
108
</ label >
87
109
< label class ="block ">
88
110
< span class ="text-gray-700 "> Select (multiple)</ span >
89
- < select class ="block w-full mt-1 " multiple ="">
111
+ < select class ="form-multiselect block w-full mt-1 " multiple ="">
90
112
< option > Option 1</ option >
91
113
< option > Option 2</ option >
92
114
< option > Option 3</ option >
@@ -97,7 +119,7 @@ <h2 class="text-2xl font-bold">Reset styles</h2>
97
119
< label class ="block ">
98
120
< span class ="text-gray-700 "> Textarea</ span >
99
121
< textarea
100
- class ="mt-1 block w-full h-24 "
122
+ class ="form-textarea mt-1 block w-full h-24 "
101
123
rows ="3 "
102
124
placeholder ="Enter some long form content. "
103
125
> </ textarea >
@@ -107,19 +129,19 @@ <h2 class="text-2xl font-bold">Reset styles</h2>
107
129
< div class ="mt-2 ">
108
130
< div >
109
131
< label class ="inline-flex items-center ">
110
- < input type ="checkbox " checked />
132
+ < input class =" form-checkbox " type ="checkbox " checked />
111
133
< span class ="ml-2 "> Option 1</ span >
112
134
</ label >
113
135
</ div >
114
136
< div >
115
137
< label class ="inline-flex items-center ">
116
- < input type ="checkbox " />
138
+ < input class =" form-checkbox " type ="checkbox " />
117
139
< span class ="ml-2 "> Option 2</ span >
118
140
</ label >
119
141
</ div >
120
142
< div >
121
143
< label class ="inline-flex items-center ">
122
- < input type ="checkbox " />
144
+ < input class =" form-checkbox " type ="checkbox " />
123
145
< span class ="ml-2 "> Option 3</ span >
124
146
</ label >
125
147
</ div >
@@ -130,19 +152,19 @@ <h2 class="text-2xl font-bold">Reset styles</h2>
130
152
< div class ="mt-2 ">
131
153
< div >
132
154
< label class ="inline-flex items-center ">
133
- < input type ="radio " checked name ="radio-direct " value ="1 " />
155
+ < input class =" form-radio " type ="radio " checked name ="radio-direct " value ="1 " />
134
156
< span class ="ml-2 "> Option 1</ span >
135
157
</ label >
136
158
</ div >
137
159
< div >
138
160
< label class ="inline-flex items-center ">
139
- < input type ="radio " name ="radio-direct " value ="2 " />
161
+ < input class =" form-radio " type ="radio " name ="radio-direct " value ="2 " />
140
162
< span class ="ml-2 "> Option 2</ span >
141
163
</ label >
142
164
</ div >
143
165
< div >
144
166
< label class ="inline-flex items-center ">
145
- < input type ="radio " name ="radio-direct " value ="3 " />
167
+ < input class =" form-radio " type ="radio " name ="radio-direct " value ="3 " />
146
168
< span class ="ml-2 "> Option 3</ span >
147
169
</ label >
148
170
</ div >
0 commit comments