45
45
< link rel ="stylesheet " href ="./src/style.css " />
46
46
47
47
<!-- favicon -->
48
- < link rel ="shortcut icon " href ="./assets/Favicon.png " type ="image/x-icon ">
48
+ < link rel ="shortcut icon " href ="./assets/Favicon.png " type ="image/x-icon " / >
49
49
50
50
<!-- Font -->
51
51
< link rel ="preconnect " href ="https://fonts.googleapis.com " />
55
55
rel ="stylesheet "
56
56
/>
57
57
58
+ <!-- Color Picker CSS -->
59
+ < link
60
+ rel ="stylesheet "
61
+ href ="https://cdn.jsdelivr.net/gh/mdbassit/Coloris@latest/dist/coloris.min.css "
62
+ />
63
+
58
64
<!-- Scripts -->
65
+ <!-- Color Picker JS -->
66
+ < script src ="https://cdn.jsdelivr.net/gh/mdbassit/Coloris@latest/dist/coloris.min.js "> </ script >
67
+ <!-- Icon Js -->
59
68
< script src ="https://code.iconify.design/iconify-icon/1.0.0/iconify-icon.min.js "> </ script >
60
69
< script type ="module " src ="./src/main.ts " defer > </ script >
61
70
@@ -157,24 +166,14 @@ <h1 id="head">Code Magic</h1>
157
166
158
167
< div class ="colors ">
159
168
< label for ="color " class ="color ">
160
- < input
161
- type ="color "
162
- value ="#000 "
163
- id ="gradient-text-color1 "
164
- class ="gradient-text-inputs "
165
- />
169
+ < input type ="text " data-coloris id ="gradient-text-color1 " />
166
170
< span > First Color</ span >
167
171
</ label >
168
172
169
173
< div class ="preview " id ="gradient-text-color-preview "> </ div >
170
174
171
175
< label for ="color " class ="color ">
172
- < input
173
- type ="color "
174
- value ="#000 "
175
- id ="gradient-text-color2 "
176
- class ="gradient-text-inputs "
177
- />
176
+ < input type ="text " data-coloris id ="gradient-text-color2 " />
178
177
< span > Second Color</ span >
179
178
</ label >
180
179
</ div >
@@ -199,24 +198,14 @@ <h1 id="head">Code Magic</h1>
199
198
< div data-content ="gradient-border ">
200
199
< div class ="colors ">
201
200
< label for ="color " class ="color ">
202
- < input
203
- type ="color "
204
- value ="#000 "
205
- id ="gradient-border-color1 "
206
- class ="gradient-border-inputs "
207
- />
201
+ < input type ="text " data-coloris id ="gradient-border-color1 " />
208
202
< span > First Color</ span >
209
203
</ label >
210
204
211
205
< div class ="preview " id ="gradient-border-color-preview "> </ div >
212
206
213
207
< label for ="color " class ="color ">
214
- < input
215
- type ="color "
216
- value ="#000 "
217
- id ="gradient-border-color2 "
218
- class ="gradient-border-inputs "
219
- />
208
+ < input type ="text " data-coloris id ="gradient-border-color2 " />
220
209
< span > Second Color</ span >
221
210
</ label >
222
211
</ div >
@@ -257,24 +246,14 @@ <h1 id="head">Code Magic</h1>
257
246
< div data-content ="gradient-background ">
258
247
< div class ="colors ">
259
248
< label for ="color " class ="color ">
260
- < input
261
- type ="color "
262
- value ="#000 "
263
- id ="gradient-background-color1 "
264
- class ="gradient-background-inputs "
265
- />
249
+ < input type ="text " data-coloris id ="gradient-background-color1 " />
266
250
< span > First Color</ span >
267
251
</ label >
268
252
269
253
< div class ="preview " id ="gradient-background-color-preview "> </ div >
270
254
271
255
< label for ="color " class ="color ">
272
- < input
273
- type ="color "
274
- value ="#000 "
275
- id ="gradient-background-color2 "
276
- class ="gradient-background-inputs "
277
- />
256
+ < input type ="text " data-coloris id ="gradient-background-color2 " />
278
257
< span > Second Color</ span >
279
258
</ label >
280
259
</ div >
0 commit comments