@auriel/peppertino 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.txt +242 -136
- package/LICENSE +21 -21
- package/MIGRATION.md +52 -0
- package/README.md +773 -622
- package/agents/peppertino/SKILL.md +76 -0
- package/agents/peppertino/accordion.md +134 -0
- package/agents/peppertino/alert.md +116 -0
- package/agents/peppertino/badge.md +74 -0
- package/agents/peppertino/base.md +252 -0
- package/agents/peppertino/button.md +65 -0
- package/agents/peppertino/card.md +82 -0
- package/agents/peppertino/carousel.md +147 -0
- package/agents/peppertino/catalog.md +81 -0
- package/agents/peppertino/dark-mode.md +152 -0
- package/agents/peppertino/footer.md +109 -0
- package/agents/peppertino/forms-fieldset.md +85 -0
- package/agents/peppertino/forms-form-instructions.md +94 -0
- package/agents/peppertino/forms-label.md +110 -0
- package/agents/peppertino/forms-text-field.md +134 -0
- package/agents/peppertino/forms-validation.md +153 -0
- package/agents/peppertino/gradient.md +41 -0
- package/agents/peppertino/header.md +105 -0
- package/agents/peppertino/modal.md +123 -0
- package/agents/peppertino/section.md +56 -0
- package/agents/peppertino/select.md +110 -0
- package/agents/peppertino/switch.md +72 -0
- package/agents/peppertino/table.md +69 -0
- package/agents/peppertino/tabs.md +115 -0
- package/agents/peppertino/toast.md +96 -0
- package/agents/peppertino/tooltip.md +111 -0
- package/agents/peppertino/typography.md +118 -0
- package/agents/peppertino/utilities.md +194 -0
- package/agents/skill.md +65 -0
- package/build.js +53 -53
- package/dist/accordion.js +41 -4
- package/dist/accordion.js.map +2 -2
- package/dist/alert.js +26 -0
- package/dist/alert.js.map +7 -0
- package/dist/carousel.js +4 -0
- package/dist/carousel.js.map +2 -2
- package/dist/header.js +1 -0
- package/dist/header.js.map +2 -2
- package/dist/main.css +3610 -1343
- package/dist/main.css.map +1 -1
- package/dist/main.min.css +1 -0
- package/dist/modal.js +2 -0
- package/dist/modal.js.map +2 -2
- package/dist/peppertino.js +244 -15
- package/dist/peppertino.js.map +3 -3
- package/dist/select.js +2 -4
- package/dist/select.js.map +2 -2
- package/dist/switch.js +29 -0
- package/dist/switch.js.map +7 -0
- package/dist/tabs.js +27 -7
- package/dist/tabs.js.map +2 -2
- package/dist/theme.js +47 -0
- package/dist/theme.js.map +7 -0
- package/dist/toast.js +69 -0
- package/dist/toast.js.map +7 -0
- package/dist/validation.js.map +1 -1
- package/icon.svg +4 -0
- package/index.html +2172 -1902
- package/package.json +28 -26
- package/scripts/hex-to-hsl.mjs +75 -0
- package/scripts/lint-bem.mjs +53 -0
- package/scripts/lint-colors.mjs +87 -0
- package/site.webmanifest +18 -0
- package/src/js/accordion.js +105 -61
- package/src/js/alert.js +28 -0
- package/src/js/carousel.js +153 -148
- package/src/js/header.js +85 -84
- package/src/js/modal.js +138 -134
- package/src/js/peppertino.js +15 -11
- package/src/js/select.js +101 -103
- package/src/js/switch.js +28 -0
- package/src/js/tabs.js +104 -94
- package/src/js/theme.js +47 -0
- package/src/js/toast.js +79 -0
- package/src/js/validation.js +132 -132
- package/src/scss/accordion.scss +190 -156
- package/src/scss/activity.scss +17 -0
- package/src/scss/alert.scss +203 -204
- package/src/scss/badge.scss +90 -0
- package/src/scss/base.scss +511 -305
- package/src/scss/button.scss +119 -121
- package/src/scss/card.scss +121 -121
- package/src/scss/carousel.scss +303 -313
- package/src/scss/code-block.scss +22 -0
- package/src/scss/counter.scss +5 -0
- package/src/scss/dark-mode.scss +514 -474
- package/src/scss/duration.scss +26 -0
- package/src/scss/folder.scss +27 -0
- package/src/scss/footer.scss +224 -224
- package/src/scss/forms/fieldset.scss +127 -127
- package/src/scss/forms/form-instructions.scss +133 -133
- package/src/scss/forms/label.scss +115 -115
- package/src/scss/forms/text-field.scss +240 -240
- package/src/scss/forms/validation.scss +215 -215
- package/src/scss/forms.scss +8 -8
- package/src/scss/gradient.scss +11 -11
- package/src/scss/gravity-letters.scss +7 -0
- package/src/scss/header.scss +257 -238
- package/src/scss/helpers/color.scss +9 -0
- package/src/scss/helpers/flex.scss +14 -0
- package/src/scss/helpers/index.scss +6 -0
- package/src/scss/helpers/layout.scss +14 -0
- package/src/scss/helpers/spacing.scss +14 -0
- package/src/scss/helpers/typography.scss +11 -0
- package/src/scss/helpers/visibility.scss +9 -0
- package/src/scss/main.scss +49 -20
- package/src/scss/modal.scss +188 -188
- package/src/scss/model-picker.scss +5 -0
- package/src/scss/notification.scss +5 -0
- package/src/scss/orb.scss +7 -0
- package/src/scss/otp.scss +5 -0
- package/src/scss/pill-nav.scss +10 -0
- package/src/scss/prompt.scss +28 -0
- package/src/scss/rail.scss +7 -0
- package/src/scss/reactions.scss +5 -0
- package/src/scss/reset.scss +84 -84
- package/src/scss/response.scss +11 -0
- package/src/scss/reveal.scss +5 -0
- package/src/scss/scroll-progress.scss +4 -0
- package/src/scss/search-results.scss +13 -0
- package/src/scss/section.scss +87 -79
- package/src/scss/select.scss +210 -210
- package/src/scss/sidebar.scss +8 -0
- package/src/scss/status.scss +5 -0
- package/src/scss/step-list.scss +13 -0
- package/src/scss/switch.scss +121 -0
- package/src/scss/table.scss +89 -89
- package/src/scss/tabs.scss +156 -156
- package/src/scss/task-list.scss +18 -0
- package/src/scss/theme-picker.scss +5 -0
- package/src/scss/toast.scss +170 -0
- package/src/scss/tooltip.scss +126 -0
- package/src/scss/typography.scss +58 -58
- package/src/scss/utilities.scss +243 -243
- package/src/scss/voice-note.scss +5 -0
package/index.html
CHANGED
|
@@ -1,1902 +1,2172 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<
|
|
7
|
-
<link rel="
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<li class="pp-header__nav-item" role="none">
|
|
27
|
-
<a href="#
|
|
28
|
-
</li>
|
|
29
|
-
<li class="pp-header__nav-item" role="none">
|
|
30
|
-
<a href="#
|
|
31
|
-
</li>
|
|
32
|
-
<li class="pp-header__nav-item" role="none">
|
|
33
|
-
<a href="#
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<li role="none"><a href="#
|
|
39
|
-
<li role="none"><a href="#
|
|
40
|
-
<li role="none"><a href="#
|
|
41
|
-
<li role="none"><a href="#
|
|
42
|
-
<li role="none"><a href="#
|
|
43
|
-
<li role="none"><a href="#
|
|
44
|
-
<li role="none"><a href="#
|
|
45
|
-
<li role="none"><a href="#
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<li role="none"><a href="#
|
|
52
|
-
<li role="none"><a href="#
|
|
53
|
-
<li role="none"><a href="#
|
|
54
|
-
<li role="none"><a href="#
|
|
55
|
-
<li role="none"><a href="#
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
</
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
</
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
<span class="swatch" style="background:#
|
|
172
|
-
<span class="swatch" style="background:#
|
|
173
|
-
<span class="swatch" style="background:#
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<
|
|
179
|
-
|
|
180
|
-
<span class="swatch" style="background:#
|
|
181
|
-
<span class="swatch" style="background
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
<
|
|
215
|
-
|
|
216
|
-
<p class="font-sans text-
|
|
217
|
-
<p class="font-sans text-2xl">
|
|
218
|
-
<p class="font-sans text-
|
|
219
|
-
<p class="font-sans text-
|
|
220
|
-
<p class="font-sans text-
|
|
221
|
-
|
|
222
|
-
<p class="font-sans font-600 text-
|
|
223
|
-
<
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
</
|
|
237
|
-
|
|
238
|
-
<p class="font-sans
|
|
239
|
-
<p class="font-sans
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
<
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
<
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
<div class="pp-accordion__item">
|
|
285
|
-
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="
|
|
286
|
-
|
|
287
|
-
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
288
|
-
</button>
|
|
289
|
-
<div class="pp-accordion__panel" id="
|
|
290
|
-
<p class="pp-accordion__content">
|
|
291
|
-
</div>
|
|
292
|
-
</div>
|
|
293
|
-
<div class="pp-accordion__item">
|
|
294
|
-
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="
|
|
295
|
-
|
|
296
|
-
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
297
|
-
</button>
|
|
298
|
-
<div class="pp-accordion__panel" id="
|
|
299
|
-
<p class="pp-accordion__content">
|
|
300
|
-
</div>
|
|
301
|
-
</div>
|
|
302
|
-
</div>
|
|
303
|
-
|
|
304
|
-
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">
|
|
305
|
-
<div class="pp-accordion
|
|
306
|
-
<div class="pp-accordion__item">
|
|
307
|
-
<button class="pp-accordion__trigger font-sans" aria-expanded="
|
|
308
|
-
|
|
309
|
-
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
310
|
-
</button>
|
|
311
|
-
<div class="pp-accordion__panel
|
|
312
|
-
<p class="pp-accordion__content">
|
|
313
|
-
</div>
|
|
314
|
-
</div>
|
|
315
|
-
<div class="pp-accordion__item">
|
|
316
|
-
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="
|
|
317
|
-
|
|
318
|
-
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
319
|
-
</button>
|
|
320
|
-
<div class="pp-accordion__panel" id="
|
|
321
|
-
<p class="pp-accordion__content">
|
|
322
|
-
</div>
|
|
323
|
-
</div>
|
|
324
|
-
</div>
|
|
325
|
-
|
|
326
|
-
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">
|
|
327
|
-
<div class="pp-accordion pp-accordion--
|
|
328
|
-
<div class="pp-accordion__item">
|
|
329
|
-
<button class="pp-accordion__trigger font-sans" aria-expanded="
|
|
330
|
-
|
|
331
|
-
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
332
|
-
</button>
|
|
333
|
-
<div class="pp-accordion__panel" id="
|
|
334
|
-
<p class="pp-accordion__content">
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
<div class="pp-accordion__item">
|
|
338
|
-
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="
|
|
339
|
-
|
|
340
|
-
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
341
|
-
</button>
|
|
342
|
-
<div class="pp-accordion__panel" id="
|
|
343
|
-
<p class="pp-accordion__content">
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
|
|
348
|
-
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">
|
|
349
|
-
<div class="
|
|
350
|
-
<
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
<
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
<
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
<
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
<
|
|
405
|
-
<
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
</
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
<
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
<
|
|
427
|
-
|
|
428
|
-
<p class="pp-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
<
|
|
434
|
-
|
|
435
|
-
<p class="pp-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
<
|
|
441
|
-
|
|
442
|
-
<p class="pp-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
</div>
|
|
453
|
-
<div class="pp-alert pp-alert--
|
|
454
|
-
<span class="pp-alert__icon"><i data-lucide="
|
|
455
|
-
<div class="pp-alert__body"
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
<
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
<
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
<
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
<
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
</
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
<
|
|
512
|
-
<
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
<
|
|
516
|
-
<
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
<
|
|
520
|
-
<
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
<
|
|
524
|
-
<
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
</
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
<
|
|
558
|
-
<
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
</
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
<
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
</
|
|
620
|
-
<
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
</
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
</
|
|
639
|
-
<
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
</
|
|
645
|
-
<
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
<
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
</
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
</
|
|
695
|
-
<
|
|
696
|
-
<
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
<div class="pp-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
<div class="pp-
|
|
715
|
-
<
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
</
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
<
|
|
740
|
-
<
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
<
|
|
779
|
-
</
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
<button class="
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
<
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
</
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
<
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
<
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
<
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
</
|
|
903
|
-
</
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
<
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
<
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
<
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
<button class="pp-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
<
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
<
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
<
|
|
1025
|
-
<
|
|
1026
|
-
<
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
<
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
<
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
</
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
<
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
<
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
</
|
|
1105
|
-
<
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
</
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
</
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
<tr><td><
|
|
1133
|
-
<tr><td><
|
|
1134
|
-
<tr><td><
|
|
1135
|
-
<tr><td><
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
</
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
<
|
|
1150
|
-
|
|
1151
|
-
<
|
|
1152
|
-
<
|
|
1153
|
-
<
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
</
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:
|
|
1171
|
-
<div
|
|
1172
|
-
<
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
</
|
|
1187
|
-
</div>
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
<
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
<
|
|
1196
|
-
|
|
1197
|
-
</
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
<
|
|
1211
|
-
<
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
<span class="pp-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
<span class="pp-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
<
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
<
|
|
1316
|
-
|
|
1317
|
-
<
|
|
1318
|
-
<
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
<
|
|
1324
|
-
|
|
1325
|
-
<
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
<
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
<
|
|
1363
|
-
<i data-lucide="
|
|
1364
|
-
|
|
1365
|
-
</
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
<
|
|
1374
|
-
<
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
<
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
<
|
|
1402
|
-
<
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
<
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
</
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
<
|
|
1433
|
-
<
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
<
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
<
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
</
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
<
|
|
1535
|
-
<
|
|
1536
|
-
|
|
1537
|
-
</
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
<
|
|
1574
|
-
|
|
1575
|
-
<
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
<
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
<
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
<p class="font-sans font-
|
|
1603
|
-
<div class="
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
<
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
<
|
|
1632
|
-
|
|
1633
|
-
<
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
<
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
</
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
<
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
<
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
<
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
</
|
|
1680
|
-
<
|
|
1681
|
-
|
|
1682
|
-
</
|
|
1683
|
-
<
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
</
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
</
|
|
1698
|
-
<p class="font-sans font-400 text-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
<
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
<
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
<
|
|
1723
|
-
<
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
<
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
<
|
|
1734
|
-
<
|
|
1735
|
-
<
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
<
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
<
|
|
1763
|
-
</
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
<
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
</
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
<
|
|
1796
|
-
<
|
|
1797
|
-
<
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
<
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
</
|
|
1813
|
-
</div>
|
|
1814
|
-
|
|
1815
|
-
<!--
|
|
1816
|
-
<
|
|
1817
|
-
|
|
1818
|
-
<
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
<
|
|
1823
|
-
<
|
|
1824
|
-
<
|
|
1825
|
-
<
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
</
|
|
1850
|
-
|
|
1851
|
-
<div class="
|
|
1852
|
-
|
|
1853
|
-
<
|
|
1854
|
-
<
|
|
1855
|
-
<
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
<
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
</
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
6
|
+
<meta name="theme-color" content="#e90111" />
|
|
7
|
+
<link rel="manifest" href="./site.webmanifest" />
|
|
8
|
+
<link rel="icon" href="./icon.svg" type="image/svg+xml" />
|
|
9
|
+
<title>PeppertinoCSS 0.6.0 — Dev Sandbox</title>
|
|
10
|
+
<link rel="stylesheet" href="dist/main.css?v=1780286329" />
|
|
11
|
+
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.min.js"></script>
|
|
12
|
+
<script src="dist/peppertino.js" defer></script>
|
|
13
|
+
<script>document.addEventListener('DOMContentLoaded', () => lucide.createIcons());</script>
|
|
14
|
+
<style>
|
|
15
|
+
/* Sandbox-only helpers — not part of the framework */
|
|
16
|
+
.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
|
|
17
|
+
.swatch { display: inline-block; width: 2.5rem; height: 2.5rem; border-radius: 0.25rem; border: 1px solid rgba(0,0,0,.1); }
|
|
18
|
+
</style>
|
|
19
|
+
</head>
|
|
20
|
+
<body>
|
|
21
|
+
|
|
22
|
+
<header class="pp-header">
|
|
23
|
+
<a href="#hero" class="pp-header__brand font-sans font-600">PeppertinoCSS</a>
|
|
24
|
+
<nav aria-label="Main navigation">
|
|
25
|
+
<ul class="pp-header__nav" role="menubar">
|
|
26
|
+
<li class="pp-header__nav-item" role="none">
|
|
27
|
+
<a href="#installation" class="pp-header__nav-link font-sans font-400" role="menuitem">Install</a>
|
|
28
|
+
</li>
|
|
29
|
+
<li class="pp-header__nav-item" role="none">
|
|
30
|
+
<a href="#colors" class="pp-header__nav-link font-sans font-400" role="menuitem">Colors</a>
|
|
31
|
+
</li>
|
|
32
|
+
<li class="pp-header__nav-item" role="none">
|
|
33
|
+
<a href="#typography" class="pp-header__nav-link font-sans font-400" role="menuitem">Typography</a>
|
|
34
|
+
</li>
|
|
35
|
+
<li class="pp-header__nav-item" role="none">
|
|
36
|
+
<a href="#accordion" class="pp-header__nav-link font-sans font-400" role="menuitem" aria-haspopup="true" aria-expanded="false">Components</a>
|
|
37
|
+
<ul class="pp-header__dropdown pp-header__dropdown--columns" role="menu" aria-label="Components">
|
|
38
|
+
<li role="none"><a href="#accordion" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Accordion</a></li>
|
|
39
|
+
<li role="none"><a href="#alert" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Alert</a></li>
|
|
40
|
+
<li role="none"><a href="#badges" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Badge</a></li>
|
|
41
|
+
<li role="none"><a href="#buttons" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Buttons</a></li>
|
|
42
|
+
<li role="none"><a href="#cards" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Cards</a></li>
|
|
43
|
+
<li role="none"><a href="#carousel" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Carousel</a></li>
|
|
44
|
+
<li role="none"><a href="#gradient" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Gradient</a></li>
|
|
45
|
+
<li role="none"><a href="#modals" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Modals</a></li>
|
|
46
|
+
<li role="none"><a href="#selects" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Selects</a></li>
|
|
47
|
+
<li role="none"><a href="#switches" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Switch</a></li>
|
|
48
|
+
<li role="none"><a href="#tabs" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Tabs</a></li>
|
|
49
|
+
<li role="none"><a href="#tables" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Tables</a></li>
|
|
50
|
+
<li role="none"><a href="#toasts" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Toast</a></li>
|
|
51
|
+
<li role="none"><a href="#tooltips" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Tooltip</a></li>
|
|
52
|
+
<li role="none"><a href="#folder" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Folder</a></li>
|
|
53
|
+
<li role="none"><a href="#code-block" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Code block</a></li>
|
|
54
|
+
<li role="none"><a href="#counter" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Counter</a></li>
|
|
55
|
+
<li role="none"><a href="#status" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Status</a></li>
|
|
56
|
+
<li role="none"><a href="#step-list" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Step list</a></li>
|
|
57
|
+
<li role="none"><a href="#sidebars" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Sidebar</a></li>
|
|
58
|
+
<li role="none"><a href="#pill-navigation" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Pill navigation</a></li>
|
|
59
|
+
<li role="none"><a href="#search-results" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Search results</a></li>
|
|
60
|
+
</ul>
|
|
61
|
+
</li>
|
|
62
|
+
<li class="pp-header__nav-item" role="none">
|
|
63
|
+
<a href="#forms" class="pp-header__nav-link font-sans font-400" role="menuitem" aria-haspopup="true" aria-expanded="false">Forms</a>
|
|
64
|
+
<ul class="pp-header__dropdown" role="menu" aria-label="Forms">
|
|
65
|
+
<li role="none"><a href="#form-fieldset" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Fieldset</a></li>
|
|
66
|
+
<li role="none"><a href="#form-instructions" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Form Instructions</a></li>
|
|
67
|
+
<li role="none"><a href="#form-label" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Label</a></li>
|
|
68
|
+
<li role="none"><a href="#form-text-field" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Text Field</a></li>
|
|
69
|
+
<li role="none"><a href="#form-validation" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Validation</a></li>
|
|
70
|
+
<li role="none"><a href="#form-duration" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Duration</a></li>
|
|
71
|
+
<li role="none"><a href="#form-otp" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Verification code</a></li>
|
|
72
|
+
<li role="none"><a href="#form-tasks" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Task list</a></li>
|
|
73
|
+
<li role="none"><a href="#form-prompt" class="pp-header__dropdown-link font-sans font-400" role="menuitem">Prompt</a></li>
|
|
74
|
+
</ul>
|
|
75
|
+
</li>
|
|
76
|
+
<li class="pp-header__nav-item" role="none">
|
|
77
|
+
<a href="#utilities" class="pp-header__nav-link font-sans font-400" role="menuitem">Utilities</a>
|
|
78
|
+
</li>
|
|
79
|
+
<li class="pp-header__nav-item" role="none">
|
|
80
|
+
<a href="#changelog" class="pp-header__nav-link font-sans font-400" role="menuitem">Changelog</a>
|
|
81
|
+
</li>
|
|
82
|
+
<li class="pp-header__nav-item" role="none">
|
|
83
|
+
<a href="#footer" class="pp-header__nav-link font-sans font-400" role="menuitem">Footer</a>
|
|
84
|
+
</li>
|
|
85
|
+
</ul>
|
|
86
|
+
</nav>
|
|
87
|
+
<div style="display:flex;align-items:center;gap:0.5rem;flex-shrink:0;">
|
|
88
|
+
<button id="dark-toggle" aria-label="Toggle dark mode" style="display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:6px;border:none;background:none;cursor:pointer;color:inherit;transition:background 150ms ease;" title="Toggle dark mode">
|
|
89
|
+
<svg id="dark-icon-sun" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="display:none"><circle cx="12" cy="12" r="4"/><path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></svg>
|
|
90
|
+
<svg id="dark-icon-moon" xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
|
|
91
|
+
</button>
|
|
92
|
+
<button class="pp-header__toggle" aria-expanded="false" aria-label="Toggle navigation">
|
|
93
|
+
<span></span><span></span><span></span>
|
|
94
|
+
</button>
|
|
95
|
+
</div>
|
|
96
|
+
</header>
|
|
97
|
+
|
|
98
|
+
<script>
|
|
99
|
+
(function() {
|
|
100
|
+
var btn = document.getElementById('dark-toggle');
|
|
101
|
+
var sun = document.getElementById('dark-icon-sun');
|
|
102
|
+
var moon = document.getElementById('dark-icon-moon');
|
|
103
|
+
function apply(dark) {
|
|
104
|
+
document.documentElement.classList.toggle('dark', dark);
|
|
105
|
+
sun.style.display = dark ? 'block' : 'none';
|
|
106
|
+
moon.style.display = dark ? 'none' : 'block';
|
|
107
|
+
btn.style.background = dark ? 'rgba(255,255,255,0.08)' : '';
|
|
108
|
+
}
|
|
109
|
+
var stored = localStorage.getItem('pp-dark');
|
|
110
|
+
apply(stored === 'true');
|
|
111
|
+
btn.addEventListener('click', function() {
|
|
112
|
+
var isDark = document.documentElement.classList.contains('dark');
|
|
113
|
+
apply(!isDark);
|
|
114
|
+
localStorage.setItem('pp-dark', !isDark);
|
|
115
|
+
});
|
|
116
|
+
})();
|
|
117
|
+
</script>
|
|
118
|
+
|
|
119
|
+
<!-- Hero -->
|
|
120
|
+
<section id="hero" class="pp-section pp-section--gradient">
|
|
121
|
+
<div class="pp-section__inner">
|
|
122
|
+
<h1 class="font-sans font-700 tracking-tight">PeppertinoCSS</h1>
|
|
123
|
+
<p class="font-sans font-400 text-lg leading-relaxed">A modern, opinionated SCSS framework. Fast to build with, easy to extend.</p>
|
|
124
|
+
<div class="row">
|
|
125
|
+
<button class="pp-button font-sans font-400" style="background:#fff;color:#ea5753;">Get Started</button>
|
|
126
|
+
<button class="pp-button--outline font-sans font-400" style="border-color:#fff;color:#fff;">View Source</button>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</section>
|
|
130
|
+
|
|
131
|
+
<!-- Installation -->
|
|
132
|
+
<section id="installation" class="pp-section pp-section--muted">
|
|
133
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
134
|
+
<h2 class="font-sans font-700 tracking-tight">Installation</h2>
|
|
135
|
+
|
|
136
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">npm / bun</p>
|
|
137
|
+
<pre class="font-mono"><code>npm install @auriel/peppertino</code></pre>
|
|
138
|
+
|
|
139
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">CDN — single stylesheet</p>
|
|
140
|
+
<pre class="font-mono"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@auriel/peppertino@latest/dist/main.min.css" /></code></pre>
|
|
141
|
+
|
|
142
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">CDN — with JS components</p>
|
|
143
|
+
<pre class="font-mono"><code><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@auriel/peppertino@latest/dist/main.min.css" />
|
|
144
|
+
<script src="https://cdn.jsdelivr.net/npm/@auriel/peppertino@latest/dist/peppertino.js" defer></script></code></pre>
|
|
145
|
+
|
|
146
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Clone & build locally</p>
|
|
147
|
+
<pre class="font-mono"><code>git clone https://codeberg.org/debaditya/Peppertino
|
|
148
|
+
cd Peppertino
|
|
149
|
+
npm install
|
|
150
|
+
npm run dev</code></pre>
|
|
151
|
+
|
|
152
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">SCSS — import into your own build</p>
|
|
153
|
+
<pre class="font-mono"><code>@use '@auriel/peppertino/src/scss/main';</code></pre>
|
|
154
|
+
|
|
155
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;margin-top:1rem;">
|
|
156
|
+
See the full build script reference on
|
|
157
|
+
<a href="https://codeberg.org/debaditya/Peppertino" target="_blank" rel="noopener noreferrer">Codeberg</a>.
|
|
158
|
+
</p>
|
|
159
|
+
</div>
|
|
160
|
+
</section>
|
|
161
|
+
|
|
162
|
+
<!-- Colors -->
|
|
163
|
+
<section id="colors" class="pp-section">
|
|
164
|
+
<div class="pp-section__inner">
|
|
165
|
+
<h2 class="font-sans font-700 tracking-tight">Color Palette</h2>
|
|
166
|
+
<p class="u-text-muted">Muted text uses a semantic color helper.</p>
|
|
167
|
+
|
|
168
|
+
<div>
|
|
169
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Primary</p>
|
|
170
|
+
<div class="row">
|
|
171
|
+
<span class="swatch" style="background:#ff4d5a" title="primary-light"></span>
|
|
172
|
+
<span class="swatch" style="background:#e90111" title="primary"></span>
|
|
173
|
+
<span class="swatch" style="background:#a8000c" title="primary-dark"></span>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
<div>
|
|
177
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Gradient</p>
|
|
178
|
+
<div class="row">
|
|
179
|
+
<span class="swatch" style="background:#ffcf67" title="gradient-start"></span>
|
|
180
|
+
<span class="swatch" style="background:#ea5753" title="gradient-end"></span>
|
|
181
|
+
<span class="swatch" style="background:linear-gradient(135deg,#ffcf67,#ea5753)" title="gradient"></span>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
<div>
|
|
185
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Neutrals</p>
|
|
186
|
+
<div class="row">
|
|
187
|
+
<span class="swatch" style="background:#fafafa"></span>
|
|
188
|
+
<span class="swatch" style="background:#f4f4f5"></span>
|
|
189
|
+
<span class="swatch" style="background:#e4e4e7"></span>
|
|
190
|
+
<span class="swatch" style="background:#d4d4d8"></span>
|
|
191
|
+
<span class="swatch" style="background:#a1a1aa"></span>
|
|
192
|
+
<span class="swatch" style="background:#71717a"></span>
|
|
193
|
+
<span class="swatch" style="background:#52525b"></span>
|
|
194
|
+
<span class="swatch" style="background:#3f3f46"></span>
|
|
195
|
+
<span class="swatch" style="background:#27272a"></span>
|
|
196
|
+
<span class="swatch" style="background:#18181b"></span>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
<div>
|
|
200
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Semantic</p>
|
|
201
|
+
<div class="row">
|
|
202
|
+
<span class="swatch" style="background:#22c55e" title="success"></span>
|
|
203
|
+
<span class="swatch" style="background:#f59e0b" title="warning"></span>
|
|
204
|
+
<span class="swatch" style="background:#ef4444" title="error"></span>
|
|
205
|
+
<span class="swatch" style="background:#3b82f6" title="info"></span>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</section>
|
|
210
|
+
|
|
211
|
+
<!-- Typography -->
|
|
212
|
+
<section id="typography" class="pp-section">
|
|
213
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;">
|
|
214
|
+
<h2 class="font-sans font-700 tracking-tight">Typography</h2>
|
|
215
|
+
|
|
216
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;">Sans — Inter</p>
|
|
217
|
+
<p class="font-sans font-100 text-2xl">100 Thin — The quick brown fox</p>
|
|
218
|
+
<p class="font-sans font-200 text-2xl">200 ExtraLight — The quick brown fox</p>
|
|
219
|
+
<p class="font-sans font-300 text-2xl">300 Light — The quick brown fox</p>
|
|
220
|
+
<p class="font-sans font-400 text-2xl">400 Regular — The quick brown fox</p>
|
|
221
|
+
<p class="font-sans font-500 text-2xl">500 Medium — The quick brown fox</p>
|
|
222
|
+
<p class="font-sans font-600 text-2xl">600 SemiBold — The quick brown fox</p>
|
|
223
|
+
<p class="font-sans font-700 text-2xl">700 Bold — The quick brown fox</p>
|
|
224
|
+
<p class="font-sans font-800 text-2xl">800 ExtraBold — The quick brown fox</p>
|
|
225
|
+
<p class="font-sans font-900 text-2xl">900 Black — The quick brown fox</p>
|
|
226
|
+
|
|
227
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Mono — Kode Mono</p>
|
|
228
|
+
<p class="font-mono font-400 text-2xl">400 Regular — The quick brown fox</p>
|
|
229
|
+
<p class="font-mono font-500 text-2xl">500 Medium — The quick brown fox</p>
|
|
230
|
+
<p class="font-mono font-600 text-2xl">600 SemiBold — The quick brown fox</p>
|
|
231
|
+
<p class="font-mono font-700 text-2xl">700 Bold — The quick brown fox</p>
|
|
232
|
+
|
|
233
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Size scale</p>
|
|
234
|
+
<p class="font-sans text-xs">text-xs — 0.75rem</p>
|
|
235
|
+
<p class="font-sans text-sm">text-sm — 0.875rem</p>
|
|
236
|
+
<p class="font-sans text-base">text-base — 1rem</p>
|
|
237
|
+
<p class="font-sans text-lg">text-lg — 1.125rem</p>
|
|
238
|
+
<p class="font-sans text-xl">text-xl — 1.25rem</p>
|
|
239
|
+
<p class="font-sans text-2xl">text-2xl — 1.5rem</p>
|
|
240
|
+
<p class="font-sans text-3xl">text-3xl — 1.875rem</p>
|
|
241
|
+
<p class="font-sans text-4xl">text-4xl — 2.25rem</p>
|
|
242
|
+
<p class="font-sans text-5xl">text-5xl — 3rem</p>
|
|
243
|
+
|
|
244
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Usage</p>
|
|
245
|
+
<table class="pp-table pp-table--cols-2" style="margin-bottom:1rem;">
|
|
246
|
+
<thead><tr><th class="font-sans font-600">Class</th><th class="font-sans font-600">What it does</th></tr></thead>
|
|
247
|
+
<tbody>
|
|
248
|
+
<tr><td><code class="font-mono">.font-sans</code></td><td>Inter + system fallbacks</td></tr>
|
|
249
|
+
<tr><td><code class="font-mono">.font-mono</code></td><td>Kode Mono + system fallbacks</td></tr>
|
|
250
|
+
<tr><td><code class="font-mono">.font-100 → .font-900</code></td><td>Font weight</td></tr>
|
|
251
|
+
<tr><td><code class="font-mono">.text-xs → .text-5xl</code></td><td>Font size</td></tr>
|
|
252
|
+
<tr><td><code class="font-mono">.leading-*</code></td><td>Line height (none/tight/snug/normal/relaxed/loose)</td></tr>
|
|
253
|
+
<tr><td><code class="font-mono">.tracking-*</code></td><td>Letter spacing (tighter/tight/normal/wide/wider/widest)</td></tr>
|
|
254
|
+
<tr><td><code class="font-mono">.uppercase / .lowercase / .capitalize</code></td><td>Text transform</td></tr>
|
|
255
|
+
<tr><td><code class="font-mono">.truncate</code></td><td>Single-line overflow ellipsis</td></tr>
|
|
256
|
+
<tr><td><code class="font-mono">.wrap-balance</code></td><td>Balanced line wrapping</td></tr>
|
|
257
|
+
</tbody>
|
|
258
|
+
</table>
|
|
259
|
+
|
|
260
|
+
<p class="font-sans font-600 text-sm uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Code</p>
|
|
261
|
+
<p class="font-sans font-400">Inline <code class="font-mono">const greet = (name) => `Hello, ${name}!`</code></p>
|
|
262
|
+
<pre class="font-mono"><code>// Code block
|
|
263
|
+
const greet = (name) => `Hello, ${name}!`;</code></pre>
|
|
264
|
+
</div>
|
|
265
|
+
</section>
|
|
266
|
+
|
|
267
|
+
<!-- Accordion -->
|
|
268
|
+
<section id="accordion" class="pp-section">
|
|
269
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
270
|
+
<h2 class="font-sans font-700 tracking-tight">Accordion</h2>
|
|
271
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">CSS-only open/close via max-height transition. JS adds keyboard navigation (↑↓ Home End), ARIA state, and multi-open control. Progressive — works without JS.</p>
|
|
272
|
+
|
|
273
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Default (single open)</p>
|
|
274
|
+
<div class="pp-accordion" style="margin-top:0.5rem;">
|
|
275
|
+
<div class="pp-accordion__item">
|
|
276
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="true" aria-controls="acc-1">
|
|
277
|
+
What is PeppertinoCSS?
|
|
278
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
279
|
+
</button>
|
|
280
|
+
<div class="pp-accordion__panel is-open" id="acc-1" aria-hidden="false">
|
|
281
|
+
<p class="pp-accordion__content">PeppertinoCSS is an Apple-inspired CSS framework with a spicy red accent. Clean geometry, restrained elegance, and zero Cupertino lawsuits.</p>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
<div class="pp-accordion__item">
|
|
285
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="acc-2">
|
|
286
|
+
Does it require JavaScript?
|
|
287
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
288
|
+
</button>
|
|
289
|
+
<div class="pp-accordion__panel" id="acc-2" aria-hidden="true">
|
|
290
|
+
<p class="pp-accordion__content">Native details and summary work without JavaScript. The optional JS shim handles state and keyboard navigation for button-based accordions.</p>
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="pp-accordion__item">
|
|
294
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="acc-3">
|
|
295
|
+
Can I use it with any framework?
|
|
296
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
297
|
+
</button>
|
|
298
|
+
<div class="pp-accordion__panel" id="acc-3" aria-hidden="true">
|
|
299
|
+
<p class="pp-accordion__content">Yes — it's plain CSS classes. Consume via CDN, npm, or SCSS import. Works with React, Vue, Svelte, vanilla HTML — anything that can apply a class name.</p>
|
|
300
|
+
</div>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Multi-open (<code class="font-mono">data-allow-multiple</code>)</p>
|
|
305
|
+
<div class="pp-accordion" data-allow-multiple style="margin-top:0.5rem;">
|
|
306
|
+
<div class="pp-accordion__item">
|
|
307
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="accm-1">
|
|
308
|
+
Spacing system
|
|
309
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
310
|
+
</button>
|
|
311
|
+
<div class="pp-accordion__panel" id="accm-1" aria-hidden="true">
|
|
312
|
+
<p class="pp-accordion__content">Multiples of 0.25rem from 0 to 8rem, accessible via the <code class="font-mono">spacing($key)</code> helper function in SCSS.</p>
|
|
313
|
+
</div>
|
|
314
|
+
</div>
|
|
315
|
+
<div class="pp-accordion__item">
|
|
316
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="accm-2">
|
|
317
|
+
Color tokens
|
|
318
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
319
|
+
</button>
|
|
320
|
+
<div class="pp-accordion__panel" id="accm-2" aria-hidden="true">
|
|
321
|
+
<p class="pp-accordion__content">Primary red (#e90111), gradient gold-to-red, ten neutral steps, and semantic success/warning/error/info tokens — all overridable with <code class="font-mono">!default</code>.</p>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark variant</p>
|
|
327
|
+
<div class="pp-accordion pp-accordion--dark" style="margin-top:0.5rem;">
|
|
328
|
+
<div class="pp-accordion__item">
|
|
329
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="true" aria-controls="accd-1">
|
|
330
|
+
MacBook Pro M4
|
|
331
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
332
|
+
</button>
|
|
333
|
+
<div class="pp-accordion__panel is-open" id="accd-1" aria-hidden="false">
|
|
334
|
+
<p class="pp-accordion__content">Apple M4 chip, 14-core GPU, up to 64 GB unified memory, Liquid Retina XDR display. Built for the ones who push limits.</p>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
<div class="pp-accordion__item">
|
|
338
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="accd-2">
|
|
339
|
+
MacBook Air M3
|
|
340
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
341
|
+
</button>
|
|
342
|
+
<div class="pp-accordion__panel" id="accd-2" aria-hidden="true">
|
|
343
|
+
<p class="pp-accordion__content">Impossibly thin. Apple M3, all-day battery, 13.6" Liquid Retina display. The world's best consumer laptop.</p>
|
|
344
|
+
</div>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Flush variant</p>
|
|
349
|
+
<div class="pp-accordion pp-accordion--flush" style="margin-top:0.5rem;">
|
|
350
|
+
<div class="pp-accordion__item">
|
|
351
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="accf-1">
|
|
352
|
+
Is this flush?
|
|
353
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
354
|
+
</button>
|
|
355
|
+
<div class="pp-accordion__panel" id="accf-1" aria-hidden="true">
|
|
356
|
+
<p class="pp-accordion__content">Yes — no outer border, no border-radius, no box-shadow. Only dividing lines between items. Great inside cards or panels.</p>
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
<div class="pp-accordion__item">
|
|
360
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="accf-2">
|
|
361
|
+
When to use flush?
|
|
362
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
363
|
+
</button>
|
|
364
|
+
<div class="pp-accordion__panel" id="accf-2" aria-hidden="true">
|
|
365
|
+
<p class="pp-accordion__content">When the accordion is already inside a contained surface — a card, a sidebar, a settings panel — and you don't need another layer of border/radius.</p>
|
|
366
|
+
</div>
|
|
367
|
+
</div>
|
|
368
|
+
</div>
|
|
369
|
+
|
|
370
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark mode preview</p>
|
|
371
|
+
<div class="dark" style="margin-top:0.5rem;background:#18181b;border-radius:16px;padding:1.5rem;">
|
|
372
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-bottom:0.75rem;">.dark on ancestor</p>
|
|
373
|
+
<div class="pp-accordion">
|
|
374
|
+
<div class="pp-accordion__item">
|
|
375
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="true" aria-controls="acc-dm-1">
|
|
376
|
+
What is PeppertinoCSS?
|
|
377
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
378
|
+
</button>
|
|
379
|
+
<div class="pp-accordion__panel is-open" id="acc-dm-1" aria-hidden="false">
|
|
380
|
+
<p class="pp-accordion__content">Dark-mode aware — surface, border, and text all respond to the <code class="font-mono">.dark</code> ancestor class.</p>
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="pp-accordion__item">
|
|
384
|
+
<button class="pp-accordion__trigger font-sans" aria-expanded="false" aria-controls="acc-dm-2">
|
|
385
|
+
Does it require extra markup?
|
|
386
|
+
<svg class="pp-accordion__icon" viewBox="0 0 24 24" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
|
|
387
|
+
</button>
|
|
388
|
+
<div class="pp-accordion__panel" id="acc-dm-2" aria-hidden="true">
|
|
389
|
+
<p class="pp-accordion__content">No — same classes, no modifier needed. Add <code class="font-mono">.dark</code> to any ancestor and the token overrides cascade down automatically.</p>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
|
|
395
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Usage</p>
|
|
396
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
397
|
+
<thead><tr><th class="font-sans font-600">Class / attribute</th><th class="font-sans font-600">What it does</th></tr></thead>
|
|
398
|
+
<tbody>
|
|
399
|
+
<tr><td><code class="font-mono">.pp-accordion</code></td><td>Outer wrapper — bordered, rounded-16, white bg</td></tr>
|
|
400
|
+
<tr><td><code class="font-mono">.pp-accordion__item</code></td><td>Individual row — bottom border except last</td></tr>
|
|
401
|
+
<tr><td><code class="font-mono">.pp-accordion__trigger</code></td><td>Full-width button — icon rotates when open</td></tr>
|
|
402
|
+
<tr><td><code class="font-mono">.pp-accordion__panel</code></td><td>Collapsible region — max-height transition</td></tr>
|
|
403
|
+
<tr><td><code class="font-mono">.pp-accordion__content</code></td><td>Inner text wrapper</td></tr>
|
|
404
|
+
<tr><td><code class="font-mono">.pp-accordion__icon</code></td><td>Inline SVG chevron — 180° rotation when open</td></tr>
|
|
405
|
+
<tr><td><code class="font-mono">.pp-accordion--flush</code></td><td>No outer border / radius / shadow</td></tr>
|
|
406
|
+
<tr><td><code class="font-mono">.pp-accordion--dark</code></td><td>Dark neutral surface</td></tr>
|
|
407
|
+
<tr><td><code class="font-mono">.pp-accordion--primary</code></td><td>Open trigger gets primary red background</td></tr>
|
|
408
|
+
<tr><td><code class="font-mono">data-allow-multiple</code></td><td>Allow multiple items open simultaneously</td></tr>
|
|
409
|
+
<tr><td><code class="font-mono">aria-expanded</code></td><td>Drives open/closed state — the JS shim sets this</td></tr>
|
|
410
|
+
<tr><td><code class="font-mono">aria-controls</code></td><td>Links trigger to panel by id</td></tr>
|
|
411
|
+
<tr><td><code class="font-mono">.is-open</code></td><td>CSS class applied to panel when open (drives max-height)</td></tr>
|
|
412
|
+
</tbody>
|
|
413
|
+
</table>
|
|
414
|
+
</div>
|
|
415
|
+
</section>
|
|
416
|
+
|
|
417
|
+
<!-- Alert -->
|
|
418
|
+
<section id="alert" class="pp-section pp-section--muted">
|
|
419
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
420
|
+
<h2 class="font-sans font-700 tracking-tight">Alert</h2>
|
|
421
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">Inline feedback messages. CSS-only. Add <code class="font-mono">.is-dismissible</code> and wire the close button if you need dismiss behaviour.</p>
|
|
422
|
+
|
|
423
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Soft (default)</p>
|
|
424
|
+
<div style="display:flex;flex-direction:column;gap:0.75rem;margin-top:0.5rem;">
|
|
425
|
+
<div class="pp-alert pp-alert--info font-sans" role="note">
|
|
426
|
+
<span class="pp-alert__icon"><i data-lucide="info" aria-hidden="true"></i></span>
|
|
427
|
+
<div class="pp-alert__body">
|
|
428
|
+
<p class="pp-alert__title">Info</p>
|
|
429
|
+
<p class="pp-alert__message">Your session will expire in 10 minutes. Save your work to avoid losing progress.</p>
|
|
430
|
+
</div>
|
|
431
|
+
</div>
|
|
432
|
+
<div class="pp-alert pp-alert--success font-sans" role="status">
|
|
433
|
+
<span class="pp-alert__icon"><i data-lucide="circle-check" aria-hidden="true"></i></span>
|
|
434
|
+
<div class="pp-alert__body">
|
|
435
|
+
<p class="pp-alert__title">Success</p>
|
|
436
|
+
<p class="pp-alert__message">Your changes have been saved and published successfully.</p>
|
|
437
|
+
</div>
|
|
438
|
+
</div>
|
|
439
|
+
<div class="pp-alert pp-alert--warning font-sans" role="note">
|
|
440
|
+
<span class="pp-alert__icon"><i data-lucide="triangle-alert" aria-hidden="true"></i></span>
|
|
441
|
+
<div class="pp-alert__body">
|
|
442
|
+
<p class="pp-alert__title">Warning</p>
|
|
443
|
+
<p class="pp-alert__message">This action will affect all linked accounts. Review before proceeding.</p>
|
|
444
|
+
</div>
|
|
445
|
+
</div>
|
|
446
|
+
<div class="pp-alert pp-alert--error font-sans" role="alert">
|
|
447
|
+
<span class="pp-alert__icon"><i data-lucide="circle-x" aria-hidden="true"></i></span>
|
|
448
|
+
<div class="pp-alert__body">
|
|
449
|
+
<p class="pp-alert__title">Error</p>
|
|
450
|
+
<p class="pp-alert__message">Payment failed. Check your card details and try again.</p>
|
|
451
|
+
</div>
|
|
452
|
+
</div>
|
|
453
|
+
<div class="pp-alert pp-alert--primary font-sans" role="note">
|
|
454
|
+
<span class="pp-alert__icon"><i data-lucide="zap" aria-hidden="true"></i></span>
|
|
455
|
+
<div class="pp-alert__body">
|
|
456
|
+
<p class="pp-alert__title">Primary</p>
|
|
457
|
+
<p class="pp-alert__message">PeppertinoCSS v0.3 is now available on npm. Check the changelog for what's new.</p>
|
|
458
|
+
</div>
|
|
459
|
+
</div>
|
|
460
|
+
<div class="pp-alert pp-alert--neutral font-sans" role="note">
|
|
461
|
+
<span class="pp-alert__icon"><i data-lucide="message-square" aria-hidden="true"></i></span>
|
|
462
|
+
<div class="pp-alert__body">
|
|
463
|
+
<p class="pp-alert__title">Neutral</p>
|
|
464
|
+
<p class="pp-alert__message">No issues detected. All systems are operating normally.</p>
|
|
465
|
+
</div>
|
|
466
|
+
</div>
|
|
467
|
+
</div>
|
|
468
|
+
|
|
469
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Filled</p>
|
|
470
|
+
<div style="display:flex;flex-direction:column;gap:0.75rem;margin-top:0.5rem;">
|
|
471
|
+
<div class="pp-alert pp-alert--filled pp-alert--info font-sans" role="note">
|
|
472
|
+
<span class="pp-alert__icon"><i data-lucide="info" aria-hidden="true"></i></span>
|
|
473
|
+
<div class="pp-alert__body"><p class="pp-alert__message">Filled info — your session expires in 10 minutes.</p></div>
|
|
474
|
+
</div>
|
|
475
|
+
<div class="pp-alert pp-alert--filled pp-alert--success font-sans" role="status">
|
|
476
|
+
<span class="pp-alert__icon"><i data-lucide="circle-check" aria-hidden="true"></i></span>
|
|
477
|
+
<div class="pp-alert__body"><p class="pp-alert__message">Filled success — changes saved and published.</p></div>
|
|
478
|
+
</div>
|
|
479
|
+
<div class="pp-alert pp-alert--filled pp-alert--warning font-sans" role="note">
|
|
480
|
+
<span class="pp-alert__icon"><i data-lucide="triangle-alert" aria-hidden="true"></i></span>
|
|
481
|
+
<div class="pp-alert__body"><p class="pp-alert__message">Filled warning — this will affect linked accounts.</p></div>
|
|
482
|
+
</div>
|
|
483
|
+
<div class="pp-alert pp-alert--filled pp-alert--error font-sans" role="alert">
|
|
484
|
+
<span class="pp-alert__icon"><i data-lucide="circle-x" aria-hidden="true"></i></span>
|
|
485
|
+
<div class="pp-alert__body"><p class="pp-alert__message">Filled error — payment failed. Check your card details.</p></div>
|
|
486
|
+
</div>
|
|
487
|
+
</div>
|
|
488
|
+
|
|
489
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dismissible</p>
|
|
490
|
+
<div style="display:flex;flex-direction:column;gap:0.75rem;margin-top:0.5rem;">
|
|
491
|
+
<div class="pp-alert pp-alert--info is-dismissible font-sans" role="note" id="alert-dismiss-demo">
|
|
492
|
+
<span class="pp-alert__icon"><i data-lucide="info" aria-hidden="true"></i></span>
|
|
493
|
+
<div class="pp-alert__body">
|
|
494
|
+
<p class="pp-alert__title">Dismissible alert</p>
|
|
495
|
+
<p class="pp-alert__message">Click the × to dismiss this alert. Add <code>.is-dismissing</code> before removing the element for the slide-out animation.</p>
|
|
496
|
+
</div>
|
|
497
|
+
<button class="pp-alert__dismiss font-sans" aria-label="Dismiss alert"
|
|
498
|
+
onclick="const el=document.getElementById('alert-dismiss-demo');el.classList.add('is-dismissing');setTimeout(()=>el.remove(),200);">
|
|
499
|
+
<i data-lucide="x" aria-hidden="true"></i>
|
|
500
|
+
</button>
|
|
501
|
+
</div>
|
|
502
|
+
</div>
|
|
503
|
+
|
|
504
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark mode preview</p>
|
|
505
|
+
<div class="dark" style="margin-top:0.5rem;background:#18181b;border-radius:16px;padding:1.5rem;display:flex;flex-direction:column;gap:0.75rem;">
|
|
506
|
+
<div class="pp-alert pp-alert--info font-sans" role="note">
|
|
507
|
+
<span class="pp-alert__icon"><i data-lucide="info" aria-hidden="true"></i></span>
|
|
508
|
+
<div class="pp-alert__body"><p class="pp-alert__title">Info</p><p class="pp-alert__message">Your session expires in 10 minutes.</p></div>
|
|
509
|
+
</div>
|
|
510
|
+
<div class="pp-alert pp-alert--success font-sans" role="status">
|
|
511
|
+
<span class="pp-alert__icon"><i data-lucide="circle-check" aria-hidden="true"></i></span>
|
|
512
|
+
<div class="pp-alert__body"><p class="pp-alert__title">Success</p><p class="pp-alert__message">Changes saved and published.</p></div>
|
|
513
|
+
</div>
|
|
514
|
+
<div class="pp-alert pp-alert--warning font-sans" role="note">
|
|
515
|
+
<span class="pp-alert__icon"><i data-lucide="triangle-alert" aria-hidden="true"></i></span>
|
|
516
|
+
<div class="pp-alert__body"><p class="pp-alert__title">Warning</p><p class="pp-alert__message">This will affect linked accounts.</p></div>
|
|
517
|
+
</div>
|
|
518
|
+
<div class="pp-alert pp-alert--error font-sans" role="alert">
|
|
519
|
+
<span class="pp-alert__icon"><i data-lucide="circle-x" aria-hidden="true"></i></span>
|
|
520
|
+
<div class="pp-alert__body"><p class="pp-alert__title">Error</p><p class="pp-alert__message">Payment failed. Check your card details.</p></div>
|
|
521
|
+
</div>
|
|
522
|
+
<div class="pp-alert pp-alert--primary font-sans" role="note">
|
|
523
|
+
<span class="pp-alert__icon"><i data-lucide="zap" aria-hidden="true"></i></span>
|
|
524
|
+
<div class="pp-alert__body"><p class="pp-alert__title">Primary</p><p class="pp-alert__message">PeppertinoCSS v0.3 is now available on npm.</p></div>
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
|
|
528
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Usage</p>
|
|
529
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
530
|
+
<thead><tr><th class="font-sans font-600">Class</th><th class="font-sans font-600">What it does</th></tr></thead>
|
|
531
|
+
<tbody>
|
|
532
|
+
<tr><td><code class="font-mono">.pp-alert</code></td><td>Base wrapper — flex row, border, radius-12</td></tr>
|
|
533
|
+
<tr><td><code class="font-mono">.pp-alert--info</code></td><td>Blue tint</td></tr>
|
|
534
|
+
<tr><td><code class="font-mono">.pp-alert--success</code></td><td>Green tint</td></tr>
|
|
535
|
+
<tr><td><code class="font-mono">.pp-alert--warning</code></td><td>Amber tint</td></tr>
|
|
536
|
+
<tr><td><code class="font-mono">.pp-alert--error</code></td><td>Red tint — use <code>role="alert"</code></td></tr>
|
|
537
|
+
<tr><td><code class="font-mono">.pp-alert--primary</code></td><td>Spicy red tint</td></tr>
|
|
538
|
+
<tr><td><code class="font-mono">.pp-alert--neutral</code></td><td>Grey tint</td></tr>
|
|
539
|
+
<tr><td><code class="font-mono">.pp-alert--filled</code></td><td>Solid background instead of tinted</td></tr>
|
|
540
|
+
<tr><td><code class="font-mono">.pp-alert__icon</code></td><td>Leading icon slot — 18px</td></tr>
|
|
541
|
+
<tr><td><code class="font-mono">.pp-alert__title</code></td><td>Semibold label line</td></tr>
|
|
542
|
+
<tr><td><code class="font-mono">.pp-alert__message</code></td><td>Body text (85% opacity)</td></tr>
|
|
543
|
+
<tr><td><code class="font-mono">.is-dismissible</code></td><td>Adds right padding for the close button</td></tr>
|
|
544
|
+
<tr><td><code class="font-mono">.pp-alert__dismiss</code></td><td>Absolute-positioned close × button</td></tr>
|
|
545
|
+
<tr><td><code class="font-mono">.is-dismissing</code></td><td>Slide-out animation before DOM removal</td></tr>
|
|
546
|
+
<tr><td><code class="font-mono">role="alert"</code></td><td>Use on error alerts — announces immediately</td></tr>
|
|
547
|
+
<tr><td><code class="font-mono">role="status"</code></td><td>Use on success — polite announcement</td></tr>
|
|
548
|
+
<tr><td><code class="font-mono">role="note"</code></td><td>Use on info / warning — supplemental context</td></tr>
|
|
549
|
+
</tbody>
|
|
550
|
+
</table>
|
|
551
|
+
</div>
|
|
552
|
+
</section>
|
|
553
|
+
|
|
554
|
+
<!-- Badge -->
|
|
555
|
+
<section id="badges" class="pp-section">
|
|
556
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
557
|
+
<h2 class="font-sans font-700 tracking-tight">Badge</h2>
|
|
558
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">Pill-shaped status indicators. CSS-only — no JS required.</p>
|
|
559
|
+
|
|
560
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Tint variants (default)</p>
|
|
561
|
+
<div style="display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.5rem;align-items:center;">
|
|
562
|
+
<span class="pp-badge pp-badge--primary font-sans">Primary</span>
|
|
563
|
+
<span class="pp-badge pp-badge--success font-sans">Success</span>
|
|
564
|
+
<span class="pp-badge pp-badge--warning font-sans">Warning</span>
|
|
565
|
+
<span class="pp-badge pp-badge--error font-sans">Error</span>
|
|
566
|
+
<span class="pp-badge pp-badge--info font-sans">Info</span>
|
|
567
|
+
</div>
|
|
568
|
+
|
|
569
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Filled</p>
|
|
570
|
+
<div style="display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.5rem;align-items:center;">
|
|
571
|
+
<span class="pp-badge pp-badge--primary pp-badge--filled font-sans">Primary</span>
|
|
572
|
+
<span class="pp-badge pp-badge--success pp-badge--filled font-sans">Success</span>
|
|
573
|
+
<span class="pp-badge pp-badge--warning pp-badge--filled font-sans">Warning</span>
|
|
574
|
+
<span class="pp-badge pp-badge--error pp-badge--filled font-sans">Error</span>
|
|
575
|
+
<span class="pp-badge pp-badge--info pp-badge--filled font-sans">Info</span>
|
|
576
|
+
</div>
|
|
577
|
+
|
|
578
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Sizes</p>
|
|
579
|
+
<div style="display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.5rem;align-items:center;">
|
|
580
|
+
<span class="pp-badge pp-badge--info pp-badge--sm font-sans">Small</span>
|
|
581
|
+
<span class="pp-badge pp-badge--info font-sans">Default</span>
|
|
582
|
+
<span class="pp-badge pp-badge--info pp-badge--lg font-sans">Large</span>
|
|
583
|
+
</div>
|
|
584
|
+
|
|
585
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Dot indicator</p>
|
|
586
|
+
<div style="display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.5rem;align-items:center;">
|
|
587
|
+
<span class="pp-badge pp-badge--error pp-badge--dot" aria-label="3 unread notifications"></span>
|
|
588
|
+
<span class="pp-badge pp-badge--success pp-badge--dot" aria-label="Online"></span>
|
|
589
|
+
<span class="pp-badge pp-badge--warning pp-badge--dot" aria-label="Away"></span>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">In context</p>
|
|
593
|
+
<div style="display:flex;flex-wrap:wrap;gap:1rem;margin-top:0.5rem;align-items:center;">
|
|
594
|
+
<span class="font-sans font-500" style="color:var(--pp-on-surface);">
|
|
595
|
+
Messages <span class="pp-badge pp-badge--error pp-badge--filled">3</span>
|
|
596
|
+
</span>
|
|
597
|
+
<span class="font-sans font-500" style="color:var(--pp-on-surface);">
|
|
598
|
+
Status <span class="pp-badge pp-badge--success">Active</span>
|
|
599
|
+
</span>
|
|
600
|
+
<span class="font-sans font-500" style="color:var(--pp-on-surface);">
|
|
601
|
+
Plan <span class="pp-badge pp-badge--primary pp-badge--filled">Beta</span>
|
|
602
|
+
</span>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
</section>
|
|
606
|
+
|
|
607
|
+
<!-- Buttons -->
|
|
608
|
+
<section id="buttons" class="pp-section">
|
|
609
|
+
<div class="pp-section__inner" style="align-items:flex-start;">
|
|
610
|
+
<h2 class="font-sans font-700 tracking-tight">Buttons</h2>
|
|
611
|
+
|
|
612
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Filled</p>
|
|
613
|
+
<div class="row" style="justify-content:flex-start;">
|
|
614
|
+
<button class="pp-button font-sans">Primary</button>
|
|
615
|
+
<button class="pp-button--success font-sans">Success</button>
|
|
616
|
+
<button class="pp-button--warning font-sans">Warning</button>
|
|
617
|
+
<button class="pp-button--error font-sans">Error</button>
|
|
618
|
+
<button class="pp-button--dark font-sans">Dark</button>
|
|
619
|
+
<button class="pp-button--gradient font-sans">Gradient</button>
|
|
620
|
+
<button class="pp-button--ghost font-sans">Ghost</button>
|
|
621
|
+
</div>
|
|
622
|
+
|
|
623
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Outline</p>
|
|
624
|
+
<div class="row" style="justify-content:flex-start;">
|
|
625
|
+
<button class="pp-button--outline font-sans">Primary</button>
|
|
626
|
+
<button class="pp-button--outline pp-button--success font-sans">Success</button>
|
|
627
|
+
<button class="pp-button--outline pp-button--warning font-sans">Warning</button>
|
|
628
|
+
<button class="pp-button--outline pp-button--error font-sans">Error</button>
|
|
629
|
+
<button class="pp-button--outline pp-button--dark font-sans">Dark</button>
|
|
630
|
+
</div>
|
|
631
|
+
|
|
632
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark mode preview</p>
|
|
633
|
+
<div class="dark" style="margin-top:0.5rem;background:#18181b;border-radius:16px;padding:1.25rem 1.5rem;display:flex;flex-direction:column;gap:1rem;align-items:flex-start;">
|
|
634
|
+
<div class="row" style="justify-content:flex-start;">
|
|
635
|
+
<button class="pp-button font-sans">Primary</button>
|
|
636
|
+
<button class="pp-button--success font-sans">Success</button>
|
|
637
|
+
<button class="pp-button--warning font-sans">Warning</button>
|
|
638
|
+
<button class="pp-button--error font-sans">Error</button>
|
|
639
|
+
<button class="pp-button--dark font-sans">Dark</button>
|
|
640
|
+
<button class="pp-button--gradient font-sans">Gradient</button>
|
|
641
|
+
<button class="pp-button--ghost font-sans">Ghost</button>
|
|
642
|
+
</div>
|
|
643
|
+
<div class="row" style="justify-content:flex-start;">
|
|
644
|
+
<button class="pp-button--outline font-sans">Primary</button>
|
|
645
|
+
<button class="pp-button--outline pp-button--success font-sans">Success</button>
|
|
646
|
+
<button class="pp-button--outline pp-button--warning font-sans">Warning</button>
|
|
647
|
+
<button class="pp-button--outline pp-button--error font-sans">Error</button>
|
|
648
|
+
<button class="pp-button--outline pp-button--dark font-sans">Dark</button>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
</section>
|
|
653
|
+
|
|
654
|
+
<!-- Cards -->
|
|
655
|
+
<section id="cards" class="pp-section pp-section--muted">
|
|
656
|
+
<div class="pp-section__inner" style="max-width:1100px;">
|
|
657
|
+
<h2 class="font-sans font-700 tracking-tight">Cards</h2>
|
|
658
|
+
|
|
659
|
+
<div class="pp-card-grid pp-card-grid--3">
|
|
660
|
+
<div class="pp-card">
|
|
661
|
+
<p class="pp-card__eyebrow">Framework</p>
|
|
662
|
+
<p class="pp-card__title">Clean by default</p>
|
|
663
|
+
<p class="pp-card__body">White background, subtle shadow, 16px radius. The base card — works for anything.</p>
|
|
664
|
+
<div class="pp-card__footer">
|
|
665
|
+
<button class="pp-button font-sans font-400">Learn more</button>
|
|
666
|
+
</div>
|
|
667
|
+
</div>
|
|
668
|
+
<div class="pp-card pp-card--dark">
|
|
669
|
+
<p class="pp-card__eyebrow">Dark variant</p>
|
|
670
|
+
<p class="pp-card__title">Midnight surface</p>
|
|
671
|
+
<p class="pp-card__body">Deep neutral background with a primary-light eyebrow. Pairs well with dark sections.</p>
|
|
672
|
+
<div class="pp-card__footer">
|
|
673
|
+
<button class="pp-button font-sans font-400">Learn more</button>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
<div class="pp-card pp-card--gradient">
|
|
677
|
+
<p class="pp-card__eyebrow">Gradient variant</p>
|
|
678
|
+
<p class="pp-card__title">A little spice</p>
|
|
679
|
+
<p class="pp-card__body">The signature PeppertinoCSS gradient — warm gold to red. Use sparingly for emphasis.</p>
|
|
680
|
+
<div class="pp-card__footer">
|
|
681
|
+
<button class="pp-button font-sans font-400" style="background:#fff;color:#ea5753;">Learn more</button>
|
|
682
|
+
</div>
|
|
683
|
+
</div>
|
|
684
|
+
</div>
|
|
685
|
+
|
|
686
|
+
<div class="pp-card-grid pp-card-grid--2" style="margin-top:1.5rem;">
|
|
687
|
+
<div class="pp-card pp-card--primary">
|
|
688
|
+
<p class="pp-card__eyebrow">Primary variant</p>
|
|
689
|
+
<p class="pp-card__title">Solid red card</p>
|
|
690
|
+
<p class="pp-card__body">Full primary background. Strong call-to-action surface — use for featured content.</p>
|
|
691
|
+
<div class="pp-card__footer">
|
|
692
|
+
<button class="pp-button--outline font-sans font-400" style="border-color:rgba(255,255,255,0.5);color:#fff;">Explore</button>
|
|
693
|
+
</div>
|
|
694
|
+
</div>
|
|
695
|
+
<div class="pp-card pp-card--ghost">
|
|
696
|
+
<p class="pp-card__eyebrow">Ghost variant</p>
|
|
697
|
+
<p class="pp-card__title">Transparent surface</p>
|
|
698
|
+
<p class="pp-card__body">No background, border only. Fills white and gains a shadow on hover. Great for secondary content.</p>
|
|
699
|
+
<div class="pp-card__footer">
|
|
700
|
+
<button class="pp-button--outline font-sans font-400">Explore</button>
|
|
701
|
+
</div>
|
|
702
|
+
</div>
|
|
703
|
+
</div>
|
|
704
|
+
|
|
705
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2.5rem;">Dark mode preview</p>
|
|
706
|
+
<div class="dark" style="margin-top:0.5rem;background:#18181b;border-radius:20px;padding:1.5rem;">
|
|
707
|
+
<div class="pp-card-grid pp-card-grid--3">
|
|
708
|
+
<div class="pp-card">
|
|
709
|
+
<p class="pp-card__eyebrow">Framework</p>
|
|
710
|
+
<p class="pp-card__title">Clean by default</p>
|
|
711
|
+
<p class="pp-card__body">Dark mode flips the surface — same classes, zero extra markup.</p>
|
|
712
|
+
<div class="pp-card__footer"><button class="pp-button font-sans font-400">Learn more</button></div>
|
|
713
|
+
</div>
|
|
714
|
+
<div class="pp-card pp-card--dark">
|
|
715
|
+
<p class="pp-card__eyebrow">Dark variant</p>
|
|
716
|
+
<p class="pp-card__title">Midnight surface</p>
|
|
717
|
+
<p class="pp-card__body">Explicit dark variant stays dark regardless of the global toggle.</p>
|
|
718
|
+
<div class="pp-card__footer"><button class="pp-button font-sans font-400">Learn more</button></div>
|
|
719
|
+
</div>
|
|
720
|
+
<div class="pp-card pp-card--ghost">
|
|
721
|
+
<p class="pp-card__eyebrow">Ghost variant</p>
|
|
722
|
+
<p class="pp-card__title">Border only</p>
|
|
723
|
+
<p class="pp-card__body">Ghost card adapts its hover fill to the dark surface token.</p>
|
|
724
|
+
<div class="pp-card__footer"><button class="pp-button--outline font-sans font-400">Explore</button></div>
|
|
725
|
+
</div>
|
|
726
|
+
</div>
|
|
727
|
+
</div>
|
|
728
|
+
</div>
|
|
729
|
+
</section>
|
|
730
|
+
|
|
731
|
+
<!-- Carousel -->
|
|
732
|
+
<section id="carousel" class="pp-section">
|
|
733
|
+
<div class="pp-section__inner" style="max-width:860px;">
|
|
734
|
+
<h2 class="font-sans font-700 tracking-tight">Carousel</h2>
|
|
735
|
+
|
|
736
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Default — full width, with captions</p>
|
|
737
|
+
|
|
738
|
+
<div class="pp-carousel" id="carousel-default" data-label="Featured slides" style="margin-bottom:2rem;">
|
|
739
|
+
<div class="pp-carousel__track">
|
|
740
|
+
<div class="pp-carousel__slide" id="carousel-default-slide-0">
|
|
741
|
+
<div style="background:linear-gradient(135deg,#ffcf67,#ea5753);width:100%;height:360px;border-radius:16px;display:flex;align-items:flex-end;">
|
|
742
|
+
<div class="pp-carousel__caption">
|
|
743
|
+
<p class="pp-carousel__caption-title font-sans font-600">The signature gradient</p>
|
|
744
|
+
<p class="pp-carousel__caption-body font-sans font-400">Warm gold to spicy red — the PeppertinoCSS identity.</p>
|
|
745
|
+
</div>
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
<div class="pp-carousel__slide" id="carousel-default-slide-1">
|
|
749
|
+
<div style="background:linear-gradient(135deg,#18181b,#3f3f46);width:100%;height:360px;border-radius:16px;display:flex;align-items:flex-end;">
|
|
750
|
+
<div class="pp-carousel__caption">
|
|
751
|
+
<p class="pp-carousel__caption-title font-sans font-600">Midnight surface</p>
|
|
752
|
+
<p class="pp-carousel__caption-body font-sans font-400">Deep neutral tones for focused, editorial layouts.</p>
|
|
753
|
+
</div>
|
|
754
|
+
</div>
|
|
755
|
+
</div>
|
|
756
|
+
<div class="pp-carousel__slide" id="carousel-default-slide-2">
|
|
757
|
+
<div style="background:linear-gradient(135deg,#3b82f6,#6366f1);width:100%;height:360px;border-radius:16px;display:flex;align-items:flex-end;">
|
|
758
|
+
<div class="pp-carousel__caption">
|
|
759
|
+
<p class="pp-carousel__caption-title font-sans font-600">Cool contrast</p>
|
|
760
|
+
<p class="pp-carousel__caption-body font-sans font-400">A break from red — blue to indigo for variety.</p>
|
|
761
|
+
</div>
|
|
762
|
+
</div>
|
|
763
|
+
</div>
|
|
764
|
+
</div>
|
|
765
|
+
|
|
766
|
+
<!-- Prev / Next -->
|
|
767
|
+
<button class="pp-carousel__prev" type="button" aria-label="Previous slide">
|
|
768
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
|
|
769
|
+
</button>
|
|
770
|
+
<button class="pp-carousel__next" type="button" aria-label="Next slide">
|
|
771
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><polyline points="9 6 15 12 9 18"/></svg>
|
|
772
|
+
</button>
|
|
773
|
+
|
|
774
|
+
<!-- Dots — plain div/button, no list role to avoid ownership conflicts -->
|
|
775
|
+
<div class="pp-carousel__dots" aria-label="Slide navigation">
|
|
776
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 1" aria-controls="carousel-default-slide-0"></button>
|
|
777
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 2" aria-controls="carousel-default-slide-1"></button>
|
|
778
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 3" aria-controls="carousel-default-slide-2"></button>
|
|
779
|
+
</div>
|
|
780
|
+
|
|
781
|
+
<!-- Screen-reader live region -->
|
|
782
|
+
<div class="pp-carousel__announcer" aria-live="polite" aria-atomic="true"></div>
|
|
783
|
+
</div>
|
|
784
|
+
|
|
785
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Peek variant — partial next slide visible</p>
|
|
786
|
+
|
|
787
|
+
<div class="pp-carousel pp-carousel--peek-2" id="carousel-peek" data-label="Peek carousel" style="margin-bottom:2rem;">
|
|
788
|
+
<div class="pp-carousel__track" style="gap:1rem;padding:0 0.5rem;">
|
|
789
|
+
<div class="pp-carousel__slide" id="carousel-peek-slide-0">
|
|
790
|
+
<div style="background:#e90111;width:100%;height:240px;border-radius:16px;display:flex;align-items:center;justify-content:center;">
|
|
791
|
+
<span class="font-sans font-600 text-xl" style="color:#fff;">Slide 1</span>
|
|
792
|
+
</div>
|
|
793
|
+
</div>
|
|
794
|
+
<div class="pp-carousel__slide" id="carousel-peek-slide-1">
|
|
795
|
+
<div style="background:#f77f00;width:100%;height:240px;border-radius:16px;display:flex;align-items:center;justify-content:center;">
|
|
796
|
+
<span class="font-sans font-600 text-xl" style="color:#fff;">Slide 2</span>
|
|
797
|
+
</div>
|
|
798
|
+
</div>
|
|
799
|
+
<div class="pp-carousel__slide" id="carousel-peek-slide-2">
|
|
800
|
+
<div style="background:#18181b;width:100%;height:240px;border-radius:16px;display:flex;align-items:center;justify-content:center;">
|
|
801
|
+
<span class="font-sans font-600 text-xl" style="color:#fff;">Slide 3</span>
|
|
802
|
+
</div>
|
|
803
|
+
</div>
|
|
804
|
+
<div class="pp-carousel__slide" id="carousel-peek-slide-3">
|
|
805
|
+
<div style="background:linear-gradient(135deg,#ffcf67,#ea5753);width:100%;height:240px;border-radius:16px;display:flex;align-items:center;justify-content:center;">
|
|
806
|
+
<span class="font-sans font-600 text-xl" style="color:#fff;">Slide 4</span>
|
|
807
|
+
</div>
|
|
808
|
+
</div>
|
|
809
|
+
</div>
|
|
810
|
+
|
|
811
|
+
<button class="pp-carousel__prev" type="button" aria-label="Previous slide">
|
|
812
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
|
|
813
|
+
</button>
|
|
814
|
+
<button class="pp-carousel__next" type="button" aria-label="Next slide">
|
|
815
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><polyline points="9 6 15 12 9 18"/></svg>
|
|
816
|
+
</button>
|
|
817
|
+
|
|
818
|
+
<div class="pp-carousel__dots" aria-label="Slide navigation">
|
|
819
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 1" aria-controls="carousel-peek-slide-0"></button>
|
|
820
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 2" aria-controls="carousel-peek-slide-1"></button>
|
|
821
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 3" aria-controls="carousel-peek-slide-2"></button>
|
|
822
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 4" aria-controls="carousel-peek-slide-3"></button>
|
|
823
|
+
</div>
|
|
824
|
+
|
|
825
|
+
<div class="pp-carousel__announcer" aria-live="polite" aria-atomic="true"></div>
|
|
826
|
+
</div>
|
|
827
|
+
|
|
828
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark variant</p>
|
|
829
|
+
|
|
830
|
+
<div class="pp-carousel pp-carousel--dark" id="carousel-dark" data-label="Dark carousel">
|
|
831
|
+
<div class="pp-carousel__track">
|
|
832
|
+
<div class="pp-carousel__slide" id="carousel-dark-slide-0">
|
|
833
|
+
<div style="background:#27272a;width:100%;height:280px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;">
|
|
834
|
+
<span class="font-sans font-700 text-3xl" style="color:#fff;">M4 Pro</span>
|
|
835
|
+
<span class="font-sans font-400 text-sm" style="color:#a1a1aa;">MacBook Pro 14"</span>
|
|
836
|
+
</div>
|
|
837
|
+
</div>
|
|
838
|
+
<div class="pp-carousel__slide" id="carousel-dark-slide-1">
|
|
839
|
+
<div style="background:#18181b;width:100%;height:280px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;">
|
|
840
|
+
<span class="font-sans font-700 text-3xl" style="color:#fff;">M4 Max</span>
|
|
841
|
+
<span class="font-sans font-400 text-sm" style="color:#a1a1aa;">MacBook Pro 16"</span>
|
|
842
|
+
</div>
|
|
843
|
+
</div>
|
|
844
|
+
<div class="pp-carousel__slide" id="carousel-dark-slide-2">
|
|
845
|
+
<div style="background:#0f0f10;width:100%;height:280px;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0.5rem;">
|
|
846
|
+
<span class="font-sans font-700 text-3xl" style="color:#fff;">M4 Ultra</span>
|
|
847
|
+
<span class="font-sans font-400 text-sm" style="color:#a1a1aa;">Mac Pro</span>
|
|
848
|
+
</div>
|
|
849
|
+
</div>
|
|
850
|
+
</div>
|
|
851
|
+
|
|
852
|
+
<button class="pp-carousel__prev" type="button" aria-label="Previous slide">
|
|
853
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
|
|
854
|
+
</button>
|
|
855
|
+
<button class="pp-carousel__next" type="button" aria-label="Next slide">
|
|
856
|
+
<svg viewBox="0 0 24 24" aria-hidden="true"><polyline points="9 6 15 12 9 18"/></svg>
|
|
857
|
+
</button>
|
|
858
|
+
|
|
859
|
+
<div class="pp-carousel__dots" aria-label="Slide navigation">
|
|
860
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 1" aria-controls="carousel-dark-slide-0"></button>
|
|
861
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 2" aria-controls="carousel-dark-slide-1"></button>
|
|
862
|
+
<button class="pp-carousel__dot" type="button" aria-label="Go to slide 3" aria-controls="carousel-dark-slide-2"></button>
|
|
863
|
+
</div>
|
|
864
|
+
|
|
865
|
+
<div class="pp-carousel__announcer" aria-live="polite" aria-atomic="true"></div>
|
|
866
|
+
</div>
|
|
867
|
+
</div>
|
|
868
|
+
</section>
|
|
869
|
+
|
|
870
|
+
<!-- Gradient text -->
|
|
871
|
+
<section id="gradient" class="pp-section pp-section--dark">
|
|
872
|
+
<div class="pp-section__inner">
|
|
873
|
+
<h2 class="font-sans font-700 tracking-tight" style="color:#fff;">Gradient Text</h2>
|
|
874
|
+
<h1 class="pp-gradient-text font-sans font-700 tracking-tight">PeppertinoCSS</h1>
|
|
875
|
+
<p class="pp-gradient-text font-sans font-400 text-xl leading-relaxed">The quick brown fox jumps over the lazy dog.</p>
|
|
876
|
+
</div>
|
|
877
|
+
</section>
|
|
878
|
+
|
|
879
|
+
<!-- Modals -->
|
|
880
|
+
<section id="modals" class="pp-section pp-section--dark">
|
|
881
|
+
<div class="pp-section__inner">
|
|
882
|
+
<h2 class="font-sans font-700 tracking-tight" style="color:#fff;">Modals</h2>
|
|
883
|
+
<p class="font-sans font-400 text-sm" style="color:rgba(255,255,255,0.6);">Glassmorphic backdrop blur with frosted container.</p>
|
|
884
|
+
<div class="row">
|
|
885
|
+
<button class="pp-button font-sans" data-modal-open="modal-basic">Basic</button>
|
|
886
|
+
<button class="pp-button font-sans" data-modal-open="modal-destructive">Destructive</button>
|
|
887
|
+
<button class="pp-button--outline font-sans" style="border-color:rgba(255,255,255,0.4);color:#fff;" data-modal-open="modal-confirm">Confirm</button>
|
|
888
|
+
</div>
|
|
889
|
+
</div>
|
|
890
|
+
</section>
|
|
891
|
+
|
|
892
|
+
<!-- Modal: basic -->
|
|
893
|
+
<div id="modal-basic" class="pp-modal-backdrop" role="dialog" aria-modal="true" aria-labelledby="modal-basic-title" aria-describedby="modal-basic-desc" aria-hidden="true">
|
|
894
|
+
<div class="pp-modal">
|
|
895
|
+
<button class="pp-modal__close font-sans" data-modal-close="modal-basic" aria-label="Close">✕</button>
|
|
896
|
+
<p class="pp-modal__title font-sans" id="modal-basic-title">Action Title</p>
|
|
897
|
+
<p class="pp-modal__description font-sans" id="modal-basic-desc">A short description of the action you are about to take.</p>
|
|
898
|
+
<ul class="pp-modal__actions">
|
|
899
|
+
<li><button class="pp-modal__action font-sans">Action 1</button></li>
|
|
900
|
+
<li><button class="pp-modal__action font-sans">Action 2</button></li>
|
|
901
|
+
<li><button class="pp-modal__action font-sans">Action 3</button></li>
|
|
902
|
+
<li><button class="pp-modal__action pp-modal__action--cancel font-sans" data-modal-close="modal-basic">Cancel</button></li>
|
|
903
|
+
</ul>
|
|
904
|
+
</div>
|
|
905
|
+
</div>
|
|
906
|
+
|
|
907
|
+
<!-- Modal: destructive -->
|
|
908
|
+
<div id="modal-destructive" class="pp-modal-backdrop" role="dialog" aria-modal="true" aria-labelledby="modal-destructive-title" aria-describedby="modal-destructive-desc" aria-hidden="true">
|
|
909
|
+
<div class="pp-modal">
|
|
910
|
+
<button class="pp-modal__close font-sans" data-modal-close="modal-destructive" aria-label="Close">✕</button>
|
|
911
|
+
<p class="pp-modal__title font-sans" id="modal-destructive-title">Delete Item</p>
|
|
912
|
+
<p class="pp-modal__description font-sans" id="modal-destructive-desc">This action cannot be undone. The item will be permanently removed.</p>
|
|
913
|
+
<ul class="pp-modal__actions">
|
|
914
|
+
<li><button class="pp-modal__action pp-modal__action--destructive font-sans">Delete permanently</button></li>
|
|
915
|
+
<li><button class="pp-modal__action pp-modal__action--cancel font-sans" data-modal-close="modal-destructive">Cancel</button></li>
|
|
916
|
+
</ul>
|
|
917
|
+
</div>
|
|
918
|
+
</div>
|
|
919
|
+
|
|
920
|
+
<!-- Modal: confirm -->
|
|
921
|
+
<div id="modal-confirm" class="pp-modal-backdrop" role="dialog" aria-modal="true" aria-labelledby="modal-confirm-title" aria-describedby="modal-confirm-desc" aria-hidden="true">
|
|
922
|
+
<div class="pp-modal">
|
|
923
|
+
<button class="pp-modal__close font-sans" data-modal-close="modal-confirm" aria-label="Close">✕</button>
|
|
924
|
+
<p class="pp-modal__title font-sans" id="modal-confirm-title">Confirm Changes</p>
|
|
925
|
+
<p class="pp-modal__description font-sans" id="modal-confirm-desc">Save and publish your changes? They will be visible immediately.</p>
|
|
926
|
+
<ul class="pp-modal__actions">
|
|
927
|
+
<li><button class="pp-modal__action font-sans">Save & Publish</button></li>
|
|
928
|
+
<li><button class="pp-modal__action font-sans">Save as Draft</button></li>
|
|
929
|
+
<li><button class="pp-modal__action pp-modal__action--cancel font-sans" data-modal-close="modal-confirm">Discard</button></li>
|
|
930
|
+
</ul>
|
|
931
|
+
</div>
|
|
932
|
+
</div>
|
|
933
|
+
|
|
934
|
+
<!-- Selects -->
|
|
935
|
+
<section id="selects" class="pp-section">
|
|
936
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:560px;">
|
|
937
|
+
<h2 class="font-sans font-700 tracking-tight">Selects</h2>
|
|
938
|
+
|
|
939
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">Native <select></p>
|
|
940
|
+
<select>
|
|
941
|
+
<option value="">Choose a framework</option>
|
|
942
|
+
<option value="peppertino">PeppertinoCSS</option>
|
|
943
|
+
<option value="tailwind">Tailwind</option>
|
|
944
|
+
<option value="bootstrap">Bootstrap</option>
|
|
945
|
+
</select>
|
|
946
|
+
|
|
947
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Custom .pp-select</p>
|
|
948
|
+
<div class="pp-select">
|
|
949
|
+
<button class="pp-select__trigger font-sans" type="button" aria-label="Choose a color">
|
|
950
|
+
<span class="pp-select__value">Choose a color</span>
|
|
951
|
+
<span class="pp-select__chevron"></span>
|
|
952
|
+
</button>
|
|
953
|
+
<ul class="pp-select__panel" role="listbox">
|
|
954
|
+
<li role="option"><button class="pp-select__option font-sans" data-value="primary">Primary Red</button></li>
|
|
955
|
+
<li role="option"><button class="pp-select__option font-sans" data-value="gradient-start">Gradient Gold</button></li>
|
|
956
|
+
<li role="option"><button class="pp-select__option font-sans" data-value="gradient-end">Gradient Red</button></li>
|
|
957
|
+
<li role="separator" class="pp-select__divider"></li>
|
|
958
|
+
<li role="group" aria-label="Neutrals" style="list-style:none;">
|
|
959
|
+
<span class="pp-select__group-label font-sans">Neutrals</span>
|
|
960
|
+
<ul role="group" style="list-style:none;padding:0;margin:0;">
|
|
961
|
+
<li role="option"><button class="pp-select__option font-sans" data-value="light">Light</button></li>
|
|
962
|
+
<li role="option" aria-selected="true"><button class="pp-select__option font-sans is-selected" data-value="dark">Dark</button></li>
|
|
963
|
+
</ul>
|
|
964
|
+
</li>
|
|
965
|
+
</ul>
|
|
966
|
+
</div>
|
|
967
|
+
|
|
968
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Sizes</p>
|
|
969
|
+
<div class="pp-select pp-select--sm" style="margin-bottom:1rem;">
|
|
970
|
+
<button class="pp-select__trigger font-sans" type="button" aria-label="Small">
|
|
971
|
+
<span class="pp-select__value">Small</span>
|
|
972
|
+
<span class="pp-select__chevron"></span>
|
|
973
|
+
</button>
|
|
974
|
+
<ul class="pp-select__panel" role="listbox">
|
|
975
|
+
<li role="option"><button class="pp-select__option font-sans">Option A</button></li>
|
|
976
|
+
<li role="option"><button class="pp-select__option font-sans">Option B</button></li>
|
|
977
|
+
</ul>
|
|
978
|
+
</div>
|
|
979
|
+
<div class="pp-select pp-select--lg">
|
|
980
|
+
<button class="pp-select__trigger font-sans" type="button" aria-label="Large">
|
|
981
|
+
<span class="pp-select__value">Large</span>
|
|
982
|
+
<span class="pp-select__chevron"></span>
|
|
983
|
+
</button>
|
|
984
|
+
<ul class="pp-select__panel" role="listbox">
|
|
985
|
+
<li role="option"><button class="pp-select__option font-sans">Option A</button></li>
|
|
986
|
+
<li role="option"><button class="pp-select__option font-sans">Option B</button></li>
|
|
987
|
+
</ul>
|
|
988
|
+
</div>
|
|
989
|
+
|
|
990
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark mode preview</p>
|
|
991
|
+
<div class="dark" style="margin-top:0.5rem;background:#18181b;border-radius:16px;padding:1.5rem;display:flex;flex-direction:column;gap:1rem;">
|
|
992
|
+
<select class="font-sans">
|
|
993
|
+
<option>Native select in dark mode</option>
|
|
994
|
+
<option>Option B</option>
|
|
995
|
+
<option>Option C</option>
|
|
996
|
+
</select>
|
|
997
|
+
<div class="pp-select">
|
|
998
|
+
<button class="pp-select__trigger font-sans" type="button" aria-label="Custom select dark">
|
|
999
|
+
<span class="pp-select__value">Custom .pp-select in dark</span>
|
|
1000
|
+
<span class="pp-select__chevron"></span>
|
|
1001
|
+
</button>
|
|
1002
|
+
<ul class="pp-select__panel" role="listbox">
|
|
1003
|
+
<li role="option"><button class="pp-select__option font-sans">Primary Red</button></li>
|
|
1004
|
+
<li role="option"><button class="pp-select__option font-sans is-selected">Dark</button></li>
|
|
1005
|
+
<li role="option"><button class="pp-select__option font-sans">Gradient Gold</button></li>
|
|
1006
|
+
</ul>
|
|
1007
|
+
</div>
|
|
1008
|
+
</div>
|
|
1009
|
+
</div>
|
|
1010
|
+
</section>
|
|
1011
|
+
|
|
1012
|
+
<!-- Switch -->
|
|
1013
|
+
<section id="switches" class="pp-section">
|
|
1014
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1015
|
+
<h2 class="font-sans font-700 tracking-tight">Switch</h2>
|
|
1016
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">iOS-style toggle. JS wires <code class="font-mono">aria-checked</code> and Space key. CSS provides the full visual baseline.</p>
|
|
1017
|
+
|
|
1018
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Default</p>
|
|
1019
|
+
<div style="display:flex;flex-wrap:wrap;gap:1.5rem;margin-top:0.75rem;align-items:center;">
|
|
1020
|
+
<div style="display:flex;flex-direction:column;align-items:center;gap:0.5rem;">
|
|
1021
|
+
<button class="pp-switch" role="switch" aria-checked="false" aria-label="Notifications off"></button>
|
|
1022
|
+
<span class="font-sans text-xs" style="color:#71717a;">Off</span>
|
|
1023
|
+
</div>
|
|
1024
|
+
<div style="display:flex;flex-direction:column;align-items:center;gap:0.5rem;">
|
|
1025
|
+
<button class="pp-switch" role="switch" aria-checked="true" aria-label="Notifications on"></button>
|
|
1026
|
+
<span class="font-sans text-xs" style="color:#71717a;">On</span>
|
|
1027
|
+
</div>
|
|
1028
|
+
</div>
|
|
1029
|
+
|
|
1030
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Sizes</p>
|
|
1031
|
+
<div style="display:flex;flex-wrap:wrap;gap:2rem;margin-top:0.75rem;align-items:center;">
|
|
1032
|
+
<div style="display:flex;flex-direction:column;align-items:center;gap:0.5rem;">
|
|
1033
|
+
<button class="pp-switch pp-switch--sm" role="switch" aria-checked="true" aria-label="Compact mode"></button>
|
|
1034
|
+
<span class="font-sans text-xs" style="color:#71717a;">Small</span>
|
|
1035
|
+
</div>
|
|
1036
|
+
<div style="display:flex;flex-direction:column;align-items:center;gap:0.5rem;">
|
|
1037
|
+
<button class="pp-switch" role="switch" aria-checked="true" aria-label="Default size"></button>
|
|
1038
|
+
<span class="font-sans text-xs" style="color:#71717a;">Default</span>
|
|
1039
|
+
</div>
|
|
1040
|
+
<div style="display:flex;flex-direction:column;align-items:center;gap:0.5rem;">
|
|
1041
|
+
<button class="pp-switch pp-switch--lg" role="switch" aria-checked="true" aria-label="Large mode"></button>
|
|
1042
|
+
<span class="font-sans text-xs" style="color:#71717a;">Large</span>
|
|
1043
|
+
</div>
|
|
1044
|
+
</div>
|
|
1045
|
+
|
|
1046
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">In a settings row</p>
|
|
1047
|
+
<div style="display:flex;flex-direction:column;gap:0;margin-top:0.5rem;border:1px solid var(--pp-neutral-200);border-radius:12px;overflow:hidden;">
|
|
1048
|
+
<label style="display:flex;justify-content:space-between;align-items:center;padding:0.875rem 1rem;border-bottom:1px solid var(--pp-neutral-200);">
|
|
1049
|
+
<span class="font-sans font-500 text-sm" style="color:var(--pp-on-surface);">Push notifications</span>
|
|
1050
|
+
<button class="pp-switch" role="switch" aria-checked="true" aria-label="Push notifications"></button>
|
|
1051
|
+
</label>
|
|
1052
|
+
<label style="display:flex;justify-content:space-between;align-items:center;padding:0.875rem 1rem;border-bottom:1px solid var(--pp-neutral-200);">
|
|
1053
|
+
<span class="font-sans font-500 text-sm" style="color:var(--pp-on-surface);">Email digest</span>
|
|
1054
|
+
<button class="pp-switch" role="switch" aria-checked="false" aria-label="Email digest"></button>
|
|
1055
|
+
</label>
|
|
1056
|
+
<label style="display:flex;justify-content:space-between;align-items:center;padding:0.875rem 1rem;">
|
|
1057
|
+
<span class="font-sans font-500 text-sm" style="color:var(--pp-on-surface);">Dark mode</span>
|
|
1058
|
+
<button class="pp-switch" role="switch" aria-checked="false" aria-label="Dark mode" data-theme-toggle></button>
|
|
1059
|
+
</label>
|
|
1060
|
+
</div>
|
|
1061
|
+
</div>
|
|
1062
|
+
</section>
|
|
1063
|
+
|
|
1064
|
+
<!-- Tabs -->
|
|
1065
|
+
<section id="tabs" class="pp-section pp-section--dark">
|
|
1066
|
+
<div class="pp-section__inner">
|
|
1067
|
+
<h2 class="font-sans font-700 tracking-tight" style="color:#fff;">Tabs</h2>
|
|
1068
|
+
|
|
1069
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:rgba(255,255,255,0.6);">Normal (filled primary)</p>
|
|
1070
|
+
<div class="pp-tabs" role="tablist">
|
|
1071
|
+
<button class="pp-tabs__item is-active font-sans" role="tab" aria-selected="true"><i data-lucide="home"></i>Home</button>
|
|
1072
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="star"></i>Starred</button>
|
|
1073
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="settings"></i>Settings</button>
|
|
1074
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="user"></i>Profile</button>
|
|
1075
|
+
</div>
|
|
1076
|
+
|
|
1077
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:rgba(255,255,255,0.6);margin-top:2rem;">Outline</p>
|
|
1078
|
+
<div class="pp-tabs pp-tabs--outline" role="tablist">
|
|
1079
|
+
<button class="pp-tabs__item is-active font-sans" role="tab" aria-selected="true"><i data-lucide="home"></i>Home</button>
|
|
1080
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="star"></i>Starred</button>
|
|
1081
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="settings"></i>Settings</button>
|
|
1082
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="user"></i>Profile</button>
|
|
1083
|
+
</div>
|
|
1084
|
+
|
|
1085
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:rgba(255,255,255,0.6);margin-top:2rem;">Gradient</p>
|
|
1086
|
+
<div class="pp-tabs pp-tabs--gradient" role="tablist">
|
|
1087
|
+
<button class="pp-tabs__item is-active font-sans" role="tab" aria-selected="true"><i data-lucide="zap"></i>Speed</button>
|
|
1088
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="shield"></i>Security</button>
|
|
1089
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="layers"></i>Design</button>
|
|
1090
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="cpu"></i>System</button>
|
|
1091
|
+
</div>
|
|
1092
|
+
|
|
1093
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:rgba(255,255,255,0.6);margin-top:2rem;">Gradient Outline</p>
|
|
1094
|
+
<div class="pp-tabs pp-tabs--gradient-outline" role="tablist">
|
|
1095
|
+
<button class="pp-tabs__item is-active font-sans" role="tab" aria-selected="true"><i data-lucide="zap"></i>Speed</button>
|
|
1096
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="shield"></i>Security</button>
|
|
1097
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="layers"></i>Design</button>
|
|
1098
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="cpu"></i>System</button>
|
|
1099
|
+
</div>
|
|
1100
|
+
|
|
1101
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:rgba(255,255,255,0.6);margin-top:2rem;">Sizes — sm / lg</p>
|
|
1102
|
+
<div class="pp-tabs pp-tabs--sm" role="tablist" style="margin-bottom:1rem;">
|
|
1103
|
+
<button class="pp-tabs__item is-active font-sans" role="tab" aria-selected="true"><i data-lucide="home"></i>Home</button>
|
|
1104
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="search"></i>Search</button>
|
|
1105
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="bell"></i>Alerts</button>
|
|
1106
|
+
</div>
|
|
1107
|
+
<div class="pp-tabs pp-tabs--lg" role="tablist">
|
|
1108
|
+
<button class="pp-tabs__item is-active font-sans" role="tab" aria-selected="true"><i data-lucide="home"></i>Home</button>
|
|
1109
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="search"></i>Search</button>
|
|
1110
|
+
<button class="pp-tabs__item font-sans" role="tab" aria-selected="false"><i data-lucide="bell"></i>Alerts</button>
|
|
1111
|
+
</div>
|
|
1112
|
+
</div>
|
|
1113
|
+
</section>
|
|
1114
|
+
|
|
1115
|
+
<!-- Tables -->
|
|
1116
|
+
<section id="tables" class="pp-section">
|
|
1117
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:1100px;">
|
|
1118
|
+
<h2 class="font-sans font-700 tracking-tight">Tables</h2>
|
|
1119
|
+
|
|
1120
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;">3 columns</p>
|
|
1121
|
+
<table class="pp-table pp-table--cols-3">
|
|
1122
|
+
<tbody>
|
|
1123
|
+
<tr><td>Finish</td><td>Sky Blue</td><td>Midnight</td></tr>
|
|
1124
|
+
<tr><td>Price</td><td>₹119,900</td><td>₹139,900</td></tr>
|
|
1125
|
+
<tr><td>Storage</td><td>256 GB</td><td>512 GB</td></tr>
|
|
1126
|
+
</tbody>
|
|
1127
|
+
</table>
|
|
1128
|
+
|
|
1129
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">4 columns</p>
|
|
1130
|
+
<table class="pp-table pp-table--cols-4">
|
|
1131
|
+
<tbody>
|
|
1132
|
+
<tr><td>Finish</td><td>Sky Blue</td><td>Silver</td><td>Midnight</td></tr>
|
|
1133
|
+
<tr><td>Price</td><td>₹119,900</td><td>₹139,900</td><td>₹159,900</td></tr>
|
|
1134
|
+
<tr><td>Memory</td><td>16 GB</td><td>24 GB</td><td>32 GB</td></tr>
|
|
1135
|
+
<tr><td>Storage</td><td>256 GB</td><td>512 GB</td><td>1 TB</td></tr>
|
|
1136
|
+
</tbody>
|
|
1137
|
+
</table>
|
|
1138
|
+
|
|
1139
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">2 columns</p>
|
|
1140
|
+
<table class="pp-table pp-table--cols-2">
|
|
1141
|
+
<tbody>
|
|
1142
|
+
<tr><td>Chip</td><td>Apple M4</td></tr>
|
|
1143
|
+
<tr><td>Battery</td><td>Up to 18 hours</td></tr>
|
|
1144
|
+
<tr><td>Display</td><td>13.6-inch Liquid Retina</td></tr>
|
|
1145
|
+
<tr><td>Weight</td><td>1.24 kg</td></tr>
|
|
1146
|
+
</tbody>
|
|
1147
|
+
</table>
|
|
1148
|
+
|
|
1149
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dark mode preview</p>
|
|
1150
|
+
<div class="dark" style="margin-top:0.5rem;background:#18181b;border-radius:16px;padding:1.5rem;">
|
|
1151
|
+
<table class="pp-table pp-table--cols-3" style="width:100%;">
|
|
1152
|
+
<thead><tr><th class="font-sans font-600">Spec</th><th class="font-sans font-600">MacBook Air</th><th class="font-sans font-600">MacBook Pro</th></tr></thead>
|
|
1153
|
+
<tbody>
|
|
1154
|
+
<tr><td>Chip</td><td>M3</td><td>M4 Pro</td></tr>
|
|
1155
|
+
<tr><td>RAM</td><td>8 GB</td><td>24 GB</td></tr>
|
|
1156
|
+
<tr><td>Storage</td><td>256 GB</td><td>512 GB</td></tr>
|
|
1157
|
+
<tr><td>Price</td><td>₹99,900</td><td>₹199,900</td></tr>
|
|
1158
|
+
</tbody>
|
|
1159
|
+
</table>
|
|
1160
|
+
</div>
|
|
1161
|
+
</div>
|
|
1162
|
+
</section>
|
|
1163
|
+
|
|
1164
|
+
<!-- Toast -->
|
|
1165
|
+
<section id="toasts" class="pp-section pp-section--muted">
|
|
1166
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1167
|
+
<h2 class="font-sans font-700 tracking-tight">Toast</h2>
|
|
1168
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">Auto-dismissing notification toasts. <code class="font-mono">ppToast.show()</code> creates and injects them on demand.</p>
|
|
1169
|
+
|
|
1170
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Trigger examples</p>
|
|
1171
|
+
<div style="display:flex;flex-wrap:wrap;gap:0.75rem;margin-top:0.75rem;">
|
|
1172
|
+
<button class="pp-button font-sans" onclick="ppToast.show({ message: 'Changes saved successfully.', variant: 'success' })">
|
|
1173
|
+
Success toast
|
|
1174
|
+
</button>
|
|
1175
|
+
<button class="pp-button--outline pp-button--error font-sans" onclick="ppToast.show({ message: 'Network error — please retry.', title: 'Connection failed', variant: 'error', duration: 6000 })">
|
|
1176
|
+
Error toast
|
|
1177
|
+
</button>
|
|
1178
|
+
<button class="pp-button--outline font-sans" onclick="ppToast.show({ message: 'Review required before publishing.', variant: 'warning' })">
|
|
1179
|
+
Warning toast
|
|
1180
|
+
</button>
|
|
1181
|
+
<button class="pp-button--outline font-sans" onclick="ppToast.show({ message: 'v0.5.0 is now available.', title: 'Update', variant: 'info', position: 'bottom-center' })">
|
|
1182
|
+
Info (bottom)
|
|
1183
|
+
</button>
|
|
1184
|
+
<button class="pp-button--ghost font-sans" onclick="ppToast.show({ message: 'Action completed.', variant: 'neutral' })">
|
|
1185
|
+
Neutral toast
|
|
1186
|
+
</button>
|
|
1187
|
+
</div>
|
|
1188
|
+
|
|
1189
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Positions</p>
|
|
1190
|
+
<div style="display:flex;flex-wrap:wrap;gap:0.5rem;margin-top:0.5rem;">
|
|
1191
|
+
<code class="font-mono text-xs" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">top-right</code>
|
|
1192
|
+
<code class="font-mono text-xs" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">top-left</code>
|
|
1193
|
+
<code class="font-mono text-xs" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">top-center</code>
|
|
1194
|
+
<code class="font-mono text-xs" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">bottom-right</code>
|
|
1195
|
+
<code class="font-mono text-xs" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">bottom-left</code>
|
|
1196
|
+
<code class="font-mono text-xs" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">bottom-center</code>
|
|
1197
|
+
</div>
|
|
1198
|
+
</div>
|
|
1199
|
+
</section>
|
|
1200
|
+
|
|
1201
|
+
<!-- Tooltip -->
|
|
1202
|
+
<section id="tooltips" class="pp-section">
|
|
1203
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1204
|
+
<h2 class="font-sans font-700 tracking-tight">Tooltip</h2>
|
|
1205
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">CSS-only. Shows on <code class="font-mono">:hover</code> and <code class="font-mono">:focus-within</code> — no JavaScript required. Four placements.</p>
|
|
1206
|
+
|
|
1207
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Placements</p>
|
|
1208
|
+
<div style="display:flex;flex-wrap:wrap;gap:3rem;margin-top:2.5rem;padding-bottom:2rem;align-items:center;justify-content:flex-start;">
|
|
1209
|
+
<span class="pp-tooltip">
|
|
1210
|
+
<button class="pp-button--outline font-sans">Top (default)</button>
|
|
1211
|
+
<span class="pp-tooltip__content" role="tooltip">Default placement</span>
|
|
1212
|
+
</span>
|
|
1213
|
+
<span class="pp-tooltip">
|
|
1214
|
+
<button class="pp-button--outline font-sans">Bottom</button>
|
|
1215
|
+
<span class="pp-tooltip__content pp-tooltip__content--bottom" role="tooltip">Shown below</span>
|
|
1216
|
+
</span>
|
|
1217
|
+
<span class="pp-tooltip">
|
|
1218
|
+
<button class="pp-button--outline font-sans">Left</button>
|
|
1219
|
+
<span class="pp-tooltip__content pp-tooltip__content--left" role="tooltip">Shown left</span>
|
|
1220
|
+
</span>
|
|
1221
|
+
<span class="pp-tooltip">
|
|
1222
|
+
<button class="pp-button--outline font-sans">Right</button>
|
|
1223
|
+
<span class="pp-tooltip__content pp-tooltip__content--right" role="tooltip">Shown right</span>
|
|
1224
|
+
</span>
|
|
1225
|
+
</div>
|
|
1226
|
+
|
|
1227
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:0.5rem;">On icon buttons</p>
|
|
1228
|
+
<div style="display:flex;gap:1.5rem;margin-top:1.25rem;align-items:center;">
|
|
1229
|
+
<span class="pp-tooltip">
|
|
1230
|
+
<button class="pp-button--ghost font-sans" style="padding:0.5rem;" aria-label="Settings">
|
|
1231
|
+
<i data-lucide="settings" aria-hidden="true"></i>
|
|
1232
|
+
</button>
|
|
1233
|
+
<span class="pp-tooltip__content pp-tooltip__content--bottom" role="tooltip">Settings</span>
|
|
1234
|
+
</span>
|
|
1235
|
+
<span class="pp-tooltip">
|
|
1236
|
+
<button class="pp-button--ghost font-sans" style="padding:0.5rem;" aria-label="Notifications">
|
|
1237
|
+
<i data-lucide="bell" aria-hidden="true"></i>
|
|
1238
|
+
</button>
|
|
1239
|
+
<span class="pp-tooltip__content pp-tooltip__content--bottom" role="tooltip">Notifications</span>
|
|
1240
|
+
</span>
|
|
1241
|
+
<span class="pp-tooltip">
|
|
1242
|
+
<button class="pp-button--ghost font-sans" style="padding:0.5rem;" aria-label="Delete">
|
|
1243
|
+
<i data-lucide="trash-2" aria-hidden="true"></i>
|
|
1244
|
+
</button>
|
|
1245
|
+
<span class="pp-tooltip__content pp-tooltip__content--bottom" role="tooltip" style="background:var(--pp-error);">Delete</span>
|
|
1246
|
+
</span>
|
|
1247
|
+
</div>
|
|
1248
|
+
</div>
|
|
1249
|
+
</section>
|
|
1250
|
+
|
|
1251
|
+
<section id="folder" class="pp-section"><div class="pp-section__inner text-left" style="align-items:stretch;max-width:720px;">
|
|
1252
|
+
<h2>Folder</h2><p>A native disclosure for grouped content.</p>
|
|
1253
|
+
<details class="pp-folder"><summary class="pp-folder__header">Project folder</summary><div class="pp-folder__body">Notes, sketches and assets.</div></details>
|
|
1254
|
+
</div></section>
|
|
1255
|
+
|
|
1256
|
+
<section id="code-block" class="pp-section pp-section--muted"><div class="pp-section__inner text-left" style="align-items:stretch;max-width:720px;">
|
|
1257
|
+
<h2>Code block</h2><p>Present selectable, scrollable source code.</p>
|
|
1258
|
+
<figure class="pp-code-block"><figcaption class="pp-code-block__header">hello.css</figcaption><pre><code>color: var(--pp-primary);</code></pre></figure>
|
|
1259
|
+
</div></section>
|
|
1260
|
+
|
|
1261
|
+
<section id="counter" class="pp-section"><div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1262
|
+
<h2>Counter</h2><p>Display a numerical value supplied by your application.</p><output class="pp-counter" aria-label="42 items">42</output>
|
|
1263
|
+
</div></section>
|
|
1264
|
+
|
|
1265
|
+
<section id="status" class="pp-section pp-section--muted"><div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1266
|
+
<h2>Status</h2><p>An inline status with a text label.</p><p class="pp-status" role="status"><span class="pp-status__indicator" aria-hidden="true"></span>Ready</p>
|
|
1267
|
+
</div></section>
|
|
1268
|
+
|
|
1269
|
+
<section id="step-list" class="pp-section"><div class="pp-section__inner text-left" style="align-items:stretch;max-width:720px;">
|
|
1270
|
+
<h2>Step list</h2><p>Show the current stage of a process.</p><ol class="pp-step-list" aria-label="Setup progress"><li>Account</li><li aria-current="step">Preferences</li><li>Finish</li></ol>
|
|
1271
|
+
</div></section>
|
|
1272
|
+
|
|
1273
|
+
<section id="sidebars" class="pp-section pp-section--muted"><div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1274
|
+
<h2>Sidebar</h2><p>A vertical group of navigation links.</p><nav class="pp-sidebar" aria-label="Example sidebar"><a href="#sidebars" aria-current="page">Overview</a><a href="#utilities">Utilities</a></nav>
|
|
1275
|
+
</div></section>
|
|
1276
|
+
|
|
1277
|
+
<section id="pill-navigation" class="pp-section"><div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
1278
|
+
<h2>Pill navigation</h2><p>Navigation links with a compact selected state.</p><nav class="pp-pill-nav" aria-label="Example views"><a href="#pill-navigation" aria-current="page">Navigation</a><a href="#utilities">Helpers</a></nav>
|
|
1279
|
+
</div></section>
|
|
1280
|
+
|
|
1281
|
+
<section id="search-results" class="pp-section pp-section--muted"><div class="pp-section__inner text-left" style="align-items:stretch;max-width:720px;">
|
|
1282
|
+
<h2>Search results</h2><p>Structure results provided by your application.</p><div class="pp-search-results"><ol><li><a href="#utilities">Utility helpers</a><p>Explore the modular helper families.</p></li></ol></div>
|
|
1283
|
+
</div></section>
|
|
1284
|
+
|
|
1285
|
+
<!-- Forms -->
|
|
1286
|
+
<section id="forms" class="pp-section">
|
|
1287
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:860px;">
|
|
1288
|
+
<h2 class="font-sans font-700 tracking-tight">Forms</h2>
|
|
1289
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">Apple HIG-aligned form components. WCAG AA contrast on all tiers. Full ARIA labelling.</p>
|
|
1290
|
+
|
|
1291
|
+
<!-- ── Fieldset & Legend ──────────────────────────────────────────────── -->
|
|
1292
|
+
<h3 id="form-fieldset" class="font-sans font-600 text-xl" style="margin-top:1rem;">Fieldset & Legend</h3>
|
|
1293
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;max-width:600px;">
|
|
1294
|
+
Groups related controls under a named legend. Native <code class="font-mono"><fieldset></code> + <code class="font-mono"><legend></code> gives screen readers automatic group context before announcing each child control.
|
|
1295
|
+
</p>
|
|
1296
|
+
|
|
1297
|
+
<!-- Default -->
|
|
1298
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Default</p>
|
|
1299
|
+
<fieldset class="pp-fieldset">
|
|
1300
|
+
<legend>Notification preferences</legend>
|
|
1301
|
+
<p class="pp-label pp-label--body">Choose how you'd like to be notified about activity.</p>
|
|
1302
|
+
<p class="pp-label pp-label--secondary pp-label--callout">Settings can be changed at any time from your account.</p>
|
|
1303
|
+
</fieldset>
|
|
1304
|
+
|
|
1305
|
+
<!-- Ghost -->
|
|
1306
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Ghost</p>
|
|
1307
|
+
<fieldset class="pp-fieldset pp-fieldset--ghost">
|
|
1308
|
+
<legend>Appearance</legend>
|
|
1309
|
+
<p class="pp-label pp-label--body">Controls how the interface looks across all your devices.</p>
|
|
1310
|
+
<p class="pp-label pp-label--tertiary pp-label--callout">Requires app restart to take full effect.</p>
|
|
1311
|
+
</fieldset>
|
|
1312
|
+
|
|
1313
|
+
<!-- Filled -->
|
|
1314
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Filled</p>
|
|
1315
|
+
<fieldset class="pp-fieldset pp-fieldset--filled">
|
|
1316
|
+
<legend>Privacy</legend>
|
|
1317
|
+
<p class="pp-label pp-label--body">Manage how your data is collected and used.</p>
|
|
1318
|
+
<p class="pp-label pp-label--secondary pp-label--callout">Review our privacy policy for full details.</p>
|
|
1319
|
+
</fieldset>
|
|
1320
|
+
|
|
1321
|
+
<!-- Primary -->
|
|
1322
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Primary</p>
|
|
1323
|
+
<fieldset class="pp-fieldset pp-fieldset--primary">
|
|
1324
|
+
<legend>Account details</legend>
|
|
1325
|
+
<p class="pp-label pp-label--body">Your personal information is used to personalise your experience.</p>
|
|
1326
|
+
</fieldset>
|
|
1327
|
+
|
|
1328
|
+
<!-- Error -->
|
|
1329
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Error</p>
|
|
1330
|
+
<fieldset class="pp-fieldset pp-fieldset--error">
|
|
1331
|
+
<legend>Payment information</legend>
|
|
1332
|
+
<p class="pp-label pp-label--body">One or more fields contain errors. Please review and try again.</p>
|
|
1333
|
+
</fieldset>
|
|
1334
|
+
|
|
1335
|
+
<!-- Disabled -->
|
|
1336
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Disabled</p>
|
|
1337
|
+
<fieldset class="pp-fieldset" disabled aria-disabled="true">
|
|
1338
|
+
<legend>Billing address</legend>
|
|
1339
|
+
<p class="pp-label pp-label--body">Billing address is locked to your verified payment method.</p>
|
|
1340
|
+
</fieldset>
|
|
1341
|
+
|
|
1342
|
+
<!-- Legend sizes -->
|
|
1343
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Legend sizes</p>
|
|
1344
|
+
<div style="display:flex;flex-direction:column;gap:1rem;">
|
|
1345
|
+
<fieldset class="pp-fieldset pp-fieldset--ghost">
|
|
1346
|
+
<legend class="pp-legend pp-legend--sm">Small legend</legend>
|
|
1347
|
+
<p class="pp-label pp-label--callout">Compact group heading for dense layouts.</p>
|
|
1348
|
+
</fieldset>
|
|
1349
|
+
<fieldset class="pp-fieldset pp-fieldset--ghost">
|
|
1350
|
+
<legend>Default legend</legend>
|
|
1351
|
+
<p class="pp-label pp-label--body">Standard group heading.</p>
|
|
1352
|
+
</fieldset>
|
|
1353
|
+
<fieldset class="pp-fieldset pp-fieldset--ghost">
|
|
1354
|
+
<legend class="pp-legend pp-legend--lg">Large legend</legend>
|
|
1355
|
+
<p class="pp-label pp-label--body">Prominent group heading for top-level sections.</p>
|
|
1356
|
+
</fieldset>
|
|
1357
|
+
</div>
|
|
1358
|
+
|
|
1359
|
+
<!-- Inline legend with icon -->
|
|
1360
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Inline legend with icon</p>
|
|
1361
|
+
<fieldset class="pp-fieldset">
|
|
1362
|
+
<legend class="pp-legend pp-legend--inline">
|
|
1363
|
+
<i data-lucide="shield" aria-hidden="true"></i>
|
|
1364
|
+
Security settings
|
|
1365
|
+
</legend>
|
|
1366
|
+
<p class="pp-label pp-label--body">Two-factor authentication and session management.</p>
|
|
1367
|
+
<p class="pp-label pp-label--secondary pp-label--callout">Last updated 3 days ago.</p>
|
|
1368
|
+
</fieldset>
|
|
1369
|
+
|
|
1370
|
+
<!-- Usage table -->
|
|
1371
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Usage</p>
|
|
1372
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1373
|
+
<thead>
|
|
1374
|
+
<tr><th class="font-sans font-600">Class</th><th class="font-sans font-600">What it does</th></tr>
|
|
1375
|
+
</thead>
|
|
1376
|
+
<tbody>
|
|
1377
|
+
<tr><td><code class="font-mono">.pp-fieldset</code></td><td>Base group — white bg, border, 12px radius</td></tr>
|
|
1378
|
+
<tr><td><code class="font-mono">.pp-fieldset--ghost</code></td><td>Transparent border, neutral-50 background</td></tr>
|
|
1379
|
+
<tr><td><code class="font-mono">.pp-fieldset--filled</code></td><td>Neutral-100 tinted surface</td></tr>
|
|
1380
|
+
<tr><td><code class="font-mono">.pp-fieldset--primary</code></td><td>Primary accent border + glow</td></tr>
|
|
1381
|
+
<tr><td><code class="font-mono">.pp-fieldset--error</code></td><td>Error border + glow, legend turns red</td></tr>
|
|
1382
|
+
<tr><td><code class="font-mono">disabled / aria-disabled</code></td><td>Mutes entire group, blocks interaction</td></tr>
|
|
1383
|
+
<tr><td><code class="font-mono">.pp-legend--sm</code></td><td>Compact legend — xs, uppercase</td></tr>
|
|
1384
|
+
<tr><td><code class="font-mono">.pp-legend--lg</code></td><td>Large legend — base size, bold, no uppercase</td></tr>
|
|
1385
|
+
<tr><td><code class="font-mono">.pp-legend--inline</code></td><td>Flex row for icon + legend text pairing</td></tr>
|
|
1386
|
+
</tbody>
|
|
1387
|
+
</table>
|
|
1388
|
+
|
|
1389
|
+
<!-- ── Form Instructions ──────────────────────────────────────────────── -->
|
|
1390
|
+
<h3 id="form-instructions" class="font-sans font-600 text-xl" style="margin-top:2rem;">Form Instructions</h3>
|
|
1391
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;max-width:600px;">
|
|
1392
|
+
Place overall instructions <strong>before</strong> the <code class="font-mono"><form></code> element so screen readers announce them before switching to Forms Mode. Field-level hints use <code class="font-mono">aria-describedby</code> and stay inside the form.
|
|
1393
|
+
</p>
|
|
1394
|
+
|
|
1395
|
+
<!-- Pre-form instructions — default -->
|
|
1396
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Default (primary)</p>
|
|
1397
|
+
<div class="pp-form-instructions" role="note" aria-label="Form completion instructions">
|
|
1398
|
+
<p class="pp-form-instructions__title">Before you begin</p>
|
|
1399
|
+
<ul class="pp-form-instructions__list">
|
|
1400
|
+
<li class="pp-form-instructions__item">Fields marked <abbr aria-label="required" title="required">*</abbr> are required.</li>
|
|
1401
|
+
<li class="pp-form-instructions__item">Dates must be entered as <code class="font-mono">DD/MM/YYYY</code>.</li>
|
|
1402
|
+
<li class="pp-form-instructions__item">Passwords must be at least 8 characters.</li>
|
|
1403
|
+
<li class="pp-form-instructions__item">Extra guidance appears directly below each field.</li>
|
|
1404
|
+
</ul>
|
|
1405
|
+
</div>
|
|
1406
|
+
|
|
1407
|
+
<!-- Neutral -->
|
|
1408
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Neutral</p>
|
|
1409
|
+
<div class="pp-form-instructions pp-form-instructions--neutral" role="note" aria-label="Form information">
|
|
1410
|
+
<p class="pp-form-instructions__title">Information</p>
|
|
1411
|
+
<ul class="pp-form-instructions__list">
|
|
1412
|
+
<li class="pp-form-instructions__item">All changes are saved automatically.</li>
|
|
1413
|
+
<li class="pp-form-instructions__item">You can return to this form at any time.</li>
|
|
1414
|
+
</ul>
|
|
1415
|
+
</div>
|
|
1416
|
+
|
|
1417
|
+
<!-- Warning -->
|
|
1418
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Warning</p>
|
|
1419
|
+
<div class="pp-form-instructions pp-form-instructions--warning" role="note" aria-label="Form warning">
|
|
1420
|
+
<p class="pp-form-instructions__title">Review carefully</p>
|
|
1421
|
+
<ul class="pp-form-instructions__list">
|
|
1422
|
+
<li class="pp-form-instructions__item">Submitted details cannot be edited for 30 days.</li>
|
|
1423
|
+
<li class="pp-form-instructions__item">Ensure your contact information is correct before submitting.</li>
|
|
1424
|
+
</ul>
|
|
1425
|
+
</div>
|
|
1426
|
+
|
|
1427
|
+
<!-- Error -->
|
|
1428
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Error</p>
|
|
1429
|
+
<div class="pp-form-instructions pp-form-instructions--error" role="alert" aria-label="Form errors">
|
|
1430
|
+
<p class="pp-form-instructions__title">Please fix the following errors</p>
|
|
1431
|
+
<ul class="pp-form-instructions__list">
|
|
1432
|
+
<li class="pp-form-instructions__item">Email address is not valid.</li>
|
|
1433
|
+
<li class="pp-form-instructions__item">Password must contain at least one number.</li>
|
|
1434
|
+
</ul>
|
|
1435
|
+
</div>
|
|
1436
|
+
|
|
1437
|
+
<!-- In-form hint + required note -->
|
|
1438
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">In-form hint & required note</p>
|
|
1439
|
+
<p class="pp-form-required-note font-sans">
|
|
1440
|
+
Fields marked <abbr aria-label="required" title="required">*</abbr> are required.
|
|
1441
|
+
</p>
|
|
1442
|
+
<p class="pp-form-hint">
|
|
1443
|
+
<i data-lucide="info" aria-hidden="true"></i>
|
|
1444
|
+
Your data is encrypted in transit and never shared with third parties.
|
|
1445
|
+
</p>
|
|
1446
|
+
|
|
1447
|
+
<!-- Usage table -->
|
|
1448
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Usage</p>
|
|
1449
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1450
|
+
<thead>
|
|
1451
|
+
<tr><th class="font-sans font-600">Class</th><th class="font-sans font-600">What it does</th></tr>
|
|
1452
|
+
</thead>
|
|
1453
|
+
<tbody>
|
|
1454
|
+
<tr><td><code class="font-mono">.pp-form-instructions</code></td><td>Pre-form block with left accent border — place before <code class="font-mono"><form></code></td></tr>
|
|
1455
|
+
<tr><td><code class="font-mono">role="note"</code></td><td>Marks block as supplemental info for AT</td></tr>
|
|
1456
|
+
<tr><td><code class="font-mono">role="alert"</code></td><td>Use instead of note for error summaries — announced immediately</td></tr>
|
|
1457
|
+
<tr><td><code class="font-mono">.pp-form-instructions--neutral</code></td><td>Grey border, neutral background</td></tr>
|
|
1458
|
+
<tr><td><code class="font-mono">.pp-form-instructions--warning</code></td><td>Amber border, amber text</td></tr>
|
|
1459
|
+
<tr><td><code class="font-mono">.pp-form-instructions--error</code></td><td>Red border, primary-dark text</td></tr>
|
|
1460
|
+
<tr><td><code class="font-mono">.pp-form-required-note</code></td><td>Small "* = required" line</td></tr>
|
|
1461
|
+
<tr><td><code class="font-mono">.pp-form-hint</code></td><td>Inline contextual note inside the form</td></tr>
|
|
1462
|
+
</tbody>
|
|
1463
|
+
</table>
|
|
1464
|
+
|
|
1465
|
+
<!-- ── Label ─────────────────────────────────────────────────────────── -->
|
|
1466
|
+
<h3 id="form-label" class="font-sans font-600 text-xl" style="margin-top:2rem;">Label</h3>
|
|
1467
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;max-width:600px;">
|
|
1468
|
+
Static, uneditable text. Four semantic tiers mirror Apple's <code class="font-mono">label</code>, <code class="font-mono">secondaryLabel</code>, <code class="font-mono">tertiaryLabel</code>, and <code class="font-mono">quaternaryLabel</code> system colors.
|
|
1469
|
+
</p>
|
|
1470
|
+
|
|
1471
|
+
<!-- Importance tiers -->
|
|
1472
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Importance tiers</p>
|
|
1473
|
+
<div style="display:flex;flex-direction:column;gap:0.5rem;">
|
|
1474
|
+
<span class="pp-label pp-label--primary">Primary label — main readable content</span>
|
|
1475
|
+
<span class="pp-label pp-label--secondary">Secondary label — subheading or supplemental text</span>
|
|
1476
|
+
<span class="pp-label pp-label--tertiary">Tertiary label — unavailable item or hint text</span>
|
|
1477
|
+
<span class="pp-label pp-label--quaternary">Quaternary label — watermark or placeholder copy</span>
|
|
1478
|
+
</div>
|
|
1479
|
+
|
|
1480
|
+
<!-- Dynamic type scale -->
|
|
1481
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Dynamic Type scale</p>
|
|
1482
|
+
<div style="display:flex;flex-direction:column;gap:0.5rem;">
|
|
1483
|
+
<span class="pp-label pp-label--headline">Headline — semibold 20px</span>
|
|
1484
|
+
<span class="pp-label pp-label--subheadline">Subheadline — medium 16px</span>
|
|
1485
|
+
<span class="pp-label pp-label--body">Body — regular 16px</span>
|
|
1486
|
+
<span class="pp-label pp-label--callout">Callout — regular 14px</span>
|
|
1487
|
+
<span class="pp-label pp-label--footnote">Footnote — regular 12px</span>
|
|
1488
|
+
<span class="pp-label pp-label--caption">Caption — medium 12px uppercase</span>
|
|
1489
|
+
</div>
|
|
1490
|
+
|
|
1491
|
+
<!-- Tiers × scale cross-reference -->
|
|
1492
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Tiers × scale</p>
|
|
1493
|
+
<div style="display:flex;flex-direction:column;gap:0.35rem;">
|
|
1494
|
+
<span class="pp-label pp-label--headline pp-label--primary">Headline / Primary</span>
|
|
1495
|
+
<span class="pp-label pp-label--subheadline pp-label--secondary">Subheadline / Secondary</span>
|
|
1496
|
+
<span class="pp-label pp-label--callout pp-label--tertiary">Callout / Tertiary</span>
|
|
1497
|
+
<span class="pp-label pp-label--caption pp-label--quaternary">Caption / Quaternary</span>
|
|
1498
|
+
</div>
|
|
1499
|
+
|
|
1500
|
+
<!-- Selectable -->
|
|
1501
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Selectable — <span style="text-transform:none;letter-spacing:0;" class="font-400">try highlighting this text</span></p>
|
|
1502
|
+
<span class="pp-label pp-label--selectable">192.168.1.1 — IP addresses, error messages, and codes should be selectable.</span>
|
|
1503
|
+
|
|
1504
|
+
<!-- Truncation -->
|
|
1505
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Truncation</p>
|
|
1506
|
+
<span class="pp-label pp-label--truncate" style="max-width:320px;">This label is far too long to fit in the available space and will be truncated with an ellipsis at the end.</span>
|
|
1507
|
+
|
|
1508
|
+
<!-- Icon + label row -->
|
|
1509
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Icon + label row</p>
|
|
1510
|
+
<div style="display:flex;flex-direction:column;gap:0.5rem;">
|
|
1511
|
+
<span class="pp-label-row pp-label">
|
|
1512
|
+
<i data-lucide="wifi" aria-hidden="true"></i>
|
|
1513
|
+
Wi-Fi Connected
|
|
1514
|
+
</span>
|
|
1515
|
+
<span class="pp-label-row pp-label pp-label--secondary pp-label--callout">
|
|
1516
|
+
<i data-lucide="battery-charging" aria-hidden="true"></i>
|
|
1517
|
+
Charging — 84%
|
|
1518
|
+
</span>
|
|
1519
|
+
<span class="pp-label-row pp-label pp-label--tertiary pp-label--callout">
|
|
1520
|
+
<i data-lucide="bluetooth" aria-hidden="true"></i>
|
|
1521
|
+
Bluetooth unavailable
|
|
1522
|
+
</span>
|
|
1523
|
+
</div>
|
|
1524
|
+
|
|
1525
|
+
<!-- Usage table -->
|
|
1526
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Usage</p>
|
|
1527
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1528
|
+
<thead>
|
|
1529
|
+
<tr><th class="font-sans font-600">Class</th><th class="font-sans font-600">What it does</th></tr>
|
|
1530
|
+
</thead>
|
|
1531
|
+
<tbody>
|
|
1532
|
+
<tr><td><code class="font-mono">.pp-label</code></td><td>Base — primary color, body size, no user-select</td></tr>
|
|
1533
|
+
<tr><td><code class="font-mono">.pp-label--primary</code></td><td>Full-opacity text (default)</td></tr>
|
|
1534
|
+
<tr><td><code class="font-mono">.pp-label--secondary</code></td><td>Reduced-opacity supplemental text</td></tr>
|
|
1535
|
+
<tr><td><code class="font-mono">.pp-label--tertiary</code></td><td>Muted hint / unavailable state text</td></tr>
|
|
1536
|
+
<tr><td><code class="font-mono">.pp-label--quaternary</code></td><td>Watermark / decorative text</td></tr>
|
|
1537
|
+
<tr><td><code class="font-mono">.pp-label--headline</code></td><td>Semibold 20px, tight tracking</td></tr>
|
|
1538
|
+
<tr><td><code class="font-mono">.pp-label--subheadline</code></td><td>Medium 16px</td></tr>
|
|
1539
|
+
<tr><td><code class="font-mono">.pp-label--body</code></td><td>Regular 16px (default size)</td></tr>
|
|
1540
|
+
<tr><td><code class="font-mono">.pp-label--callout</code></td><td>Regular 14px</td></tr>
|
|
1541
|
+
<tr><td><code class="font-mono">.pp-label--footnote</code></td><td>Regular 12px</td></tr>
|
|
1542
|
+
<tr><td><code class="font-mono">.pp-label--caption</code></td><td>Medium 12px uppercase</td></tr>
|
|
1543
|
+
<tr><td><code class="font-mono">.pp-label--selectable</code></td><td>Enables text selection + text cursor</td></tr>
|
|
1544
|
+
<tr><td><code class="font-mono">.pp-label--truncate</code></td><td>Single-line ellipsis overflow</td></tr>
|
|
1545
|
+
<tr><td><code class="font-mono">.pp-label-row</code></td><td>Flex row for icon + label pairing</td></tr>
|
|
1546
|
+
</tbody>
|
|
1547
|
+
</table>
|
|
1548
|
+
|
|
1549
|
+
<!-- ── Text Field ──────────────────────────────────────────────────────── -->
|
|
1550
|
+
<h3 id="form-text-field" class="font-sans font-600 text-xl" style="margin-top:2rem;">Text Field</h3>
|
|
1551
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;max-width:600px;">
|
|
1552
|
+
Labelled <code class="font-mono"><input></code> or <code class="font-mono"><textarea></code> with hint text via <code class="font-mono">aria-describedby</code>, required/optional markers, placeholder, validation states, and icon slots.
|
|
1553
|
+
</p>
|
|
1554
|
+
|
|
1555
|
+
<!-- Basic -->
|
|
1556
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Basic</p>
|
|
1557
|
+
<div class="pp-field" style="max-width:480px;">
|
|
1558
|
+
<label class="pp-field__label" for="tf-basic">Full name</label>
|
|
1559
|
+
<input class="pp-field__input" type="text" id="tf-basic" name="tf-basic" placeholder="e.g. Ada Lovelace" autocomplete="name" />
|
|
1560
|
+
</div>
|
|
1561
|
+
|
|
1562
|
+
<!-- With hint -->
|
|
1563
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">With hint text</p>
|
|
1564
|
+
<div class="pp-field" style="max-width:480px;">
|
|
1565
|
+
<label class="pp-field__label" for="tf-email">Email address</label>
|
|
1566
|
+
<input class="pp-field__input" type="email" id="tf-email" name="tf-email" placeholder="you@example.com" autocomplete="email" aria-describedby="tf-email-hint" />
|
|
1567
|
+
<span class="pp-field__hint" id="tf-email-hint">We'll only use this to send account notifications.</span>
|
|
1568
|
+
</div>
|
|
1569
|
+
|
|
1570
|
+
<!-- Required -->
|
|
1571
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Required field</p>
|
|
1572
|
+
<div class="pp-field" style="max-width:480px;">
|
|
1573
|
+
<label class="pp-field__label" for="tf-required">
|
|
1574
|
+
Password
|
|
1575
|
+
<abbr class="pp-field__required" aria-label="required" title="required"></abbr>
|
|
1576
|
+
</label>
|
|
1577
|
+
<input class="pp-field__input" type="password" id="tf-required" name="tf-required" required aria-required="true" aria-describedby="tf-required-hint" />
|
|
1578
|
+
<span class="pp-field__hint" id="tf-required-hint">At least 8 characters including a number.</span>
|
|
1579
|
+
</div>
|
|
1580
|
+
|
|
1581
|
+
<!-- Optional -->
|
|
1582
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Optional field</p>
|
|
1583
|
+
<div class="pp-field" style="max-width:480px;">
|
|
1584
|
+
<label class="pp-field__label" for="tf-optional">
|
|
1585
|
+
Company
|
|
1586
|
+
<span class="pp-field__optional">optional</span>
|
|
1587
|
+
</label>
|
|
1588
|
+
<input class="pp-field__input" type="text" id="tf-optional" name="tf-optional" placeholder="Your organisation" autocomplete="organization" />
|
|
1589
|
+
</div>
|
|
1590
|
+
|
|
1591
|
+
<!-- With leading icon -->
|
|
1592
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">With icon</p>
|
|
1593
|
+
<div class="pp-field" style="max-width:480px;">
|
|
1594
|
+
<label class="pp-field__label" for="tf-search">Search</label>
|
|
1595
|
+
<div class="pp-field__input-wrap">
|
|
1596
|
+
<span class="pp-field__icon" aria-hidden="true"><i data-lucide="search"></i></span>
|
|
1597
|
+
<input class="pp-field__input" type="search" id="tf-search" name="tf-search" placeholder="Search components…" />
|
|
1598
|
+
</div>
|
|
1599
|
+
</div>
|
|
1600
|
+
|
|
1601
|
+
<!-- Validation — error -->
|
|
1602
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Error state</p>
|
|
1603
|
+
<div class="pp-field pp-field--error" style="max-width:480px;">
|
|
1604
|
+
<label class="pp-field__label" for="tf-error">
|
|
1605
|
+
Expiry date
|
|
1606
|
+
<abbr class="pp-field__required" aria-label="required" title="required"></abbr>
|
|
1607
|
+
</label>
|
|
1608
|
+
<input class="pp-field__input" type="text" id="tf-error" name="tf-error" value="13/50" aria-invalid="true" aria-describedby="tf-error-msg tf-error-hint" />
|
|
1609
|
+
<span class="pp-field__hint" id="tf-error-hint">Enter as MM/YYYY.</span>
|
|
1610
|
+
<span class="pp-field__message" id="tf-error-msg" role="alert">
|
|
1611
|
+
<i data-lucide="circle-x" aria-hidden="true"></i>
|
|
1612
|
+
That date is invalid. Please use the format MM/YYYY.
|
|
1613
|
+
</span>
|
|
1614
|
+
</div>
|
|
1615
|
+
|
|
1616
|
+
<!-- Validation — success -->
|
|
1617
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Success state</p>
|
|
1618
|
+
<div class="pp-field pp-field--success" style="max-width:480px;">
|
|
1619
|
+
<label class="pp-field__label" for="tf-success">Username</label>
|
|
1620
|
+
<input class="pp-field__input" type="text" id="tf-success" name="tf-success" value="ada_lovelace" aria-describedby="tf-success-msg" />
|
|
1621
|
+
<span class="pp-field__message" id="tf-success-msg">
|
|
1622
|
+
<i data-lucide="circle-check" aria-hidden="true"></i>
|
|
1623
|
+
Username is available.
|
|
1624
|
+
</span>
|
|
1625
|
+
</div>
|
|
1626
|
+
|
|
1627
|
+
<!-- Validation — warning -->
|
|
1628
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Warning state</p>
|
|
1629
|
+
<div class="pp-field pp-field--warning" style="max-width:480px;">
|
|
1630
|
+
<label class="pp-field__label" for="tf-warning">Bio</label>
|
|
1631
|
+
<textarea class="pp-field__textarea" id="tf-warning" name="tf-warning" rows="3" aria-describedby="tf-warning-msg tf-warning-count">This is my bio and it is getting close to the character limit now.</textarea>
|
|
1632
|
+
<div style="display:flex;justify-content:space-between;align-items:center;">
|
|
1633
|
+
<span class="pp-field__message" id="tf-warning-msg">
|
|
1634
|
+
<i data-lucide="triangle-alert" aria-hidden="true"></i>
|
|
1635
|
+
Approaching the 100-character limit.
|
|
1636
|
+
</span>
|
|
1637
|
+
<span class="pp-field__count pp-field__count--warn" id="tf-warning-count" aria-live="polite">67 / 100</span>
|
|
1638
|
+
</div>
|
|
1639
|
+
</div>
|
|
1640
|
+
|
|
1641
|
+
<!-- Disabled / Readonly -->
|
|
1642
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Disabled & readonly</p>
|
|
1643
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;">
|
|
1644
|
+
<div class="pp-field">
|
|
1645
|
+
<label class="pp-field__label" for="tf-disabled">Disabled</label>
|
|
1646
|
+
<input class="pp-field__input" type="text" id="tf-disabled" name="tf-disabled" value="Cannot be changed" disabled aria-disabled="true" />
|
|
1647
|
+
</div>
|
|
1648
|
+
<div class="pp-field">
|
|
1649
|
+
<label class="pp-field__label" for="tf-readonly">Read-only</label>
|
|
1650
|
+
<input class="pp-field__input" type="text" id="tf-readonly" name="tf-readonly" value="user@example.com" readonly aria-readonly="true" />
|
|
1651
|
+
</div>
|
|
1652
|
+
</div>
|
|
1653
|
+
|
|
1654
|
+
<!-- Sizes -->
|
|
1655
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Sizes</p>
|
|
1656
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;">
|
|
1657
|
+
<div class="pp-field pp-field--sm">
|
|
1658
|
+
<label class="pp-field__label" for="tf-sm">Small</label>
|
|
1659
|
+
<input class="pp-field__input" type="text" id="tf-sm" name="tf-sm" placeholder="Small input" />
|
|
1660
|
+
</div>
|
|
1661
|
+
<div class="pp-field">
|
|
1662
|
+
<label class="pp-field__label" for="tf-md">Default</label>
|
|
1663
|
+
<input class="pp-field__input" type="text" id="tf-md" name="tf-md" placeholder="Default input" />
|
|
1664
|
+
</div>
|
|
1665
|
+
<div class="pp-field pp-field--lg">
|
|
1666
|
+
<label class="pp-field__label" for="tf-lg">Large</label>
|
|
1667
|
+
<input class="pp-field__input" type="text" id="tf-lg" name="tf-lg" placeholder="Large input" />
|
|
1668
|
+
</div>
|
|
1669
|
+
</div>
|
|
1670
|
+
|
|
1671
|
+
<!-- Usage table -->
|
|
1672
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Usage</p>
|
|
1673
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1674
|
+
<thead>
|
|
1675
|
+
<tr><th class="font-sans font-600">Class / attribute</th><th class="font-sans font-600">What it does</th></tr>
|
|
1676
|
+
</thead>
|
|
1677
|
+
<tbody>
|
|
1678
|
+
<tr><td><code class="font-mono">.pp-field</code></td><td>Flex column wrapper — label, input, hint, message</td></tr>
|
|
1679
|
+
<tr><td><code class="font-mono">.pp-field__label</code></td><td>Visible label row — medium sm text</td></tr>
|
|
1680
|
+
<tr><td><code class="font-mono">.pp-field__required</code></td><td><code class="font-mono"><abbr></code> asterisk with <code class="font-mono">aria-label="required"</code></td></tr>
|
|
1681
|
+
<tr><td><code class="font-mono">.pp-field__optional</code></td><td>Muted "optional" badge</td></tr>
|
|
1682
|
+
<tr><td><code class="font-mono">.pp-field__input</code></td><td>Styled <code class="font-mono"><input></code></td></tr>
|
|
1683
|
+
<tr><td><code class="font-mono">.pp-field__textarea</code></td><td>Styled <code class="font-mono"><textarea></code></td></tr>
|
|
1684
|
+
<tr><td><code class="font-mono">.pp-field__hint</code></td><td>Helper text — wire to input via <code class="font-mono">aria-describedby</code></td></tr>
|
|
1685
|
+
<tr><td><code class="font-mono">.pp-field__message</code></td><td>Validation message row with icon slot</td></tr>
|
|
1686
|
+
<tr><td><code class="font-mono">.pp-field--error</code></td><td>Red border + primary-dark message text</td></tr>
|
|
1687
|
+
<tr><td><code class="font-mono">.pp-field--success</code></td><td>Green border + green-700 message text</td></tr>
|
|
1688
|
+
<tr><td><code class="font-mono">.pp-field--warning</code></td><td>Amber border + amber-800 message text</td></tr>
|
|
1689
|
+
<tr><td><code class="font-mono">.pp-field--sm / --lg</code></td><td>Compact / large size variants</td></tr>
|
|
1690
|
+
<tr><td><code class="font-mono">.pp-field__input-wrap</code></td><td>Wrapper for icon + input pairing</td></tr>
|
|
1691
|
+
<tr><td><code class="font-mono">.pp-field__icon</code></td><td>Leading icon — <code class="font-mono">--trail</code> modifier for trailing</td></tr>
|
|
1692
|
+
<tr><td><code class="font-mono">.pp-field__count</code></td><td>Character counter — <code class="font-mono">--warn</code> / <code class="font-mono">--over</code> states</td></tr>
|
|
1693
|
+
</tbody>
|
|
1694
|
+
</table>
|
|
1695
|
+
|
|
1696
|
+
<!-- ── Validation ─────────────────────────────────────────────────────── -->
|
|
1697
|
+
<h3 id="form-validation" class="font-sans font-600 text-xl" style="margin-top:2rem;">Validation</h3>
|
|
1698
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;max-width:600px;">
|
|
1699
|
+
All visual states are driven by CSS classes and ARIA attributes — the optional <code class="font-mono">ppValidation</code> JS API just toggles them. You can drive the same states from your own code without loading our shim.
|
|
1700
|
+
</p>
|
|
1701
|
+
|
|
1702
|
+
<!-- Validation summary -->
|
|
1703
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Validation summary</p>
|
|
1704
|
+
<div class="pp-validation-summary is-visible" role="alert" aria-label="Form errors" id="demo-summary">
|
|
1705
|
+
<p class="pp-validation-summary__title">
|
|
1706
|
+
<i data-lucide="circle-x" aria-hidden="true"></i>
|
|
1707
|
+
2 errors prevented this form from being submitted
|
|
1708
|
+
</p>
|
|
1709
|
+
<ul class="pp-validation-summary__list">
|
|
1710
|
+
<li class="pp-validation-summary__item"><a href="#vs-email">Email address is not valid.</a></li>
|
|
1711
|
+
<li class="pp-validation-summary__item"><a href="#vs-password">Password must be at least 8 characters.</a></li>
|
|
1712
|
+
</ul>
|
|
1713
|
+
</div>
|
|
1714
|
+
|
|
1715
|
+
<!-- Fields linked from summary -->
|
|
1716
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;margin-top:1rem;">
|
|
1717
|
+
<div class="pp-field pp-field--error">
|
|
1718
|
+
<label class="pp-field__label" for="vs-email">
|
|
1719
|
+
Email address
|
|
1720
|
+
<abbr class="pp-field__required" aria-label="required" title="required"></abbr>
|
|
1721
|
+
</label>
|
|
1722
|
+
<input class="pp-field__input" type="email" id="vs-email" name="vs-email" value="not-an-email" aria-invalid="true" aria-describedby="vs-email-msg" />
|
|
1723
|
+
<span class="pp-field__message" id="vs-email-msg" role="alert">
|
|
1724
|
+
<i data-lucide="circle-x" aria-hidden="true"></i>
|
|
1725
|
+
Enter a valid email address, e.g. you@example.com.
|
|
1726
|
+
</span>
|
|
1727
|
+
</div>
|
|
1728
|
+
<div class="pp-field pp-field--error">
|
|
1729
|
+
<label class="pp-field__label" for="vs-password">
|
|
1730
|
+
Password
|
|
1731
|
+
<abbr class="pp-field__required" aria-label="required" title="required"></abbr>
|
|
1732
|
+
</label>
|
|
1733
|
+
<input class="pp-field__input" type="password" id="vs-password" name="vs-password" value="abc" aria-invalid="true" aria-describedby="vs-password-hint vs-password-msg" />
|
|
1734
|
+
<span class="pp-field__hint" id="vs-password-hint">At least 8 characters including a number.</span>
|
|
1735
|
+
<span class="pp-field__message" id="vs-password-msg" role="alert">
|
|
1736
|
+
<i data-lucide="circle-x" aria-hidden="true"></i>
|
|
1737
|
+
Password is too short.
|
|
1738
|
+
</span>
|
|
1739
|
+
</div>
|
|
1740
|
+
</div>
|
|
1741
|
+
|
|
1742
|
+
<!-- Native pseudo-class validation -->
|
|
1743
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Native HTML5 validation (<code class="font-mono">.pp-field--validate</code>)</p>
|
|
1744
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">Add <code class="font-mono">.pp-field--validate</code> to opt in to <code class="font-mono">:valid</code> / <code class="font-mono">:invalid</code> pseudo-class styling. Browser handles validation; CSS handles the visual.</p>
|
|
1745
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;margin-top:0.5rem;">
|
|
1746
|
+
<div class="pp-field pp-field--validate">
|
|
1747
|
+
<label class="pp-field__label" for="nv-email">
|
|
1748
|
+
Email
|
|
1749
|
+
<abbr class="pp-field__required" aria-label="required" title="required"></abbr>
|
|
1750
|
+
</label>
|
|
1751
|
+
<input class="pp-field__input" type="email" id="nv-email" name="nv-email" required aria-required="true" placeholder="Type an invalid email to see the state" />
|
|
1752
|
+
<span class="pp-field__hint">Try typing something that isn't an email address.</span>
|
|
1753
|
+
</div>
|
|
1754
|
+
<div class="pp-field pp-field--validate">
|
|
1755
|
+
<label class="pp-field__label" for="nv-pattern">
|
|
1756
|
+
German licence plate
|
|
1757
|
+
</label>
|
|
1758
|
+
<input class="pp-field__input" type="text" id="nv-pattern" name="nv-pattern"
|
|
1759
|
+
pattern="[A-ZÖÄÜ]{1,3} [A-Z]{2,4} [0-9]{1,4}"
|
|
1760
|
+
placeholder="e.g. B AB 1234"
|
|
1761
|
+
aria-describedby="nv-pattern-hint" />
|
|
1762
|
+
<span class="pp-field__hint" id="nv-pattern-hint">Format: 1–3 city letters, space, 2–4 letters, space, 1–4 digits.</span>
|
|
1763
|
+
</div>
|
|
1764
|
+
</div>
|
|
1765
|
+
|
|
1766
|
+
<!-- Confirmation checkbox -->
|
|
1767
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Confirmation checkbox (WCAG 3.3.4)</p>
|
|
1768
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;">
|
|
1769
|
+
<label class="pp-confirm">
|
|
1770
|
+
<input class="pp-confirm__input" type="checkbox" id="confirm-transfer" aria-describedby="confirm-transfer-desc" />
|
|
1771
|
+
<span class="pp-confirm__label" id="confirm-transfer-desc">
|
|
1772
|
+
I have checked that the amount I wish to transfer is correct and understand this action cannot be undone.
|
|
1773
|
+
</span>
|
|
1774
|
+
</label>
|
|
1775
|
+
<button class="pp-button font-sans pp-submit--gated" type="button">Confirm transfer</button>
|
|
1776
|
+
</div>
|
|
1777
|
+
|
|
1778
|
+
<!-- Destructive confirmation -->
|
|
1779
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Destructive confirmation</p>
|
|
1780
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;">
|
|
1781
|
+
<label class="pp-confirm pp-confirm--destructive">
|
|
1782
|
+
<input class="pp-confirm__input" type="checkbox" id="confirm-delete" aria-describedby="confirm-delete-desc" />
|
|
1783
|
+
<span class="pp-confirm__label" id="confirm-delete-desc">
|
|
1784
|
+
I understand that deleting my account is permanent and all my data will be removed.
|
|
1785
|
+
</span>
|
|
1786
|
+
</label>
|
|
1787
|
+
<button class="pp-button--error font-sans pp-submit--gated" type="button">Delete account</button>
|
|
1788
|
+
</div>
|
|
1789
|
+
|
|
1790
|
+
<!-- ppValidation API demo -->
|
|
1791
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Live API demo — <code class="font-mono">ppValidation</code></p>
|
|
1792
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;max-width:600px;">The buttons below call <code class="font-mono">ppValidation.setError()</code>, <code class="font-mono">ppValidation.setSuccess()</code>, and <code class="font-mono">ppValidation.clearError()</code> on the field beneath them.</p>
|
|
1793
|
+
<div style="display:flex;flex-direction:column;gap:1rem;max-width:480px;">
|
|
1794
|
+
<div class="pp-field" id="api-field-wrap">
|
|
1795
|
+
<label class="pp-field__label" for="api-field">Username</label>
|
|
1796
|
+
<input class="pp-field__input" type="text" id="api-field" name="api-field" value="ada_lovelace" aria-describedby="api-field-hint" />
|
|
1797
|
+
<span class="pp-field__hint" id="api-field-hint">3–20 characters, letters and underscores only.</span>
|
|
1798
|
+
</div>
|
|
1799
|
+
<div class="row" style="justify-content:flex-start;">
|
|
1800
|
+
<button class="pp-button--error font-sans font-400" type="button"
|
|
1801
|
+
onclick="ppValidation.setError(document.getElementById('api-field'), 'Username already taken.')">
|
|
1802
|
+
Set error
|
|
1803
|
+
</button>
|
|
1804
|
+
<button class="pp-button--success font-sans font-400" type="button"
|
|
1805
|
+
onclick="ppValidation.setSuccess(document.getElementById('api-field'), 'Username is available.')">
|
|
1806
|
+
Set success
|
|
1807
|
+
</button>
|
|
1808
|
+
<button class="pp-button--ghost font-sans font-400" type="button"
|
|
1809
|
+
onclick="ppValidation.clearError(document.getElementById('api-field'))">
|
|
1810
|
+
Clear
|
|
1811
|
+
</button>
|
|
1812
|
+
</div>
|
|
1813
|
+
</div>
|
|
1814
|
+
|
|
1815
|
+
<!-- Usage table -->
|
|
1816
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">CSS classes</p>
|
|
1817
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1818
|
+
<thead>
|
|
1819
|
+
<tr><th class="font-sans font-600">Class / attribute</th><th class="font-sans font-600">What it does</th></tr>
|
|
1820
|
+
</thead>
|
|
1821
|
+
<tbody>
|
|
1822
|
+
<tr><td><code class="font-mono">.pp-field--validate</code></td><td>Opt-in to <code class="font-mono">:valid</code> / <code class="font-mono">:invalid</code> pseudo-class styling</td></tr>
|
|
1823
|
+
<tr><td><code class="font-mono">aria-invalid="true"</code></td><td>Red border — works without any class</td></tr>
|
|
1824
|
+
<tr><td><code class="font-mono">aria-invalid="false"</code></td><td>Green border — works without any class</td></tr>
|
|
1825
|
+
<tr><td><code class="font-mono">.pp-field--validating</code></td><td>Spinner on input — async check in progress</td></tr>
|
|
1826
|
+
<tr><td><code class="font-mono">.pp-validation-summary</code></td><td>Pre-form error list with <code class="font-mono">role="alert"</code></td></tr>
|
|
1827
|
+
<tr><td><code class="font-mono">.is-visible</code></td><td>Shows the summary (hidden by default)</td></tr>
|
|
1828
|
+
<tr><td><code class="font-mono">.pp-confirm</code></td><td>Confirmation checkbox wrapper</td></tr>
|
|
1829
|
+
<tr><td><code class="font-mono">.pp-confirm--destructive</code></td><td>Red tint for irreversible actions</td></tr>
|
|
1830
|
+
<tr><td><code class="font-mono">.pp-submit--gated</code></td><td>Disables submit until confirmation checkbox is checked (CSS <code class="font-mono">:has()</code>)</td></tr>
|
|
1831
|
+
</tbody>
|
|
1832
|
+
</table>
|
|
1833
|
+
|
|
1834
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">JS API — <code class="font-mono">ppValidation</code></p>
|
|
1835
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1836
|
+
<thead>
|
|
1837
|
+
<tr><th class="font-sans font-600">Method</th><th class="font-sans font-600">What it does</th></tr>
|
|
1838
|
+
</thead>
|
|
1839
|
+
<tbody>
|
|
1840
|
+
<tr><td><code class="font-mono">setError(input, message)</code></td><td>Adds <code class="font-mono">.pp-field--error</code>, sets <code class="font-mono">aria-invalid="true"</code>, writes message</td></tr>
|
|
1841
|
+
<tr><td><code class="font-mono">clearError(input)</code></td><td>Removes error state, sets <code class="font-mono">aria-invalid="false"</code></td></tr>
|
|
1842
|
+
<tr><td><code class="font-mono">setSuccess(input, message?)</code></td><td>Adds <code class="font-mono">.pp-field--success</code>, sets <code class="font-mono">aria-invalid="false"</code></td></tr>
|
|
1843
|
+
<tr><td><code class="font-mono">setValidating(input)</code></td><td>Adds <code class="font-mono">.pp-field--validating</code>, removes <code class="font-mono">aria-invalid</code></td></tr>
|
|
1844
|
+
<tr><td><code class="font-mono">setSummary(errors[], summaryEl)</code></td><td>Populates summary, shows it, moves focus to it</td></tr>
|
|
1845
|
+
</tbody>
|
|
1846
|
+
</table>
|
|
1847
|
+
|
|
1848
|
+
<!-- ── Dark mode preview ──────────────────────────────────────────────── -->
|
|
1849
|
+
<h3 class="font-sans font-600 text-xl" style="margin-top:2rem;">Dark mode preview</h3>
|
|
1850
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">All form components respond to a <code class="font-mono">.dark</code> ancestor — no extra classes required.</p>
|
|
1851
|
+
<div class="dark" style="margin-top:1rem;background:#18181b;border-radius:16px;padding:2rem;display:flex;flex-direction:column;gap:1.5rem;">
|
|
1852
|
+
|
|
1853
|
+
<fieldset class="pp-fieldset">
|
|
1854
|
+
<legend>Account settings</legend>
|
|
1855
|
+
<div class="pp-field">
|
|
1856
|
+
<label class="pp-field__label font-sans" for="dm-name">Display name <abbr class="pp-field__required" title="required"></abbr></label>
|
|
1857
|
+
<div class="pp-field__input-wrap">
|
|
1858
|
+
<span class="pp-field__icon"><i data-lucide="user" aria-hidden="true"></i></span>
|
|
1859
|
+
<input class="pp-field__input font-sans" type="text" id="dm-name" placeholder="e.g. Debaditya" />
|
|
1860
|
+
</div>
|
|
1861
|
+
<span class="pp-field__hint">This is what others will see on your profile.</span>
|
|
1862
|
+
</div>
|
|
1863
|
+
<div class="pp-field pp-field--error">
|
|
1864
|
+
<label class="pp-field__label font-sans" for="dm-email">Email <abbr class="pp-field__required" title="required"></abbr></label>
|
|
1865
|
+
<input class="pp-field__input font-sans" type="email" id="dm-email" placeholder="you@example.com" aria-invalid="true" aria-describedby="dm-email-err" />
|
|
1866
|
+
<span class="pp-field__message" id="dm-email-err"><i data-lucide="circle-x" aria-hidden="true"></i> Enter a valid email address.</span>
|
|
1867
|
+
</div>
|
|
1868
|
+
<div class="pp-field pp-field--success">
|
|
1869
|
+
<label class="pp-field__label font-sans" for="dm-handle">Username</label>
|
|
1870
|
+
<input class="pp-field__input font-sans" type="text" id="dm-handle" value="@debaditya" aria-invalid="false" />
|
|
1871
|
+
<span class="pp-field__message"><i data-lucide="circle-check" aria-hidden="true"></i> Username is available.</span>
|
|
1872
|
+
</div>
|
|
1873
|
+
<div class="pp-field">
|
|
1874
|
+
<label class="pp-field__label font-sans" for="dm-bio">Bio <span class="pp-field__optional">(optional)</span></label>
|
|
1875
|
+
<textarea class="pp-field__textarea font-sans" id="dm-bio" rows="3" placeholder="Tell us a bit about yourself…"></textarea>
|
|
1876
|
+
</div>
|
|
1877
|
+
</fieldset>
|
|
1878
|
+
|
|
1879
|
+
<div class="pp-alert pp-alert--info font-sans" role="note">
|
|
1880
|
+
<span class="pp-alert__icon"><i data-lucide="info" aria-hidden="true"></i></span>
|
|
1881
|
+
<div class="pp-alert__body"><p class="pp-alert__title">Dark form alert</p><p class="pp-alert__message">Token overrides cascade from the <code class="font-mono">.dark</code> ancestor — no modifier classes needed.</p></div>
|
|
1882
|
+
</div>
|
|
1883
|
+
|
|
1884
|
+
<select class="font-sans">
|
|
1885
|
+
<option>Notification frequency</option>
|
|
1886
|
+
<option>Immediately</option>
|
|
1887
|
+
<option>Daily digest</option>
|
|
1888
|
+
<option>Weekly</option>
|
|
1889
|
+
</select>
|
|
1890
|
+
</div>
|
|
1891
|
+
|
|
1892
|
+
<h3 id="form-duration" class="font-sans font-600 text-xl">Duration</h3>
|
|
1893
|
+
<p>Enter hours and minutes with native number controls.</p>
|
|
1894
|
+
<fieldset class="pp-duration"><legend>Duration</legend><label>Hours <input type="number" min="0" value="1"></label><label>Minutes <input type="number" min="0" max="59" value="30"></label></fieldset>
|
|
1895
|
+
|
|
1896
|
+
<h3 id="form-otp" class="font-sans font-600 text-xl">Verification code</h3>
|
|
1897
|
+
<p>A single input supports keyboard entry and one-time-code autofill.</p>
|
|
1898
|
+
<div><label for="demo-otp">Verification code</label><input class="pp-otp" id="demo-otp" inputmode="numeric" autocomplete="one-time-code"></div>
|
|
1899
|
+
|
|
1900
|
+
<h3 id="form-tasks" class="font-sans font-600 text-xl">Task list</h3>
|
|
1901
|
+
<p>A list of native checkboxes; your application can save their values.</p>
|
|
1902
|
+
<ul class="pp-task-list"><li><label><input type="checkbox"><span>Make a plan</span></label></li><li><label><input type="checkbox"><span>Build something</span></label></li></ul>
|
|
1903
|
+
|
|
1904
|
+
<h3 id="form-prompt" class="font-sans font-600 text-xl">Prompt</h3>
|
|
1905
|
+
<p>A labelled text area for a request; connect it to your own form or application.</p>
|
|
1906
|
+
<div class="pp-prompt"><label for="demo-prompt">Your request</label><textarea id="demo-prompt" placeholder="Write a prompt"></textarea><div class="pp-prompt__actions"><span>Connect your own application logic.</span></div></div>
|
|
1907
|
+
</div>
|
|
1908
|
+
</section>
|
|
1909
|
+
|
|
1910
|
+
<!-- Utilities -->
|
|
1911
|
+
<section id="utilities" class="pp-section">
|
|
1912
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:860px;">
|
|
1913
|
+
<h2 class="font-sans font-700 tracking-tight">Utilities</h2>
|
|
1914
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;">Low-level single-purpose classes for spacing, layout, display, and visibility. No JavaScript.</p>
|
|
1915
|
+
<p class="u-text-muted u-break-words">Modular helpers for logical spacing, color, flex, typography, layout, and visibility can each be imported separately.</p>
|
|
1916
|
+
|
|
1917
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:1.5rem;">Display</p>
|
|
1918
|
+
<div class="row" style="justify-content:flex-start;flex-wrap:wrap;gap:0.5rem;margin-top:0.5rem;">
|
|
1919
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-block</code>
|
|
1920
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-inline</code>
|
|
1921
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-inline-block</code>
|
|
1922
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-flex</code>
|
|
1923
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-inline-flex</code>
|
|
1924
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-grid</code>
|
|
1925
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-inline-grid</code>
|
|
1926
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-none</code>
|
|
1927
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.d-contents</code>
|
|
1928
|
+
</div>
|
|
1929
|
+
|
|
1930
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Visibility & screen-reader</p>
|
|
1931
|
+
<div class="row" style="justify-content:flex-start;gap:0.5rem;margin-top:0.5rem;">
|
|
1932
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.visible</code>
|
|
1933
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.invisible</code>
|
|
1934
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.sr-only</code>
|
|
1935
|
+
<code class="font-mono" style="background:var(--pp-neutral-100);color:var(--pp-on-surface);padding:0.25rem 0.5rem;border-radius:6px;">.not-sr-only</code>
|
|
1936
|
+
</div>
|
|
1937
|
+
|
|
1938
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Spacing — margin & padding</p>
|
|
1939
|
+
<p class="font-sans font-400 text-sm" style="color:#71717a;margin-top:0.25rem;">Pattern: <code class="font-mono">{m|p}{side?}-{key}</code>. Side: <code class="font-mono">t b l r x y</code>. Key: <code class="font-mono">0 1 2 3 4 5 6 8 10 12 16 20 24 32</code>. Margin also takes <code class="font-mono">auto</code>.</p>
|
|
1940
|
+
<div style="display:flex;flex-direction:column;gap:0.75rem;margin-top:1rem;">
|
|
1941
|
+
<div style="display:flex;align-items:center;gap:1rem;">
|
|
1942
|
+
<div class="d-flex items-center justify-center" style="background:var(--pp-neutral-200);border-radius:6px;min-width:120px;min-height:40px;">
|
|
1943
|
+
<div class="p-4" style="background:#e90111;border-radius:4px;color:#fff;font-size:0.75rem;font-family:var(--font-mono, monospace);">.p-4</div>
|
|
1944
|
+
</div>
|
|
1945
|
+
<div class="d-flex items-center justify-center" style="background:var(--pp-neutral-200);border-radius:6px;min-width:120px;min-height:40px;">
|
|
1946
|
+
<div class="px-6 py-2" style="background:#e90111;border-radius:4px;color:#fff;font-size:0.75rem;font-family:var(--font-mono, monospace);">.px-6.py-2</div>
|
|
1947
|
+
</div>
|
|
1948
|
+
<div class="d-flex items-center justify-center" style="background:var(--pp-info, #3b82f6);opacity:0.18;border-radius:6px;min-width:120px;min-height:40px;position:relative;">
|
|
1949
|
+
<div class="d-flex items-center justify-center" style="position:absolute;inset:0;">
|
|
1950
|
+
<div class="mx-auto" style="background:#3b82f6;border-radius:4px;color:#fff;padding:0.25rem 0.75rem;font-size:0.75rem;font-family:var(--font-mono, monospace);width:80px;">.mx-auto</div>
|
|
1951
|
+
</div>
|
|
1952
|
+
</div>
|
|
1953
|
+
</div>
|
|
1954
|
+
</div>
|
|
1955
|
+
|
|
1956
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Flex utilities demo</p>
|
|
1957
|
+
<div class="d-flex gap-3 flex-wrap items-center justify-between" style="background:var(--pp-neutral-100);padding:1rem;border-radius:10px;margin-top:0.5rem;">
|
|
1958
|
+
<div style="background:#e90111;color:#fff;padding:0.5rem 1rem;border-radius:6px;font-size:0.75rem;font-family:monospace;">Item 1</div>
|
|
1959
|
+
<div style="background:#e90111;color:#fff;padding:0.5rem 1rem;border-radius:6px;font-size:0.75rem;font-family:monospace;">Item 2</div>
|
|
1960
|
+
<div style="background:#e90111;color:#fff;padding:0.5rem 1rem;border-radius:6px;font-size:0.75rem;font-family:monospace;">Item 3</div>
|
|
1961
|
+
<div style="background:#e90111;color:#fff;padding:0.5rem 1rem;border-radius:6px;font-size:0.75rem;font-family:monospace;">Item 4</div>
|
|
1962
|
+
</div>
|
|
1963
|
+
<p class="font-sans font-400 text-xs" style="color:#71717a;margin-top:0.5rem;"><code class="font-mono">.d-flex.gap-3.flex-wrap.items-center.justify-between</code></p>
|
|
1964
|
+
|
|
1965
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Grid utilities demo</p>
|
|
1966
|
+
<div class="d-grid grid-cols-4 gap-3" style="margin-top:0.5rem;">
|
|
1967
|
+
<div style="background:#ffcf67;border-radius:8px;height:60px;"></div>
|
|
1968
|
+
<div class="col-span-2" style="background:linear-gradient(135deg,#ffcf67,#ea5753);border-radius:8px;height:60px;"></div>
|
|
1969
|
+
<div style="background:#ea5753;border-radius:8px;height:60px;"></div>
|
|
1970
|
+
<div class="col-span-full" style="background:var(--pp-neutral-900);border-radius:8px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--pp-neutral-50);font-size:0.75rem;font-family:monospace;">.col-span-full</div>
|
|
1971
|
+
</div>
|
|
1972
|
+
<p class="font-sans font-400 text-xs" style="color:#71717a;margin-top:0.5rem;"><code class="font-mono">.d-grid.grid-cols-4.gap-3</code> with <code class="font-mono">.col-span-2</code> and <code class="font-mono">.col-span-full</code></p>
|
|
1973
|
+
|
|
1974
|
+
<p class="font-sans font-500 text-xs uppercase tracking-wider" style="color:#71717a;margin-top:2rem;">Reference — all utility groups</p>
|
|
1975
|
+
<table class="pp-table pp-table--cols-2" style="width:100%;">
|
|
1976
|
+
<thead><tr><th class="font-sans font-600">Group</th><th class="font-sans font-600">Classes</th></tr></thead>
|
|
1977
|
+
<tbody>
|
|
1978
|
+
<tr><td>Display</td><td><code class="font-mono">.d-{block|inline|inline-block|flex|inline-flex|grid|inline-grid|none|contents}</code></td></tr>
|
|
1979
|
+
<tr><td>Visibility</td><td><code class="font-mono">.visible .invisible .sr-only .not-sr-only</code></td></tr>
|
|
1980
|
+
<tr><td>Opacity</td><td><code class="font-mono">.opacity-{0|25|50|75|100}</code></td></tr>
|
|
1981
|
+
<tr><td>Margin</td><td><code class="font-mono">.m-* .mt-* .mb-* .ml-* .mr-* .mx-* .my-*</code> (keys 0–32, auto)</td></tr>
|
|
1982
|
+
<tr><td>Padding</td><td><code class="font-mono">.p-* .pt-* .pb-* .pl-* .pr-* .px-* .py-*</code> (keys 0–32)</td></tr>
|
|
1983
|
+
<tr><td>Gap</td><td><code class="font-mono">.gap-* .gap-x-* .gap-y-*</code> (keys 0–32)</td></tr>
|
|
1984
|
+
<tr><td>Flex direction</td><td><code class="font-mono">.flex-row .flex-col .flex-row-reverse .flex-col-reverse</code></td></tr>
|
|
1985
|
+
<tr><td>Flex wrap</td><td><code class="font-mono">.flex-wrap .flex-nowrap .flex-wrap-reverse</code></td></tr>
|
|
1986
|
+
<tr><td>Flex grow/shrink</td><td><code class="font-mono">.flex-1 .flex-auto .flex-none .flex-shrink-0 .flex-grow .flex-grow-0</code></td></tr>
|
|
1987
|
+
<tr><td>Justify content</td><td><code class="font-mono">.justify-{start|end|center|between|around|evenly}</code></td></tr>
|
|
1988
|
+
<tr><td>Align items</td><td><code class="font-mono">.items-{start|end|center|baseline|stretch}</code></td></tr>
|
|
1989
|
+
<tr><td>Align self</td><td><code class="font-mono">.self-{auto|start|end|center|stretch}</code></td></tr>
|
|
1990
|
+
<tr><td>Grid columns</td><td><code class="font-mono">.grid-cols-{1–6,12}</code></td></tr>
|
|
1991
|
+
<tr><td>Grid rows</td><td><code class="font-mono">.grid-rows-{1–4}</code></td></tr>
|
|
1992
|
+
<tr><td>Column span</td><td><code class="font-mono">.col-span-{1|2|3|4|6|full}</code></td></tr>
|
|
1993
|
+
<tr><td>Row span</td><td><code class="font-mono">.row-span-{1|2|3|full}</code></td></tr>
|
|
1994
|
+
<tr><td>Width</td><td><code class="font-mono">.w-full .w-screen .w-auto .w-fit .w-min .w-max .w-half</code></td></tr>
|
|
1995
|
+
<tr><td>Height</td><td><code class="font-mono">.h-full .h-screen .h-auto .h-fit</code></td></tr>
|
|
1996
|
+
<tr><td>Overflow</td><td><code class="font-mono">.overflow-{auto|hidden|visible|scroll} .overflow-x-* .overflow-y-*</code></td></tr>
|
|
1997
|
+
<tr><td>Position</td><td><code class="font-mono">.static .relative .absolute .fixed .sticky</code></td></tr>
|
|
1998
|
+
<tr><td>Z-index</td><td><code class="font-mono">.z-{below|base|raised|overlay|modal|toast|tooltip}</code></td></tr>
|
|
1999
|
+
<tr><td>Border radius</td><td><code class="font-mono">.rounded .rounded-{none|sm|base|md|lg|xl|2xl|full}</code></td></tr>
|
|
2000
|
+
<tr><td>Shadow</td><td><code class="font-mono">.shadow-none .shadow-sm .shadow .shadow-md .shadow-lg .shadow-xl</code></td></tr>
|
|
2001
|
+
<tr><td>Cursor</td><td><code class="font-mono">.cursor-{default|pointer|not-allowed|grab|text}</code></td></tr>
|
|
2002
|
+
<tr><td>Pointer events</td><td><code class="font-mono">.pointer-events-none .pointer-events-auto</code></td></tr>
|
|
2003
|
+
<tr><td>User select</td><td><code class="font-mono">.select-{none|text|all|auto}</code></td></tr>
|
|
2004
|
+
<tr><td>Responsive prefix</td><td><code class="font-mono">.sm-{class} .md-{class} .lg-{class} .xl-{class} .w2xl-{class}</code> (display only, e.g. <code class="font-mono">.md-d-flex</code>)</td></tr>
|
|
2005
|
+
</tbody>
|
|
2006
|
+
</table>
|
|
2007
|
+
</div>
|
|
2008
|
+
</section>
|
|
2009
|
+
|
|
2010
|
+
<!-- Changelog -->
|
|
2011
|
+
<section id="changelog" class="pp-section pp-section--muted">
|
|
2012
|
+
<div class="pp-section__inner text-left" style="align-items:flex-start;max-width:720px;">
|
|
2013
|
+
<h2 class="font-sans font-700 tracking-tight">Changelog</h2>
|
|
2014
|
+
|
|
2015
|
+
<div style="margin-top:2rem;">
|
|
2016
|
+
<p class="font-sans font-600 text-lg">v0.6.0 <span class="font-400 text-sm">— unreleased</span></p>
|
|
2017
|
+
<p>Added standalone HTML-first component patterns and modular helper families, with native controls and optional application behavior.</p>
|
|
2018
|
+
</div>
|
|
2019
|
+
|
|
2020
|
+
<!-- v0.4.0 -->
|
|
2021
|
+
<div style="margin-top:2rem;">
|
|
2022
|
+
<p class="font-sans font-600 text-lg" style="color:var(--pp-on-surface);">v0.4.0 <span class="font-400 text-sm" style="color:var(--pp-neutral-500);">— 2026-06-11</span></p>
|
|
2023
|
+
|
|
2024
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1rem;">New components</p>
|
|
2025
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2026
|
+
<li><strong>Accordion</strong> — CSS max-height transition; variants: <code class="font-mono">--flush</code>, <code class="font-mono">--dark</code>, <code class="font-mono">--primary</code>; JS shim adds <code class="font-mono">aria-expanded</code>, keyboard nav (↑ ↓ Home End), <code class="font-mono">data-allow-multiple</code>.</li>
|
|
2027
|
+
<li><strong>Alert</strong> — inline feedback; variants: <code class="font-mono">--info</code>, <code class="font-mono">--success</code>, <code class="font-mono">--warning</code>, <code class="font-mono">--error</code>, <code class="font-mono">--primary</code>, <code class="font-mono">--neutral</code>; modifier: <code class="font-mono">--filled</code>; dismissible with slide-out animation.</li>
|
|
2028
|
+
</ul>
|
|
2029
|
+
|
|
2030
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1.25rem;">Utilities</p>
|
|
2031
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2032
|
+
<li>New <code class="font-mono">utilities.scss</code> layer — display, visibility, opacity, margin, padding, gap, flex, grid, width, height, overflow, position, z-index, border-radius, shadow, cursor, pointer-events, user-select, responsive display prefixes.</li>
|
|
2033
|
+
</ul>
|
|
2034
|
+
|
|
2035
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1.25rem;">Dark mode</p>
|
|
2036
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2037
|
+
<li>Class-based dark mode via <code class="font-mono">.dark</code> on <code class="font-mono"><html></code> — never <code class="font-mono">prefers-color-scheme</code>. Toggle persists to <code class="font-mono">localStorage</code>.</li>
|
|
2038
|
+
<li>All design tokens in <code class="font-mono">base.scss</code> now exposed as <code class="font-mono">--pp-*</code> CSS custom properties on <code class="font-mono">:root</code>. <code class="font-mono">dark-mode.scss</code> overrides them under <code class="font-mono">.dark</code> — neutral scale fully inverted, surfaces swapped, shadows strengthened.</li>
|
|
2039
|
+
<li>Component SCSS updated to consume CSS vars instead of hardcoded color literals throughout.</li>
|
|
2040
|
+
<li>Demo: moon/sun toggle in header; every component section shows a <code class="font-mono">.dark</code>-wrapped preview alongside the light demo.</li>
|
|
2041
|
+
</ul>
|
|
2042
|
+
|
|
2043
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1.25rem;">Bug fixes</p>
|
|
2044
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2045
|
+
<li>Table row borders now use <code class="font-mono">var(--pp-border)</code> instead of the static SCSS neutral-200 value.</li>
|
|
2046
|
+
<li>Utilities demo chips and containers use CSS vars — readable in dark mode.</li>
|
|
2047
|
+
<li>Changelog and inline section-label colors replaced with CSS vars throughout the demo page.</li>
|
|
2048
|
+
</ul>
|
|
2049
|
+
</div>
|
|
2050
|
+
|
|
2051
|
+
<!-- v0.3.0 -->
|
|
2052
|
+
<div style="margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--pp-border);">
|
|
2053
|
+
<p class="font-sans font-600 text-lg" style="color:var(--pp-on-surface);">v0.3.0 <span class="font-400 text-sm" style="color:var(--pp-neutral-500);">— 2026-06-05</span></p>
|
|
2054
|
+
|
|
2055
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1rem;">New components</p>
|
|
2056
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2057
|
+
<li><strong>Carousel</strong> — CSS scroll-snap driven; variants: <code class="font-mono">--peek-2</code>, <code class="font-mono">--peek-3</code>, <code class="font-mono">--dark</code>, <code class="font-mono">--flush</code>; <code class="font-mono">ppCarousel</code> JS API.</li>
|
|
2058
|
+
<li><strong>Footer</strong> — multi-column layout, <code class="font-mono">--dark</code> and <code class="font-mono">--accent</code> variants; CSS only.</li>
|
|
2059
|
+
<li><strong>Forms</strong> — five new form components: Fieldset & Legend, Form Instructions, Label, Text Field, Validation.</li>
|
|
2060
|
+
</ul>
|
|
2061
|
+
|
|
2062
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1.25rem;">Forms detail</p>
|
|
2063
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2064
|
+
<li><strong>Label</strong> — four importance tiers (primary → quaternary); Apple Dynamic Type scale (headline → caption); <code class="font-mono">--selectable</code>, <code class="font-mono">--truncate</code>, icon row.</li>
|
|
2065
|
+
<li><strong>Fieldset</strong> — variants: default, <code class="font-mono">--ghost</code>, <code class="font-mono">--filled</code>, <code class="font-mono">--primary</code>, <code class="font-mono">--error</code>; legend modifiers: <code class="font-mono">--sm</code>, <code class="font-mono">--lg</code>, <code class="font-mono">--inline</code>.</li>
|
|
2066
|
+
<li><strong>Form Instructions</strong> — pre-<code class="font-mono"><form></code> block for screen reader Forms Mode; variants: <code class="font-mono">--neutral</code>, <code class="font-mono">--warning</code>, <code class="font-mono">--error</code>; in-form hint and required note.</li>
|
|
2067
|
+
<li><strong>Text Field</strong> — label, input/textarea, hint (<code class="font-mono">aria-describedby</code>), required <code class="font-mono"><abbr></code> marker, validation states, sizes, icon wrap, character counter.</li>
|
|
2068
|
+
<li><strong>Validation</strong> — <code class="font-mono">:valid</code>/<code class="font-mono">:invalid</code> opt-in, <code class="font-mono">aria-invalid</code> selectors, validating spinner, summary with <code class="font-mono">role="alert"</code>, confirmation checkbox with CSS <code class="font-mono">:has()</code> gated submit; <code class="font-mono">ppValidation</code> JS API.</li>
|
|
2069
|
+
</ul>
|
|
2070
|
+
|
|
2071
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1.25rem;">Breakpoints</p>
|
|
2072
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2073
|
+
<li>Tailwind-compatible map: <code class="font-mono">sm</code> / <code class="font-mono">md</code> / <code class="font-mono">lg</code> / <code class="font-mono">xl</code> / <code class="font-mono">2xl</code>.</li>
|
|
2074
|
+
<li>Apple device map: 12 named breakpoints from <code class="font-mono">iphone-se</code> to <code class="font-mono">imac</code>.</li>
|
|
2075
|
+
<li><code class="font-mono">respond-below()</code> and <code class="font-mono">respond-between()</code> mixins added.</li>
|
|
2076
|
+
</ul>
|
|
2077
|
+
|
|
2078
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1.25rem;">Icons & demo</p>
|
|
2079
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2080
|
+
<li>Switched from Feather Icons to Lucide Icons (<code class="font-mono">lucide.createIcons()</code>).</li>
|
|
2081
|
+
<li>Demo: Installation section, Carousel, Footer, and Forms sections added; nav dropdowns for Components and Forms; Changelog section.</li>
|
|
2082
|
+
</ul>
|
|
2083
|
+
</div>
|
|
2084
|
+
|
|
2085
|
+
<!-- v0.2.0 -->
|
|
2086
|
+
<div style="margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--pp-border);">
|
|
2087
|
+
<p class="font-sans font-600 text-lg" style="color:var(--pp-on-surface);">v0.2.0 <span class="font-400 text-sm" style="color:var(--pp-neutral-500);">— 2026-06-01</span></p>
|
|
2088
|
+
<p class="font-sans font-600 text-xs uppercase tracking-wider" style="color:#e90111;margin-top:1rem;">Accessibility — full ARIA pass across all components</p>
|
|
2089
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.5rem;padding-left:1.25rem;">
|
|
2090
|
+
<li><strong>Header:</strong> <code class="font-mono">role="menubar"</code>, <code class="font-mono">role="menu"</code>, <code class="font-mono">role="menuitem"</code>; <code class="font-mono">aria-haspopup</code> + <code class="font-mono">aria-expanded</code> on triggers; <code class="font-mono">aria-hidden</code> on mobile drawer.</li>
|
|
2091
|
+
<li><strong>Modal:</strong> <code class="font-mono">role="dialog"</code> + <code class="font-mono">aria-modal</code>; <code class="font-mono">aria-labelledby</code> + <code class="font-mono">aria-describedby</code> auto-wired; focus trap; focus restored on close.</li>
|
|
2092
|
+
<li><strong>Select:</strong> <code class="font-mono">role="combobox"</code>, <code class="font-mono">role="listbox"</code>, <code class="font-mono">role="option"</code> + <code class="font-mono">aria-selected</code>; <code class="font-mono">aria-activedescendant</code> kept in sync.</li>
|
|
2093
|
+
<li><strong>Tabs:</strong> <code class="font-mono">role="tablist"</code>, <code class="font-mono">aria-controls</code> to panel ids, <code class="font-mono">Home</code> / <code class="font-mono">End</code> keyboard shortcuts.</li>
|
|
2094
|
+
<li><strong>CSS:</strong> ARIA attribute states are first-class CSS selectors — visual state driven by ARIA, not class names alone.</li>
|
|
2095
|
+
<li>Section order updated: Hero → Colors → Typography → Components (A→Z).</li>
|
|
2096
|
+
</ul>
|
|
2097
|
+
</div>
|
|
2098
|
+
|
|
2099
|
+
<!-- v0.1.1 -->
|
|
2100
|
+
<div style="margin-top:2.5rem;padding-top:2rem;border-top:1px solid var(--pp-border);">
|
|
2101
|
+
<p class="font-sans font-600 text-lg" style="color:var(--pp-on-surface);">v0.1.1 <span class="font-400 text-sm" style="color:var(--pp-neutral-500);">— initial release</span></p>
|
|
2102
|
+
<ul class="font-sans font-400 text-sm" style="color:var(--pp-neutral-600);line-height:1.8;margin-top:0.75rem;padding-left:1.25rem;">
|
|
2103
|
+
<li>Reset, base tokens, button, card, gradient text, header, modal, section, select, table, tabs, typography.</li>
|
|
2104
|
+
<li>Progressive enhancement — CSS-only baseline; JS adds keyboard nav, animations, outside-click close.</li>
|
|
2105
|
+
<li>Inter + Kode Mono via Google Fonts; esbuild bundler with per-component files + <code class="font-mono">peppertino.js</code> aggregator.</li>
|
|
2106
|
+
</ul>
|
|
2107
|
+
</div>
|
|
2108
|
+
</div>
|
|
2109
|
+
</section>
|
|
2110
|
+
|
|
2111
|
+
<!-- ═══════════════════════════════════════════════════════════════════════ -->
|
|
2112
|
+
<!-- Footer — always last, the only component allowed out of A→Z order -->
|
|
2113
|
+
<!-- ═══════════════════════════════════════════════════════════════════════ -->
|
|
2114
|
+
<footer id="footer" class="pp-footer pp-footer--accent" role="contentinfo">
|
|
2115
|
+
<div class="pp-footer__top">
|
|
2116
|
+
<div class="pp-footer__brand">
|
|
2117
|
+
<a href="#hero" class="pp-footer__logo font-sans font-600">PeppertinoCSS</a>
|
|
2118
|
+
<p class="pp-footer__tagline font-sans font-400">An Apple-inspired CSS framework with a spicy red accent. Clean geometry, restrained elegance.</p>
|
|
2119
|
+
</div>
|
|
2120
|
+
|
|
2121
|
+
<div class="pp-footer__col">
|
|
2122
|
+
<p class="pp-footer__col-title font-sans">Framework</p>
|
|
2123
|
+
<ul class="pp-footer__nav" aria-label="Framework links">
|
|
2124
|
+
<li><a href="https://codeberg.org/debaditya/Peppertino" class="pp-footer__nav-link font-sans" target="_blank" rel="noopener noreferrer">Getting Started</a></li>
|
|
2125
|
+
<li><a href="#installation" class="pp-footer__nav-link font-sans">Installation</a></li>
|
|
2126
|
+
<li><a href="https://codeberg.org/debaditya/Peppertino/src/branch/main/README.md" class="pp-footer__nav-link font-sans" target="_blank" rel="noopener noreferrer">Configuration</a></li>
|
|
2127
|
+
<li><a href="#changelog" class="pp-footer__nav-link font-sans">Changelog</a></li>
|
|
2128
|
+
</ul>
|
|
2129
|
+
</div>
|
|
2130
|
+
|
|
2131
|
+
<div class="pp-footer__col">
|
|
2132
|
+
<p class="pp-footer__col-title font-sans">Components</p>
|
|
2133
|
+
<ul class="pp-footer__nav" aria-label="Component links">
|
|
2134
|
+
<li><a href="#accordion" class="pp-footer__nav-link font-sans">Accordion</a></li>
|
|
2135
|
+
<li><a href="#alert" class="pp-footer__nav-link font-sans">Alert</a></li>
|
|
2136
|
+
<li><a href="#buttons" class="pp-footer__nav-link font-sans">Buttons</a></li>
|
|
2137
|
+
<li><a href="#modals" class="pp-footer__nav-link font-sans">Modals</a></li>
|
|
2138
|
+
</ul>
|
|
2139
|
+
</div>
|
|
2140
|
+
|
|
2141
|
+
<div class="pp-footer__col">
|
|
2142
|
+
<p class="pp-footer__col-title font-sans">More</p>
|
|
2143
|
+
<ul class="pp-footer__nav" aria-label="More links">
|
|
2144
|
+
<li><a href="https://codeberg.org/debaditya/Peppertino" class="pp-footer__nav-link font-sans" target="_blank" rel="noopener noreferrer">Codeberg</a></li>
|
|
2145
|
+
<li><a href="https://www.npmjs.com/package/@auriel/peppertino" class="pp-footer__nav-link font-sans" target="_blank" rel="noopener noreferrer">npm</a></li>
|
|
2146
|
+
<li><a href="https://codeberg.org/debaditya/Peppertino/src/branch/main/LICENSE" class="pp-footer__nav-link font-sans" target="_blank" rel="noopener noreferrer">License</a></li>
|
|
2147
|
+
<li><a href="https://codeberg.org/debaditya/Peppertino/issues" class="pp-footer__nav-link font-sans" target="_blank" rel="noopener noreferrer">Report a bug</a></li>
|
|
2148
|
+
</ul>
|
|
2149
|
+
</div>
|
|
2150
|
+
</div>
|
|
2151
|
+
|
|
2152
|
+
<div class="pp-footer__bottom">
|
|
2153
|
+
<p class="pp-footer__legal font-sans font-400">
|
|
2154
|
+
© 2026 PeppertinoCSS. Released under the <a href="https://codeberg.org/debaditya/Peppertino/src/branch/main/LICENSE" target="_blank" rel="noopener noreferrer">MIT License</a>.
|
|
2155
|
+
</p>
|
|
2156
|
+
<ul class="pp-footer__social" aria-label="Social links">
|
|
2157
|
+
<li>
|
|
2158
|
+
<a href="https://codeberg.org/debaditya/Peppertino" class="pp-footer__social-link" aria-label="Codeberg" target="_blank" rel="noopener noreferrer">
|
|
2159
|
+
<i data-lucide="git-branch"></i>
|
|
2160
|
+
</a>
|
|
2161
|
+
</li>
|
|
2162
|
+
<li>
|
|
2163
|
+
<a href="https://www.npmjs.com/package/@auriel/peppertino" class="pp-footer__social-link" aria-label="npm" target="_blank" rel="noopener noreferrer">
|
|
2164
|
+
<i data-lucide="package"></i>
|
|
2165
|
+
</a>
|
|
2166
|
+
</li>
|
|
2167
|
+
</ul>
|
|
2168
|
+
</div>
|
|
2169
|
+
</footer>
|
|
2170
|
+
|
|
2171
|
+
</body>
|
|
2172
|
+
</html>
|