-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontact-sheet.html
More file actions
1652 lines (1511 loc) · 66.2 KB
/
Copy pathcontact-sheet.html
File metadata and controls
1652 lines (1511 loc) · 66.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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
172
173
174
175
176
177
178
179
180
181
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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
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
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
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
708
709
710
711
712
713
714
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
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
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Airtime Design System</title>
<!-- Tokens (must be first) -->
<link rel="stylesheet" href="generated/tokens.css" />
<!-- Icons (currentColor SVGs) -->
<script src="generated/icons.js"></script>
<!-- Components -->
<link rel="stylesheet" href="components/button.css" />
<link rel="stylesheet" href="components/input.css" />
<link rel="stylesheet" href="components/controls.css" />
<link rel="stylesheet" href="components/rows.css" />
<link rel="stylesheet" href="components/menus.css" />
<link rel="stylesheet" href="components/education.css" />
<link rel="stylesheet" href="components/others.css" />
<style>
/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
font-family: var(--font-family-primary);
font-size: var(--font-size-body-medium);
color: var(--color-content-primary);
background: var(--color-background-secondary);
}
/* ── Sidebar ── */
.sidebar {
position: fixed;
top: 0;
left: 0;
width: 200px;
height: 100vh;
background: var(--color-background-secondary);
border-right: 1px solid var(--color-highlight-primary);
display: flex;
flex-direction: column;
overflow-y: auto;
z-index: 100;
}
.sidebar-header {
padding: 0 16px;
border-bottom: 1px solid var(--color-highlight-primary);
display: flex;
align-items: center;
min-height: 49px;
}
.sidebar-title {
font-size: var(--font-size-heading-medium);
font-weight: var(--font-weight-bold);
color: var(--color-content-primary);
margin: 0 0 2px;
line-height: 1.2;
}
.sidebar-meta {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
border-bottom: 1px solid var(--color-highlight-primary);
}
.sidebar-stat {
display: flex;
flex-direction: column;
align-items: center;
gap: 1px;
padding: var(--space-15) 0;
}
.sidebar-stat + .sidebar-stat {
border-left: 1px solid var(--color-highlight-primary);
}
.sidebar-stat-num {
font-size: var(--font-size-heading-medium);
font-weight: var(--font-weight-bold);
line-height: 1;
color: var(--color-accent-teal);
}
.sidebar-stat-label {
font-size: 9px;
line-height: 1;
color: var(--color-content-tertiary);
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: var(--font-weight-medium);
}
.sidebar-stats {
display: flex;
flex-wrap: wrap;
gap: var(--space-05);
align-items: center;
}
.stat-chip {
font-size: 10px;
line-height: 1;
color: var(--color-content-tertiary);
background: var(--color-highlight-primary);
padding: 3px 6px;
border-radius: var(--radius-9999);
white-space: nowrap;
}
.stat-num {
color: var(--color-accent-teal);
font-weight: var(--font-weight-semibold);
}
.sidebar-nav {
flex: 1;
padding: 8px;
}
.nav-link {
display: block;
padding: 6px 8px;
border-radius: var(--radius-15);
color: var(--color-content-secondary);
text-decoration: none;
font-size: var(--font-size-body-medium);
font-weight: var(--font-weight-medium);
transition: background var(--duration-fast) var(--easing-default),
color var(--duration-fast) var(--easing-default);
}
.nav-link:hover {
background: var(--color-highlight-primary);
color: var(--color-content-primary);
}
.nav-link.active {
background: var(--color-content-primary);
color: var(--color-background-secondary);
}
/* Token view iframe overlay */
#token-view {
display: none;
position: fixed;
left: 200px;
right: 0;
top: 49px;
bottom: 0;
z-index: 50;
}
#token-frame {
width: 100%;
height: 100%;
border: none;
}
.nav-section-label {
font-size: 10px;
font-weight: var(--font-weight-semibold);
color: var(--color-content-tertiary);
text-transform: uppercase;
letter-spacing: 0.08em;
margin: 8px 8px 2px;
padding: 0;
}
.nav-divider {
border: none;
border-top: 1px solid var(--color-highlight-primary);
margin: 8px 8px;
}
.sidebar-footer {
padding: 12px;
border-top: 1px solid var(--color-highlight-primary);
}
/* Theme toggle */
.theme-toggle {
display: flex;
align-items: center;
gap: 6px;
width: 100%;
padding: 6px 8px;
border: 1px solid var(--color-highlight-primary);
border-radius: var(--radius-15);
background: transparent;
color: var(--color-content-secondary);
font-family: var(--font-family-primary);
font-size: var(--font-size-body-medium);
cursor: pointer;
transition: background var(--duration-fast) var(--easing-default);
}
.theme-toggle:hover {
background: var(--color-highlight-primary);
color: var(--color-content-primary);
}
.theme-toggle-icon {
width: 14px;
height: 14px;
flex-shrink: 0;
}
/* ── Main content ── */
.main {
margin-left: 200px;
padding: 82px 40px 32px;
max-width: 1200px;
}
.header {
position: fixed;
top: 0;
left: 200px;
right: 0;
display: flex;
justify-content: space-between;
align-items: center;
background: var(--color-background-secondary);
border-bottom: 1px solid var(--color-highlight-primary);
padding: 0 40px;
min-height: 49px;
z-index: 60;
}
.header h1 {
font-size: var(--font-size-heading-large);
font-weight: var(--font-weight-bold);
margin: 0;
line-height: 1;
}
.header .meta {
font-size: var(--font-size-body-small);
color: var(--color-content-secondary);
margin: 0;
}
/* ── Section ── */
.section {
margin-bottom: 64px;
scroll-margin-top: 24px;
}
.section-title {
font-size: 24px;
font-weight: var(--font-weight-bold);
color: var(--color-content-primary);
margin: 0 0 24px;
padding-bottom: 12px;
border-bottom: 1px solid var(--color-highlight-primary);
}
/* ── Group (sub-section) ── */
.group {
margin-bottom: 40px;
}
.group-title {
font-size: var(--font-size-heading-medium);
font-weight: var(--font-weight-semibold);
color: var(--color-content-secondary);
margin: 0 0 16px;
text-transform: uppercase;
letter-spacing: 0.06em;
font-size: 11px;
}
/* ── Variants row ── */
.variants {
display: flex;
flex-wrap: wrap;
gap: 24px;
align-items: flex-start;
}
.variants-col {
display: flex;
flex-direction: column;
gap: 24px;
align-items: flex-start;
}
/* ── Single variant card ── */
.variant {
display: flex;
flex-direction: column;
gap: 8px;
}
.variant-label {
font-size: 10px;
font-weight: var(--font-weight-medium);
color: var(--color-content-tertiary);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.variant-preview {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
/* ── Canvas (neutral background for items that need context) ── */
.canvas {
padding: 16px;
border-radius: var(--radius-20);
border: 1px solid var(--color-highlight-primary);
background: var(--color-background-secondary);
}
.canvas-teal {
background: var(--color-modeless-teal);
}
/* ── Icon helper ──
Uses AppIcons from icons.js — SVGs with fill="currentColor".
Icons automatically inherit the CSS `color` property — no filter tricks needed. */
.icon-img {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 16px;
height: 16px;
}
.icon-img svg {
display: block;
width: 100%;
height: 100%;
}
/* ── Scroll area demo (200×80px box) ── */
.scroll-demo {
width: 200px;
height: 80px;
overflow: auto;
border: 1px solid var(--color-highlight-primary);
border-radius: var(--radius-10);
padding: 8px;
}
.scroll-content {
height: 240px;
display: flex;
flex-direction: column;
gap: 8px;
font-size: var(--font-size-body-small);
color: var(--color-content-secondary);
}
/* ── Divider demo wrapper ── */
.divider-h-demo {
width: 200px;
}
.divider-v-demo {
height: 40px;
display: flex;
align-items: center;
}
/* ── Badge demo ── */
.badge-host {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
border-radius: var(--radius-15);
background: var(--color-highlight-primary);
}
.badge-host .badge {
position: absolute;
top: -4px;
right: -4px;
}
/* ── Education arrow demos ── */
.education-grid {
display: grid;
grid-template-columns: repeat(3, auto);
gap: 48px 32px;
align-items: center;
justify-items: center;
}
.education-grid .coach-mark,
.education-grid .tooltip {
position: relative; /* override absolute in production */
}
/* Padding so arrows don't clip */
.arrow-pad { padding: 16px; }
/* ── Color picker / swatch standalone sizing ── */
.color-picker,
.swatches {
/* width is set in others.css (280px) */
}
/* ── Loader animation override (ensure spin works) ── */
@keyframes loader-spin {
to { transform: rotate(360deg); }
}
</style>
</head>
<body>
<!-- ── Sidebar ── -->
<aside class="sidebar">
<div class="sidebar-header">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 306 52" fill="none" style="max-width:100px;height:auto;display:block;color:var(--color-content-primary)"><path fill-rule="evenodd" clip-rule="evenodd" d="M72.0874 50.9253L90.3717 0.0566406H103.32L121.675 50.9253H108.442L105.454 41.7476H87.6681L84.7512 50.9253H72.0874ZM94.4981 20.4041L90.5851 32.7122H102.537L98.6956 20.4041C97.8419 17.7717 96.7036 13.2185 96.7036 13.2185H96.5613C96.5613 13.2185 95.3518 17.7717 94.4981 20.4041Z" fill="currentColor"/><path d="M168.942 41.3209C168.942 49.1468 173.78 51.3523 180.539 51.3523C183.67 51.3523 185.875 51.0678 186.871 50.7832V42.3169C186.703 42.3169 186.424 42.328 186.086 42.3414L186.086 42.3414L186.085 42.3414L186.084 42.3415L186.083 42.3415H186.083C185.566 42.3621 184.912 42.3881 184.31 42.3881C181.82 42.3881 180.255 41.6766 180.255 38.8308V21.756H186.871V14.4992H180.255V2.97376H168.942V14.4992H168.943V21.756H168.942V41.3209Z" fill="currentColor"/><path d="M208.2 14.4992V50.9254H219.797V30.5068C219.797 26.167 221.931 23.1077 225.559 23.1077C229.046 23.1077 230.682 25.3844 230.682 29.2973V50.9254H242.278V30.5068C242.278 26.167 244.342 23.1077 248.041 23.1077C251.527 23.1077 253.164 25.3844 253.164 29.2973V50.9254H264.76V27.2341C264.76 19.0525 260.634 13.432 252.381 13.432C247.686 13.432 243.773 15.4241 240.927 19.8351H240.784C238.935 15.9221 235.306 13.432 230.54 13.432C225.275 13.432 221.789 15.9221 219.512 19.6928H219.299V14.4992H208.2Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M268.399 32.6411C268.399 43.6686 275.798 51.9926 287.821 51.9926C292.446 51.9926 296.145 50.7831 299.205 48.6488C302.406 46.4433 304.54 43.3129 305.323 40.0402H294.011C293.015 42.3169 291.023 43.6686 287.964 43.6686C283.197 43.6686 280.493 40.6094 279.782 35.7004H305.963C306.034 28.3013 303.9 21.9694 299.56 17.9853C296.43 15.1395 292.303 13.432 287.11 13.432C276.011 13.432 268.399 21.756 268.399 32.6411ZM294.224 28.7993H279.853C280.636 24.4595 282.912 21.6848 287.323 21.6848C291.094 21.6848 293.798 24.4595 294.224 28.7993Z" fill="currentColor"/><path d="M191.04 50.9253V14.4991H202.636V50.9253H191.04Z" fill="currentColor"/><path d="M141.701 50.9251V14.4989H152.799V20.1905H153.013C155.574 15.8507 158.562 13.9298 162.973 13.9298C164.04 13.9298 164.752 14.0009 165.25 14.2143V24.1746H164.965C157.851 23.1786 153.297 26.6647 153.297 34.5618V50.9251H141.701Z" fill="currentColor"/><path d="M124.54 14.4991V50.9253H136.137V14.4991H124.54Z" fill="currentColor"/><path d="M124.559 2.92217V2.9198L136.092 2.9198V2.92217C136.092 6.10674 133.51 8.68834 130.325 8.68834C127.141 8.68834 124.559 6.10674 124.559 2.92217Z" fill="currentColor"/><path d="M191.179 2.9198V2.92217C191.179 6.10674 193.761 8.68834 196.946 8.68834C200.13 8.68834 202.712 6.10674 202.712 2.92217V2.9198L191.179 2.9198Z" fill="currentColor"/><path d="M25.4438 0.0136719C11.3916 0.0136719 0 11.4052 0 25.4575C0 39.5097 11.3916 50.9013 25.4438 50.9013V27.319C26.3815 37.2935 34.7783 45.0988 44.9981 45.0988V26.9768C45.7511 33.5035 51.2961 38.571 58.0246 38.571V12.3439C51.2961 12.3439 45.7511 17.4114 44.9981 23.9382V5.81613C34.7783 5.81613 26.3815 13.6214 25.4438 23.5959V0.0136719Z" fill="currentColor"/></svg>
</div>
<div class="sidebar-meta">
<div class="sidebar-stat">
<span class="sidebar-stat-num">77</span>
<span class="sidebar-stat-label">tokens</span>
</div>
<div class="sidebar-stat">
<span class="sidebar-stat-num">24</span>
<span class="sidebar-stat-label">components</span>
</div>
<div class="sidebar-stat">
<span class="sidebar-stat-num">221</span>
<span class="sidebar-stat-label">icons</span>
</div>
</div>
<nav class="sidebar-nav" aria-label="Component sections">
<p class="nav-section-label">Tokens</p>
<a class="nav-link" href="contact-sheet-tokens.html#colors">Colors</a>
<a class="nav-link" href="contact-sheet-tokens.html#typography">Typography</a>
<a class="nav-link" href="contact-sheet-tokens.html#spacing">Spacing & Sizing</a>
<a class="nav-link" href="contact-sheet-tokens.html#radii">Radii</a>
<a class="nav-link" href="contact-sheet-tokens.html#shadows">Shadows</a>
<a class="nav-link" href="contact-sheet-tokens.html#misc">Borders & More</a>
<a class="nav-link" href="contact-sheet-tokens.html#icons">Icons</a>
<hr class="nav-divider">
<p class="nav-section-label">Components</p>
<a class="nav-link" href="#buttons">Buttons</a>
<a class="nav-link" href="#inputs">Inputs</a>
<a class="nav-link" href="#controls">Controls</a>
<a class="nav-link" href="#rows">Rows</a>
<a class="nav-link" href="#menus">Menus</a>
<a class="nav-link" href="#education">Education</a>
<a class="nav-link" href="#others">Others</a>
</nav>
<div class="sidebar-footer">
<button class="theme-toggle" onclick="toggleTheme()" aria-label="Toggle theme">
<svg class="theme-toggle-icon" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Simple sun/moon icon drawn inline -->
<circle cx="8" cy="8" r="3" fill="currentColor"/>
<path d="M8 1v2M8 13v2M1 8h2M13 8h2M3.05 3.05l1.41 1.41M11.54 11.54l1.41 1.41M3.05 12.95l1.41-1.41M11.54 4.46l1.41-1.41" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/>
</svg>
<span id="theme-label">Light mode</span>
</button>
</div>
</aside>
<!-- ── Token view (iframe overlay) ── -->
<div id="token-view">
<iframe id="token-frame" title="Token Reference"></iframe>
</div>
<!-- ── Header (fixed, above token overlay) ── -->
<header class="header">
<div style="display:flex;align-items:center;gap:12px">
<h1>Airtime Design System</h1>
<div class="sidebar-stats">
<span class="stat-chip"><span class="stat-num">77</span> tokens</span>
<span class="stat-chip"><span class="stat-num">24</span> components</span>
<span class="stat-chip"><span class="stat-num">221</span> icons</span>
</div>
</div>
<div style="display:flex;gap:12px;align-items:center">
<a href="../../index.html" style="font-size:var(--font-size-body-small);color:var(--color-content-tertiary);text-decoration:none">← Toolkit</a>
</div>
</header>
<!-- ── Main ── -->
<main class="main">
<!-- ════════════════════════════════ BUTTONS ════════════════════════════════ -->
<section class="section" id="buttons">
<h2 class="section-title">Buttons</h2>
<!-- Primary -->
<div class="group">
<p class="group-title">Variants</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Primary</span>
<div class="variant-preview">
<button class="btn btn-primary">Button</button>
</div>
</div>
<div class="variant">
<span class="variant-label">Secondary</span>
<div class="variant-preview">
<button class="btn btn-secondary">Button</button>
</div>
</div>
<div class="variant">
<span class="variant-label">Destructive</span>
<div class="variant-preview">
<button class="btn btn-destructive">Delete</button>
</div>
</div>
<div class="variant canvas canvas-teal">
<span class="variant-label">Modeless</span>
<div class="variant-preview">
<button class="btn btn-modeless">Button</button>
</div>
</div>
<div class="variant">
<span class="variant-label">Modeless Destructive</span>
<div class="variant-preview" style="background:#ffffff;border-radius:var(--radius-15);padding:10px 14px;">
<button class="btn btn-modeless-destructive">Delete</button>
</div>
</div>
</div>
</div>
<!-- Outline -->
<div class="group">
<p class="group-title">Outline modifier</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Primary Outline</span>
<div class="variant-preview">
<button class="btn btn-primary btn-outline">Button</button>
</div>
</div>
<div class="variant">
<span class="variant-label">Secondary Outline</span>
<div class="variant-preview">
<button class="btn btn-secondary btn-outline">Button</button>
</div>
</div>
<div class="variant">
<span class="variant-label">Destructive Outline</span>
<div class="variant-preview">
<button class="btn btn-destructive btn-outline">Delete</button>
</div>
</div>
</div>
</div>
<!-- Icon only -->
<div class="group">
<p class="group-title">Icon only</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Primary icon</span>
<div class="variant-preview">
<button class="btn btn-primary btn-icon-only" aria-label="Add">
<div class="icon-img" data-icon="Plus_Stroke_16"></div>
</button>
</div>
</div>
<div class="variant">
<span class="variant-label">Secondary icon</span>
<div class="variant-preview">
<button class="btn btn-secondary btn-icon-only" aria-label="More">
<div class="icon-img" data-icon="More_Fill_16"></div>
</button>
</div>
</div>
<div class="variant">
<span class="variant-label">With label icon</span>
<div class="variant-preview">
<button class="btn btn-primary">
<div class="icon-img" data-icon="Plus_Stroke_16"></div>
Add
</button>
<button class="btn btn-secondary">
Download
<div class="icon-img" data-icon="Download_Stroke_16"></div>
</button>
</div>
</div>
</div>
</div>
<!-- States -->
<div class="group">
<p class="group-title">States</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Disabled</span>
<div class="variant-preview">
<button class="btn btn-primary" disabled>Button</button>
<button class="btn btn-secondary" disabled>Button</button>
</div>
</div>
</div>
</div>
</section>
<!-- ════════════════════════════════ INPUTS ════════════════════════════════ -->
<section class="section" id="inputs">
<h2 class="section-title">Inputs</h2>
<div class="group">
<p class="group-title">Direct input</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Default</span>
<input class="input" type="text" placeholder="Placeholder" />
</div>
<div class="variant">
<span class="variant-label">Default (filled)</span>
<input class="input" type="text" value="Some value" />
</div>
<div class="variant">
<span class="variant-label">Large</span>
<input class="input input-lg" type="text" placeholder="Placeholder" />
</div>
<div class="variant">
<span class="variant-label">No fill</span>
<input class="input input-no-fill" type="text" placeholder="Inline edit" />
</div>
<div class="variant">
<span class="variant-label">Error</span>
<input class="input input-error" type="text" value="Invalid value" />
</div>
<div class="variant">
<span class="variant-label">Disabled</span>
<input class="input" type="text" placeholder="Disabled" disabled />
</div>
</div>
</div>
<div class="group">
<p class="group-title">Wrapper (icon + clear)</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Search</span>
<div class="input-wrapper">
<div class="input-icon-left icon-img" data-icon="Search_Fill_16"></div>
<input class="input-bare" type="text" placeholder="Search…" />
</div>
</div>
<div class="variant">
<span class="variant-label">Left + Right icon</span>
<div class="input-wrapper">
<div class="input-icon-left icon-img" data-icon="Search_Fill_16"></div>
<input class="input-bare" type="text" value="Query" />
<button class="input-icon-right" aria-label="Clear">
<div class="icon-img" data-icon="Plus_Stroke_16" style="transform:rotate(45deg)"></div>
</button>
</div>
</div>
</div>
</div>
<div class="group">
<p class="group-title">Split input</p>
<div class="variants">
<div class="variant">
<span class="variant-label">XYWH</span>
<div class="input-split">
<input class="input-split-segment" type="text" value="100" aria-label="X" />
<span class="input-split-divider"></span>
<input class="input-split-segment" type="text" value="200" aria-label="Y" />
<span class="input-split-divider"></span>
<input class="input-split-segment" type="text" value="320" aria-label="W" />
<span class="input-split-divider"></span>
<input class="input-split-segment" type="text" value="240" aria-label="H" />
</div>
</div>
<div class="variant">
<span class="variant-label">Opacity</span>
<div class="input-split" style="width:80px">
<input class="input-split-segment" type="text" value="75" aria-label="Opacity" />
<div class="input-split-label">%</div>
</div>
</div>
</div>
</div>
</section>
<!-- ════════════════════════════════ CONTROLS ════════════════════════════════ -->
<section class="section" id="controls">
<h2 class="section-title">Controls</h2>
<!-- Segmented -->
<div class="group">
<p class="group-title">Segmented Control</p>
<div class="variants">
<div class="variant">
<span class="variant-label">3 segments</span>
<div class="segmented" role="group">
<button class="segmented-item active">Label</button>
<button class="segmented-item">Label</button>
<button class="segmented-item">Label</button>
</div>
</div>
<div class="variant">
<span class="variant-label">2 segments</span>
<div class="segmented" role="group">
<button class="segmented-item active">On</button>
<button class="segmented-item">Off</button>
</div>
</div>
</div>
</div>
<!-- Checkbox -->
<div class="group">
<p class="group-title">Checkbox</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Unchecked</span>
<label class="checkbox">
<input type="checkbox" />
<span class="checkbox-box"></span>
<span class="checkbox-label">Label</span>
</label>
</div>
<div class="variant">
<span class="variant-label">Checked</span>
<label class="checkbox">
<input type="checkbox" checked />
<span class="checkbox-box"></span>
<span class="checkbox-label">Label</span>
</label>
</div>
<div class="variant">
<span class="variant-label">Disabled</span>
<label class="checkbox">
<input type="checkbox" disabled />
<span class="checkbox-box"></span>
<span class="checkbox-label">Disabled</span>
</label>
</div>
</div>
</div>
<!-- Radio -->
<div class="group">
<p class="group-title">Radio</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Unselected</span>
<label class="radio">
<input type="radio" name="radio-demo" />
<span class="radio-box"></span>
<span class="radio-label">Option A</span>
</label>
</div>
<div class="variant">
<span class="variant-label">Selected</span>
<label class="radio">
<input type="radio" name="radio-demo" checked />
<span class="radio-box"></span>
<span class="radio-label">Option B</span>
</label>
</div>
<div class="variant">
<span class="variant-label">Disabled</span>
<label class="radio">
<input type="radio" name="radio-demo2" disabled />
<span class="radio-box"></span>
<span class="radio-label">Disabled</span>
</label>
</div>
</div>
</div>
<!-- Slider -->
<div class="group">
<p class="group-title">Slider</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Default (25%)</span>
<input class="slider" id="slider-demo1" type="range" min="0" max="100" value="25"
style="--slider-value:25%;width:200px"
oninput="this.style.setProperty('--slider-value',this.value+'%')" />
</div>
<div class="variant">
<span class="variant-label">Default (75%)</span>
<input class="slider" id="slider-demo2" type="range" min="0" max="100" value="75"
style="--slider-value:75%;width:200px"
oninput="this.style.setProperty('--slider-value',this.value+'%')" />
</div>
</div>
</div>
<!-- Progress -->
<div class="group">
<p class="group-title">Progress</p>
<div class="variants">
<div class="variant">
<span class="variant-label">33%</span>
<progress class="progress" value="33" max="100" style="width:200px"></progress>
</div>
<div class="variant">
<span class="variant-label">80%</span>
<progress class="progress" value="80" max="100" style="width:200px"></progress>
</div>
</div>
</div>
<!-- Loader -->
<div class="group">
<p class="group-title">Loader</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Default (16px)</span>
<span class="loader" aria-label="Loading"></span>
</div>
<div class="variant">
<span class="variant-label">Large (24px)</span>
<span class="loader loader-lg" aria-label="Loading"></span>
</div>
</div>
</div>
<!-- Dropdown -->
<div class="group">
<p class="group-title">Dropdown</p>
<div class="variants">
<div class="variant">
<span class="variant-label">Closed</span>
<div class="dropdown">
<button class="dropdown-trigger" aria-haspopup="listbox" aria-expanded="false"
onclick="toggleDropdown(this)">
<span>Option A</span>
<div class="dropdown-chevron icon-img" data-icon="ChevronDownSmall_Stroke_16"></div>
</button>
<ul class="dropdown-menu" hidden>
<li class="dropdown-item" onclick="selectDropdownItem(this, 'Option A')">Option A</li>
<li class="dropdown-item" onclick="selectDropdownItem(this, 'Option B')">Option B</li>
<li class="dropdown-item" onclick="selectDropdownItem(this, 'Option C')">Option C</li>
</ul>
</div>
</div>
<div class="variant">
<span class="variant-label">Open</span>
<div class="dropdown">
<button class="dropdown-trigger" aria-haspopup="listbox" aria-expanded="true">
<span>Option B</span>
<div class="dropdown-chevron icon-img" data-icon="ChevronUpSmall_Stroke_16"></div>
</button>
<ul class="dropdown-menu" style="display:flex;flex-direction:column;position:static;margin-top:4px">
<li class="dropdown-item">Option A</li>
<li class="dropdown-item" style="background:var(--color-highlight-primary)">Option B</li>
<li class="dropdown-item">Option C</li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!-- ════════════════════════════════ ROWS ════════════════════════════════ -->
<section class="section" id="rows">
<h2 class="section-title">Rows</h2>
<div class="group">
<p class="group-title">Default Row</p>
<div style="width:260px; display:flex; flex-direction:column; gap:4px;">
<div class="variant-label">Normal</div>
<div class="row" role="option">
<div class="row-icon-left icon-img" data-icon="Checkmark_Stroke_16"></div>
<span>Option label</span>
</div>
<div class="variant-label" style="margin-top:8px">With right chevron</div>
<button class="row">
<span>Settings</span>
<div class="row-icon-right icon-img" data-icon="ChevronForwardSmall_Stroke_16"></div>
</button>
<div class="variant-label" style="margin-top:8px">Destructive</div>
<button class="row row-destructive">
<div class="row-icon-left icon-img" data-icon="Trash_Fill_16"></div>
<span>Delete</span>
</button>
<div class="variant-label" style="margin-top:8px">Disabled</div>
<button class="row" disabled>
<div class="row-icon-left icon-img" data-icon="Checkmark_Stroke_16"></div>
<span>Unavailable</span>
</button>
</div>
</div>
<div class="group">
<p class="group-title">Thumbnail Row</p>
<div style="width:260px; display:flex; flex-direction:column; gap:4px;">
<div class="row-thumbnail" role="option">
<div class="row-thumbnail-image">
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='40'%3E%3Crect width='71' height='40' fill='%23556'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23aaa' font-size='10'%3EScene A%3C/text%3E%3C/svg%3E" alt="Scene A" />
</div>
<span>Scene A</span>
<div class="row-icon-right icon-img" data-icon="Checkmark_Stroke_16"></div>
</div>
<div class="row-thumbnail" role="option">
<div class="row-thumbnail-image">
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='40'%3E%3Crect width='71' height='40' fill='%23446655'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23aaa' font-size='10'%3EScene B%3C/text%3E%3C/svg%3E" alt="Scene B" />
</div>
<span>Scene B</span>
</div>
</div>
</div>
<div class="group">
<p class="group-title">Account Row</p>
<div style="width:260px; display:flex; flex-direction:column; gap:4px;">
<div class="row-account">
<img class="row-account-avatar"
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23556677'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23fff' font-size='14' font-family='sans-serif'%3ETR%3C/text%3E%3C/svg%3E"
alt="Tyler Reynolds" />
<div class="row-account-info">
<span class="row-account-name">Tyler Reynolds</span>
<span class="row-account-email">tyler@all-turtles.com</span>
</div>
<div class="row-icon-right icon-img" data-icon="ChevronForward_Stroke_16"></div>
</div>
</div>
</div>
</section>
<!-- ════════════════════════════════ MENUS ════════════════════════════════ -->
<section class="section" id="menus">
<h2 class="section-title">Menus</h2>
<div class="variants" style="align-items:flex-start">
<!-- Default menu -->
<div class="variant">
<span class="variant-label">Default menu</span>
<ul class="menu" role="menu">
<li class="row" role="menuitem">
<div class="row-icon-left icon-img" data-icon="Checkmark_Stroke_16"></div>
<span>Option 1</span>
</li>
<li class="row" role="menuitem">
<div class="row-icon-left icon-img" data-icon="Checkmark_Stroke_16"></div>
<span>Option 2</span>
</li>
<li class="menu-divider" role="separator"></li>
<li class="row row-destructive" role="menuitem">
<div class="row-icon-left icon-img" data-icon="Trash_Fill_16"></div>
<span>Delete</span>
</li>
</ul>
</div>
<!-- Thumbnail menu -->
<div class="variant">
<span class="variant-label">Thumbnail menu</span>
<ul class="menu menu-thumbnail" role="listbox">
<li class="row-thumbnail" role="option" aria-selected="true">
<div class="row-thumbnail-image">
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='40'%3E%3Crect width='71' height='40' fill='%23557'/%3E%3C/svg%3E" alt="Scene A" />
</div>
<span>Scene A</span>
<div class="row-icon-right icon-img" data-icon="Checkmark_Stroke_16"></div>
</li>
<li class="row-thumbnail" role="option">
<div class="row-thumbnail-image">
<img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='71' height='40'%3E%3Crect width='71' height='40' fill='%23466'/%3E%3C/svg%3E" alt="Scene B" />
</div>
<span>Scene B</span>
</li>
</ul>
</div>
<!-- Account menu -->
<div class="variant">
<span class="variant-label">Account menu</span>
<div class="menu menu-account" role="dialog" aria-label="Account menu">
<div class="row-account">
<img class="row-account-avatar"
src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='20' fill='%23556677'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='%23fff' font-size='14' font-family='sans-serif'%3ETR%3C/text%3E%3C/svg%3E"
alt="Tyler Reynolds" />
<div class="row-account-info">
<span class="row-account-name">Tyler Reynolds</span>
<span class="row-account-email">tyler@all-turtles.com</span>
</div>
</div>