Repository navigation
Expand file tree
/
Copy pathdocs.html
More file actions
3794 lines (3614 loc) · 384 KB
/
Copy pathdocs.html
File metadata and controls
3794 lines (3614 loc) · 384 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" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GlassKit Docs – Documentation for the Glassmorphism CSS Library</title>
<meta name="description" content="Explore the official GlassKit documentation with live component previews, installation guides, theming, design tokens, and full class references.">
<meta name="robots" content="index, follow">
<meta name="theme-color" content="#0c1a24">
<link rel="canonical" href="https://glasskit.jungherz.com/docs.html">
<link rel="alternate" hreflang="en" href="https://glasskit.jungherz.com/docs.html">
<link rel="alternate" hreflang="de" href="https://glasskit.jungherz.com/de/docs.html">
<link rel="alternate" hreflang="x-default" href="https://glasskit.jungherz.com/docs.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="GlassKit">
<meta property="og:locale" content="en_US">
<meta property="og:locale:alternate" content="de_DE">
<meta property="og:title" content="GlassKit Docs – Documentation for the Glassmorphism CSS Library">
<meta property="og:description" content="Official GlassKit docs with live previews, usage examples, theming guidance, and class reference tables.">
<meta property="og:url" content="https://glasskit.jungherz.com/docs.html">
<meta property="og:image" content="https://glasskit.jungherz.com/intro_screenshot.jpg">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="GlassKit Docs – Documentation for the Glassmorphism CSS Library">
<meta name="twitter:description" content="Official GlassKit documentation with live previews, code examples, design tokens, and theming guidance.">
<meta name="twitter:image" content="https://glasskit.jungherz.com/intro_screenshot.jpg">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "TechArticle",
"headline": "GlassKit Documentation",
"name": "GlassKit Docs",
"url": "https://glasskit.jungherz.com/docs.html",
"description": "Official documentation for GlassKit, a glassmorphism CSS component library for modern web interfaces.",
"publisher": {
"@type": "Organization",
"name": "Jungherz GmbH",
"url": "https://www.jungherz.com"
}
}
</script>
<link rel="stylesheet" href="glasskit.css">
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
scroll-behavior: smooth;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
background: #0c1a24;
color: #e0e8ef;
line-height: 1.6;
}
[data-theme="light"] body {
background: #f0f4f8;
color: #1a2a36;
}
.docs-wrapper { display: flex; min-height: 100vh; }
/* Sidebar */
.docs-sidebar {
position: fixed; top: 0; left: 0;
width: 260px; height: 100vh;
padding: 24px 16px;
background: rgba(255,255,255,0.04);
border-right: 1px solid rgba(255,255,255,0.08);
overflow-y: auto; z-index: 100;
transition: background 0.3s, border 0.3s;
}
[data-theme="light"] .docs-sidebar {
background: rgba(255,255,255,0.7);
border-right: 1px solid rgba(0,0,0,0.08);
}
.docs-sidebar__title {
font-size: 18px; font-weight: 700;
letter-spacing: -0.3px;
color: var(--gl-color-primary);
margin-bottom: 2px;
display: flex;
align-items: center;
gap: 8px;
}
.docs-sidebar__subtitle {
font-size: 12px;
color: var(--gl-color-text-muted);
margin-bottom: 6px;
letter-spacing: 0.2px;
}
.docs-sidebar__version {
font-size: 11px;
color: var(--gl-color-text-muted);
margin-bottom: 24px;
padding: 4px 10px;
background: rgba(245,166,35,0.08);
border: 1px solid rgba(245,166,35,0.15);
border-radius: 9999px;
display: inline-block;
}
.docs-sidebar__group { margin-bottom: 20px; }
.docs-sidebar__group-title {
font-size: 10px; font-weight: 700;
text-transform: uppercase; letter-spacing: 1.5px;
color: var(--gl-color-text-muted);
margin-bottom: 8px; padding-left: 8px;
}
.docs-sidebar__link {
display: block; padding: 6px 12px;
font-size: 13px; color: var(--gl-color-text-muted);
text-decoration: none; border-radius: 8px;
transition: all 0.15s ease;
}
.docs-sidebar__link:hover {
color: var(--gl-color-text);
background: rgba(255,255,255,0.06);
}
[data-theme="light"] .docs-sidebar__link:hover {
background: rgba(0,0,0,0.04);
}
/* Main */
.docs-main {
margin-left: 260px;
padding: 48px 48px 120px;
max-width: 920px; width: 100%;
}
/* Hero */
.docs-hero {
margin-bottom: 56px; padding-bottom: 40px;
border-bottom: 1px solid var(--gl-border-subtle);
}
.docs-hero h1 {
font-size: 36px; font-weight: 700;
color: var(--gl-color-text);
margin-bottom: 12px; letter-spacing: -0.5px;
}
.docs-hero p {
font-size: 16px; color: var(--gl-color-text-muted);
max-width: 600px; line-height: 1.7;
}
.docs-hero__meta { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.docs-hero__badge {
display: inline-flex; align-items: center; gap: 6px;
padding: 4px 12px; border-radius: 9999px;
font-size: 12px; font-weight: 600;
background: rgba(245,166,35,0.12);
color: var(--gl-color-primary);
border: 1px solid rgba(245,166,35,0.2);
}
/* Sections */
.docs-section { margin-bottom: 64px; scroll-margin-top: 32px; }
.docs-section h2 {
font-size: 24px; font-weight: 700;
color: var(--gl-color-text);
margin-bottom: 8px; letter-spacing: -0.3px;
}
.docs-section > p {
font-size: 15px; color: var(--gl-color-text-muted);
margin-bottom: 24px; max-width: 600px;
}
.docs-section > h3 {
font-size: 17px; font-weight: 600;
color: var(--gl-color-text);
margin-top: 32px; margin-bottom: 12px;
}
.docs-family-link {
color: var(--gl-color-primary);
font-weight: 600;
text-decoration: none;
}
.docs-family-link:hover { text-decoration: underline; }
/* Preview */
.docs-preview {
padding: 32px 24px; border-radius: 16px;
background:
radial-gradient(ellipse at 30% 40%, rgba(60,160,160,0.15) 0%, transparent 55%),
radial-gradient(ellipse at 70% 60%, rgba(200,140,60,0.08) 0%, transparent 50%),
linear-gradient(170deg, #1b3e50 0%, #12313f 50%, #0e2530 100%);
border: 1px solid rgba(255,255,255,0.08);
margin-bottom: 12px; overflow: hidden;
}
[data-theme="light"] .docs-preview {
background:
radial-gradient(ellipse at 30% 40%, rgba(100,200,220,0.10) 0%, transparent 55%),
radial-gradient(ellipse at 70% 60%, rgba(240,180,100,0.06) 0%, transparent 50%),
linear-gradient(170deg, #f5f7fa 0%, #e8ecf1 100%);
border: 1px solid rgba(0,0,0,0.06);
}
.docs-preview--row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.docs-preview--compact { padding: 20px 24px; }
.docs-preview--constrained { max-width: 375px; }
/* Code */
.docs-code-wrapper { position: relative; margin-bottom: 8px; }
.docs-code {
background: rgba(0,0,0,0.3);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 12px;
padding: 16px 20px;
overflow-x: auto;
font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
font-size: 13px; line-height: 1.65;
color: #b8c9d8;
-webkit-overflow-scrolling: touch;
white-space: pre; tab-size: 2;
}
[data-theme="light"] .docs-code {
background: rgba(0,0,0,0.04);
border: 1px solid rgba(0,0,0,0.08);
color: #3a5060;
}
.docs-code .tag { color: #7ec8e3; }
.docs-code .attr { color: #c9a0dc; }
.docs-code .val { color: #a8d4a0; }
.docs-code .cls { color: #f5c76e; }
.docs-code .cmt { color: #607080; font-style: italic; }
/* Table */
.docs-table {
width: 100%; border-collapse: collapse;
font-size: 14px; margin-bottom: 16px;
}
.docs-table th {
text-align: left; font-weight: 600;
font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
color: var(--gl-color-text-muted);
padding: 10px 12px;
border-bottom: 2px solid var(--gl-border-subtle);
}
.docs-table td {
padding: 10px 12px;
border-bottom: 1px solid rgba(255,255,255,0.04);
vertical-align: top;
}
[data-theme="light"] .docs-table td {
border-bottom: 1px solid rgba(0,0,0,0.04);
}
.docs-table code {
font-family: 'SF Mono', 'Fira Code', monospace;
font-size: 13px; padding: 2px 6px; border-radius: 4px;
background: rgba(245,166,35,0.10);
color: var(--gl-color-primary);
}
.docs-table td:last-child { color: var(--gl-color-text-muted); }
/* A wide table scrolls in its own box, as a code block does, instead of
widening the page on a phone. The box takes the table's margin. */
.docs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
.docs-table-wrap > .docs-table { margin-bottom: 0; }
/* On a phone code stays on one line and the last column keeps room to
read; the table scrolls sideways where that is wider than the page. */
@media (max-width: 600px) {
.docs-table code { white-space: nowrap; }
.docs-table td:last-child { min-width: 12em; }
}
/* Quick Ref */
.docs-quickref {
display: grid; grid-template-columns: 1fr 1fr;
gap: 12px; margin-bottom: 16px;
}
.docs-quickref__card {
padding: 16px; border-radius: 12px;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.06);
}
[data-theme="light"] .docs-quickref__card {
background: rgba(255,255,255,0.5);
border: 1px solid rgba(0,0,0,0.06);
}
.docs-quickref__card h4 {
font-size: 12px; font-weight: 700;
text-transform: uppercase; letter-spacing: 1px;
color: var(--gl-color-primary);
margin-bottom: 8px;
}
.docs-quickref__card code {
display: block;
font-family: 'SF Mono', monospace;
font-size: 12px; color: var(--gl-color-text-muted);
line-height: 1.8;
}
/* Theme Button */
.docs-lang-switch {
position: fixed; top: 16px; right: 64px;
display: flex; align-items: center;
font-size: 12px; font-weight: 600;
color: var(--gl-color-text-muted);
text-decoration: none;
gap: 4px;
padding: 8px 14px;
height: 40px;
border-radius: 9999px;
background: var(--gl-surface-3);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--gl-border-medium);
z-index: 200;
transition: all 0.2s;
}
.docs-lang-switch:hover {
color: var(--gl-color-primary);
background: var(--gl-surface-5);
transform: scale(1.05);
}
.docs-theme-btn {
position: fixed; top: 16px; right: 16px;
width: 40px; height: 40px; border-radius: 50%;
background: var(--gl-surface-3);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--gl-border-medium);
display: flex; align-items: center; justify-content: center;
cursor: pointer; z-index: 200;
transition: all 0.2s;
}
.docs-theme-btn:hover { background: var(--gl-surface-5); transform: scale(1.05); }
.docs-theme-btn svg {
width: 18px; height: 18px;
fill: none; stroke: var(--gl-color-text); stroke-width: 2;
stroke-linecap: round; stroke-linejoin: round;
}
.docs-theme-btn .icon-sun { display: none; }
.docs-theme-btn .icon-moon { display: block; }
[data-theme="light"] .docs-theme-btn .icon-sun { display: block; }
[data-theme="light"] .docs-theme-btn .icon-moon { display: none; }
/* Responsive */
@media (max-width: 768px) {
.docs-sidebar { display: none; }
.docs-main { margin-left: 0; padding: 24px 16px 80px; }
.docs-quickref { grid-template-columns: 1fr; }
.docs-hero h1 { font-size: 28px; }
}
/* The plain close button of the sheet head example: its ring stays. */
.docs-sheet-close-plain { color: var(--gl-color-text); }
.docs-sheet-close-plain:not(:focus-visible) { background: transparent; border-color: transparent; box-shadow: none; }
</style>
</head>
<body>
<!-- Language Switch -->
<a href="de/docs.html" class="docs-lang-switch" title="Deutsche Version">
🇩🇪 DE
</a>
<!-- Theme Toggle -->
<button class="docs-theme-btn" onclick="toggleTheme()" aria-label="Toggle theme">
<svg class="icon-moon" viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
<svg class="icon-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
<div class="docs-wrapper">
<!-- SIDEBAR -->
<aside class="docs-sidebar">
<div class="docs-sidebar__title">🧊 GlassKit</div>
<div class="docs-sidebar__subtitle">Pure glassmorphism.</div>
<div class="docs-sidebar__version">v1.40.0 – Jungherz GmbH</div>
<div class="docs-sidebar__group">
<div class="docs-sidebar__group-title">Basics</div>
<a class="docs-sidebar__link" href="#installation">Installation</a>
<a class="docs-sidebar__link" href="#tokens">Design Tokens</a>
<a class="docs-sidebar__link" href="#theming">Theming (Light/Dark)</a>
<a class="docs-sidebar__link" href="#density">Density (Compact)</a>
<a class="docs-sidebar__link" href="#surface">Surfaces (Solid, Tint)</a>
<a class="docs-sidebar__link" href="#background">Background</a>
</div>
<div class="docs-sidebar__group">
<div class="docs-sidebar__group-title">Navigation</div>
<a class="docs-sidebar__link" href="#nav">Nav-Bar</a>
<a class="docs-sidebar__link" href="#pill">Pill-Buttons</a>
<a class="docs-sidebar__link" href="#tab-bar">Tab-Bar</a>
<a class="docs-sidebar__link" href="#tab-bar-floating">Tab-Bar – Floating</a>
<a class="docs-sidebar__link" href="#breadcrumbs">Breadcrumbs</a>
</div>
<div class="docs-sidebar__group">
<div class="docs-sidebar__group-title">Content</div>
<a class="docs-sidebar__link" href="#title">Title</a>
<a class="docs-sidebar__link" href="#card">Card</a>
<a class="docs-sidebar__link" href="#badge">Badge</a>
<a class="docs-sidebar__link" href="#avatar">Avatar</a>
<a class="docs-sidebar__link" href="#divider">Divider</a>
<a class="docs-sidebar__link" href="#status">Status Notice</a>
<a class="docs-sidebar__link" href="#list">List</a>
<a class="docs-sidebar__link" href="#tree">Tree</a>
<a class="docs-sidebar__link" href="#sorting">Sorting</a>
<a class="docs-sidebar__link" href="#skeleton">Skeleton</a>
<a class="docs-sidebar__link" href="#table">Table</a>
<a class="docs-sidebar__link" href="#prose">Prose</a>
<a class="docs-sidebar__link" href="#segmented">Segmented</a>
<a class="docs-sidebar__link" href="#steps">Steps</a>
<a class="docs-sidebar__link" href="#sheet">Sheet</a>
<a class="docs-sidebar__link" href="#empty">Empty state</a>
<a class="docs-sidebar__link" href="#date-strip">Date strip</a>
<a class="docs-sidebar__link" href="#calendar">Calendar</a>
<a class="docs-sidebar__link" href="#image-picker">Image picker</a>
</div>
<div class="docs-sidebar__group">
<div class="docs-sidebar__group-title">Actions</div>
<a class="docs-sidebar__link" href="#buttons">Buttons</a>
<a class="docs-sidebar__link" href="#modal">Modal</a>
<a class="docs-sidebar__link" href="#toast">Toast</a>
<a class="docs-sidebar__link" href="#popover">Popover</a>
<a class="docs-sidebar__link" href="#tooltip">Tooltip</a>
<a class="docs-sidebar__link" href="#menu">Menu</a>
</div>
<div class="docs-sidebar__group">
<div class="docs-sidebar__group-title">Forms</div>
<a class="docs-sidebar__link" href="#input">Input</a>
<a class="docs-sidebar__link" href="#textarea">Textarea</a>
<a class="docs-sidebar__link" href="#select">Select</a>
<a class="docs-sidebar__link" href="#search">Search</a>
<a class="docs-sidebar__link" href="#toggle">Toggle</a>
<a class="docs-sidebar__link" href="#checkbox">Checkbox</a>
<a class="docs-sidebar__link" href="#radio">Radio</a>
<a class="docs-sidebar__link" href="#range">Range Slider</a>
<a class="docs-sidebar__link" href="#progress">Progress Bar</a>
</div>
<div class="docs-sidebar__group">
<div class="docs-sidebar__group-title">Layout</div>
<a class="docs-sidebar__link" href="#accordion">Accordion</a>
<a class="docs-sidebar__link" href="#utilities">Utilities</a>
<a class="docs-sidebar__link" href="#quickref">All Classes</a>
<a class="docs-sidebar__link" href="#ai-reference">AI Reference</a>
<a class="docs-sidebar__link" href="#family">GlassKit Family</a>
</div>
</aside>
<!-- MAIN -->
<main class="docs-main">
<!-- HERO -->
<header class="docs-hero">
<h1>Glassmorphism UI Library</h1>
<p>A complete CSS component library with glassmorphism aesthetics – built by Jungherz GmbH. Pure CSS, no dependencies, Dark & Light mode.</p>
<div class="docs-hero__meta">
<span class="docs-hero__badge">v1.40.0</span>
<span class="docs-hero__badge">CSS only</span>
<span class="docs-hero__badge">Dark + Light</span>
<span class="docs-hero__badge">38 Components</span>
</div>
</header>
<!-- INSTALLATION -->
<section class="docs-section" id="installation">
<h2>Installation</h2>
<p>Include one CSS file – done. Optionally add a theme override for custom brand colors.</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="cmt"><!-- Base Library --></span>
<span class="tag"><link</span> <span class="attr">rel=</span><span class="val">"stylesheet"</span> <span class="attr">href=</span><span class="val">"glasskit.css"</span><span class="tag">></span>
<span class="cmt"><!-- Optional: Theme Override --></span>
<span class="tag"><link</span> <span class="attr">rel=</span><span class="val">"stylesheet"</span> <span class="attr">href=</span><span class="val">"theme-override.css"</span><span class="tag">></span>
<span class="cmt"><!-- Dark Mode (Default) --></span>
<span class="tag"><html</span> <span class="attr">data-theme=</span><span class="val">"dark"</span><span class="tag">></span>
<span class="cmt"><!-- Light Mode --></span>
<span class="tag"><html</span> <span class="attr">data-theme=</span><span class="val">"light"</span><span class="tag">></span></div>
</div>
</section>
<!-- TOKENS -->
<section class="docs-section" id="tokens">
<h2>Design Tokens</h2>
<p>All visual values are controlled via CSS Custom Properties.</p>
<h3>Color Palette</h3>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Dark Value</th><th>Usage</th></tr></thead>
<tbody>
<tr><td><code>--gl-color-primary</code></td><td>#f5a623</td><td>Primary color, buttons, active elements</td></tr>
<tr><td><code>--gl-color-primary-dark</code></td><td>#d4692a</td><td>Gradient end value</td></tr>
<tr><td><code>--gl-color-primary-text</code></td><td>var(--gl-color-primary)</td><td>Text and line icons in the primary colour: prose links, the active tab, the primary modal action, accent list rows, the range value, the accordion — since 1.26.0, see <a href="#primary-text">Primary as text</a></td></tr>
<tr><td><code>--gl-color-primary-on-glass</code></td><td>color-mix(in srgb, var(--gl-color-primary-text) 60%, #ffffff)</td><td>The primary as text on the glass of a card, a modal or a sheet: links, the range value, accent rows, the primary modal action (since 1.35.0); in light mode the primary text</td></tr>
<tr><td><code>--gl-focus-ring</code></td><td>color-mix(in srgb, var(--gl-color-primary) 15%, #ffffff)</td><td>The keyboard’s mark, one solid colour; <code>--gl-border-focus</code> and <code>--gl-shadow-focus</code> take it. In the light theme <code>var(--gl-color-primary-on-surface)</code> — since 1.40.0, see <a href="#focus-marks">Focus marks</a></td></tr>
<tr><td><code>--gl-color-text</code></td><td>#ffffff</td><td>Default text color</td></tr>
<tr><td><code>--gl-color-text-muted</code></td><td>rgba(255,255,255,0.65)</td><td>Secondary text</td></tr>
<tr><td><code>--gl-color-success</code></td><td>#34c759</td><td>Success status</td></tr>
<tr><td><code>--gl-color-error</code></td><td>#ff3b30</td><td>Error status</td></tr>
<tr><td><code>--gl-color-warning</code></td><td>#ffcc00</td><td>Warning status</td></tr>
<tr><td><code>--gl-color-{state}-surface</code>, <code>-border</code>, <code>-on-surface</code></td><td>color-mix(…)</td><td>Tinted fill, border and text of a state badge, derived from the state colour — for <code>success</code>, <code>error</code> and, since 1.18.0, <code>warning</code></td></tr>
</tbody>
</table></div>
<h3>Glass Surfaces</h3>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Value</th><th>Usage</th></tr></thead>
<tbody>
<tr><td><code>--gl-surface-1</code></td><td>rgba(…, 0.08)</td><td>Subtlest surface (status)</td></tr>
<tr><td><code>--gl-surface-2</code></td><td>rgba(…, 0.10)</td><td>Default (inputs, cards)</td></tr>
<tr><td><code>--gl-surface-3</code></td><td>rgba(…, 0.14)</td><td>Nav pills, badges</td></tr>
<tr><td><code>--gl-surface-4</code></td><td>rgba(…, 0.16)</td><td>Hover states</td></tr>
<tr><td><code>--gl-surface-5</code></td><td>rgba(…, 0.22)</td><td>Strong hover</td></tr>
<tr><td><code>--gl-surface-milk-strong</code></td><td>rgba(…, 0.75)</td><td>Secondary button</td></tr>
</tbody>
</table></div>
<h3>Gloss</h3>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Value</th><th>Usage</th></tr></thead>
<tbody>
<tr><td><code>--gl-gloss-card</code></td><td>linear-gradient(90deg, …)</td><td>Highlight along the top edge of <code>.glass-card--glow</code></td></tr>
<tr><td><code>--gl-gloss-modal</code></td><td>linear-gradient(90deg, …)</td><td>The same on <code>.glass-modal</code></td></tr>
<tr><td><code>--gl-gloss-progress</code></td><td>linear-gradient(to bottom, …)</td><td>Sheen on the progress fill</td></tr>
<tr><td><code>--gl-range-thumb-border</code></td><td>2px solid rgba(255,255,255,0.5)</td><td>Rim of the range thumb</td></tr>
<tr><td><code>--gl-gloss-droplet</code></td><td>radial-gradient(…), radial-gradient(…)</td><td>Highlight and glow in the drop of <a href="#droplet"><code>--droplet</code></a> rows (since 1.27.0)</td></tr>
</tbody>
</table></div>
<p>Since 1.24.0, the same in both themes. <a href="#surface"><code>data-surface="solid"</code></a> turns them off, together with the blur and the <code>--gl-inset-*</code> shine.</p>
<h3>Spacing & Radii</h3>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Value</th><th>Token</th><th>Value</th></tr></thead>
<tbody>
<tr><td><code>--gl-space-2xs</code></td><td>4px</td><td><code>--gl-radius-xs</code></td><td>8px</td></tr>
<tr><td><code>--gl-space-xs</code></td><td>8px</td><td><code>--gl-radius-sm</code></td><td>12px</td></tr>
<tr><td><code>--gl-space-sm</code></td><td>12px</td><td><code>--gl-radius-input</code></td><td>14px</td></tr>
<tr><td><code>--gl-space-md</code></td><td>16px</td><td><code>--gl-radius-btn</code></td><td>16px</td></tr>
<tr><td><code>--gl-space-lg</code></td><td>20px</td><td><code>--gl-radius-card</code></td><td>24px</td></tr>
<tr><td><code>--gl-space-xl</code></td><td>24px</td><td><code>--gl-radius-full</code></td><td>9999px</td></tr>
<tr><td><code>--gl-space-2xl</code></td><td>32px</td><td><code>--gl-radius-pill</code></td><td>50%</td></tr>
</tbody>
</table></div>
<h3>Density</h3>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Default</th><th>Compact</th><th>Usage</th></tr></thead>
<tbody>
<tr><td><code>--gl-control-height</code></td><td>52px</td><td>40px</td><td>Input, select, search</td></tr>
<tr><td><code>--gl-control-padding-x</code></td><td>unset → <code>--gl-space-md</code></td><td><code>--gl-space-sm</code></td><td>Inner left/right padding of input, select, textarea</td></tr>
<tr><td><code>--gl-btn-height</code></td><td>56px</td><td>40px</td><td>Button</td></tr>
<tr><td><code>--gl-btn-height-sm</code></td><td>44px</td><td>32px</td><td>Button <code>--sm</code></td></tr>
<tr><td><code>--gl-btn-height-lg</code></td><td>64px</td><td>48px</td><td>Button <code>--lg</code></td></tr>
<tr><td><code>--gl-textarea-min-height</code></td><td>120px</td><td>88px</td><td>Textarea</td></tr>
<tr><td><code>--gl-list-item-min-height</code></td><td>56px</td><td>48px</td><td>List row</td></tr>
<tr><td><code>--gl-list-item-padding-y</code></td><td>unset → <code>--gl-space-md</code></td><td>10px</td><td>List row, top and bottom</td></tr>
<tr><td><code>--gl-toggle-width</code> × <code>-height</code></td><td>52 × 30px</td><td>44 × 26px</td><td>Toggle track</td></tr>
<tr><td><code>--gl-toggle-thumb-size</code></td><td>22px</td><td>18px</td><td>Toggle thumb</td></tr>
<tr><td><code>--gl-check-size</code></td><td>24px</td><td>20px</td><td>Checkbox, radio</td></tr>
<tr><td><code>--gl-modal-action-height</code></td><td>52px</td><td>44px</td><td>Modal actions</td></tr>
</tbody>
</table></div>
</section>
<!-- THEMING -->
<section class="docs-section" id="theming">
<h2>Theming (Light / Dark)</h2>
<p>The theme is controlled via <code>data-theme</code> on the <code><html></code> element.</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="cmt">// Theme per JavaScript wechseln:</span>
function <span class="cls">toggleTheme</span>() {
const html = <span class="cls">document.documentElement</span>;
const current = html.getAttribute(<span class="val">'data-theme'</span>);
html.setAttribute(<span class="val">'data-theme'</span>,
current === <span class="val">'dark'</span> ? <span class="val">'light'</span> : <span class="val">'dark'</span>
);
}</div>
</div>
<h3 id="primary-text">Primary as text</h3>
<p>The primary does two jobs. As a fill it carries white text: buttons, the checked toggle, the current step, the chosen day. As text it stands on the page or the glass itself: links in <code>.glass-prose</code>, the icon and label of the active tab, the primary modal action, accent list rows, the value of a range, the accordion trigger under the pointer and the chevron of an open section. Since 1.26.0 the second job has a token of its own, <code>--gl-color-primary-text</code>. Unset by a project, it is the primary, so nothing changes.</p>
<p>A brand that darkens its primary so that white button text passes 4.5:1 gets a tone too dark for text on a dark background. Lighten the text in the dark theme, and the buttons keep their colour:</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>] {
<span class="attr">--gl-color-primary-text</span>: <span class="val">color-mix(in srgb, var(--gl-color-primary) 18%, #ffffff)</span>;
}
[data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-color-primary-text</span>: <span class="val">var(--gl-color-primary)</span>;
}</div>
</div>
<p>Write the light rule after the dark one: <code>:root</code> matches a page in the light theme too, and of two matching rules the later one wins. The right tone depends on the background, so measure it there. On GlassKit’s own dark background with <code>#c25028</code> as primary, this mix takes a link on a glass card from 1.37:1 to 5.05:1.</p>
<p id="primary-on-glass">Since 1.35.0 accent text on the glass of a card, a modal or a sheet takes <code>--gl-color-primary-on-glass</code>: in dark mode the primary text with 40 % white, because a card is brighter than the page. GlassKit’s own orange read 4.18:1 as a link on a card in dark mode; now it reads 5.54:1, and on the page it stays at 5.69:1. In light mode the token is the primary text. Links and chips of the page’s own on a card use it the same way, <code>color: var(--gl-color-primary-on-glass)</code>. The bright top of a <code>.glass-card--glow</code> stays out of reach for accent text: put it lower in the card, or use the text colour there.</p>
<p>The active tab takes <code>--gl-tab-bar-active-color</code> for its icon and label where that is set, else <code>--gl-color-primary-text</code>. The spotlight of the floating bar lightens the active item more than any other surface, so a brand may need a lighter tone there, up to white. Set it per theme like the text colour; <code>var(--gl-color-primary-text)</code> in the light rule gives the default back. Glow and dot stay in the primary, the spotlight in <code>--gl-tab-bar-spotlight-color</code>.</p>
<p>Since 1.31.0 muted text, card text and icons reach WCAG AA by default, in both themes. The primary as text does not, on purpose: GlassKit’s own orange reads 2.43:1 as text on the light page, but a darker brand may pass already or need far less, and a fixed mix with black would darken every brand alike. Where the light theme keeps the orange, darken it there; <code>--gl-color-primary-on-surface</code>, the ink of the primary badge, reaches 5.8:1. White on the primary button is part of the look as well, 2.7:1 in the light theme and 2.0:1 in the dark one on the lightest stop of the gradient; <code>--gl-color-on-primary</code> switches it to a dark ink that reaches 4.6:1 or more on every stop:</p>
<div class="docs-code-wrapper">
<div class="docs-code">[data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-color-primary-text</span>: <span class="val">var(--gl-color-primary-on-surface)</span>;
}
<span class="cmt">/* Dark text on the primary button, in both themes */</span>
<span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>], [data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-color-on-primary</span>: <span class="val">color-mix(in srgb, var(--gl-color-primary) 17%, #000)</span>;
}</div>
</div>
<p>Since 1.32.0 both ways have tokens of their own. To keep white text, darken the fill and leave the brand colour alone, which also draws focus rings, borders, the tab bar’s spotlight and the accent as text. <code>--gl-btn-primary-bg</code> is the whole background of the primary button, unset today’s gradient; <code>--gl-color-primary-fill</code> is the flat accent fill that carries text — the chosen day of <a href="#date-strip">date strip</a> and <a href="#calendar">calendar</a>, the number of the <a href="#steps">current step</a> —, unset the primary. On GlassKit’s own orange, white reaches 4.5:1 from 75 % primary in the light theme and from 65 % in the dark one, and the gradient below stays at or above that on every point:</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="cmt">/* White text on a darker fill: the button, the chosen days, the current step */</span>
<span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>] {
<span class="attr">--gl-color-primary-fill</span>: <span class="val">color-mix(in srgb, var(--gl-color-primary) 65%, #000)</span>;
}
[data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-color-primary-fill</span>: <span class="val">color-mix(in srgb, var(--gl-color-primary) 75%, #000)</span>;
}
<span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>], [data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-btn-primary-bg</span>: <span class="val">linear-gradient(135deg, var(--gl-color-primary-fill), color-mix(in srgb, var(--gl-color-primary-dark) 80%, #000))</span>;
}</div>
</div>
<p>On the chosen day of the date strip the weekday is now as strong as the number (since 1.32.0); faded, it stayed below 4.5:1 even on a fill the number reaches it on.</p>
<p>The dark ink reaches the radio now as well: its dot follows <code>--gl-color-on-primary</code> unless <code>--gl-radio-dot-color</code> is set, as the checkbox tick does (since 1.32.0). Where the brand colour is set at run time, the browser can pick the ink: <code>contrast-color()</code> gives black or white, whichever stands out more against the primary — black for GlassKit’s orange in both themes, 5.5:1 or more on every stop of the button. The 17 % ink stays the fallback where a browser does not know it yet:</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>], [data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-color-on-primary</span>: <span class="val">color-mix(in srgb, var(--gl-color-primary) 17%, #000)</span>;
}
<span class="cls">@supports</span> (color: contrast-color(red)) {
<span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>], [data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-color-on-primary</span>: <span class="val">contrast-color(var(--gl-color-primary))</span>;
}
}</div>
</div>
<p><code>contrast-color()</code> looks at the primary alone. With a fill of your own, or a gradient that ends much darker, measure the other end as well.</p>
<h3 id="focus-marks">Focus marks</h3>
<p>Since 1.40.0 every control shows where the keyboard is, in one solid colour: <code>--gl-focus-ring</code>. Press Tab through these:</p>
<div class="docs-preview docs-preview--row docs-preview--compact">
<button class="glass-btn glass-btn--primary glass-btn--auto" type="button">Primary</button>
<button class="glass-btn glass-btn--secondary glass-btn--auto" type="button">Secondary</button>
<button class="glass-pill" type="button" aria-label="More"><svg viewBox="0 0 24 24"><circle cx="12" cy="5" r="1.5" fill="currentColor" stroke="none"/><circle cx="12" cy="12" r="1.5" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="1.5" fill="currentColor" stroke="none"/></svg></button>
<label class="glass-checkbox"><input class="glass-checkbox__input" type="checkbox"><span class="glass-checkbox__box"><svg viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"/></svg></span><span class="glass-checkbox__label">Checkbox</span></label>
<label class="glass-toggle"><input class="glass-toggle__input" type="checkbox" checked><span class="glass-toggle__track"><span class="glass-toggle__thumb"></span></span><span class="glass-toggle__label">Toggle</span></label>
<input class="glass-input" style="max-width:220px" type="text" aria-label="A field" placeholder="A field">
</div>
<p>Buttons, pills and the theme toggle draw it as a 2 px outline that stands 2 px clear of them, and the actions of a modal inside the action, where the modal would cut it off. Until 1.39.0 these had no mark at all. Every other part takes the ring of <code>--gl-shadow-focus</code> or <code>--gl-border-focus</code>, now 2 px wide. Both were tints of the primary and read below 3:1, which a focus mark needs against what lies beside it (WCAG 1.4.11). Both take the solid colour now, and it follows the brand:</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="cmt">/* The defaults */</span>
<span class="cls">:root</span>, [data-theme=<span class="val">"dark"</span>] {
<span class="attr">--gl-focus-ring</span>: <span class="val">color-mix(in srgb, var(--gl-color-primary) 15%, #ffffff)</span>;
}
[data-theme=<span class="val">"light"</span>] {
<span class="attr">--gl-focus-ring</span>: <span class="val">var(--gl-color-primary-on-surface)</span>;
}</div>
</div>
<p>GlassKit’s orange reads 3:1 or more on the page and on glass. What lies behind the glass decides how bright it gets, and a darker brand can fall short on the brightest spot, a glow card in the middle of the page in dark mode, with glass on it. A colour of your own goes into <code>--gl-focus-ring</code>: keep it solid and measure it there. A project that set <code>--gl-border-focus</code> or <code>--gl-shadow-focus</code> itself keeps its own ring until it drops them, and an outline of its own on <code>:focus-visible</code> is no longer needed.</p>
<p>In forced colors, Windows’ high contrast mode, the browser drops <code>box-shadow</code> and with it every ring. There each part shows an outline in the text colour, inside the rows of lists, accordions and menus, which clip what lies outside them.</p>
<h3>Right to left</h3>
<p>Since 1.20.0 the components follow the writing direction. Set <code>dir="rtl"</code> on <code><html></code> or on any container: paddings, insets and borders are logical properties, so labels and hints, the search icon, list dividers, popover anchors, tab badges, modal actions, the toast’s close button and the alignment of accordion, list, table and prose all mirror. Where two values have to move together — the select’s chevron and the room kept for it, the toggle’s thumb and its travel, the progress fill’s gradient — the rule sits under <code>:dir(rtl)</code>: Chrome and Edge from 120, Safari from 16.4, Firefox from 49. An older browser keeps those parts left to right instead of tearing them apart.</p>
<h3>Printing</h3>
<p>Print dialogs leave out background graphics by default, and some states are drawn with a background only. Since 1.21.1 those parts keep their colours on paper — the checked box and its tick, the chosen radio, the toggle’s track, the progress fill, the current step, the chosen day of date strip and calendar, the slider thumb and the tone dots — while the rest of the page prints economically. Nothing to set. A dark page prints its light text and surfaces on white paper; a page meant for printing switches to the light theme for it:</p>
<div class="docs-code-wrapper">
<div class="docs-code">let printTheme = null;
addEventListener(<span class="val">'beforeprint'</span>, () => {
printTheme = document.documentElement.getAttribute(<span class="val">'data-theme'</span>);
document.documentElement.setAttribute(<span class="val">'data-theme'</span>, <span class="val">'light'</span>);
});
addEventListener(<span class="val">'afterprint'</span>, () => {
if (printTheme) document.documentElement.setAttribute(<span class="val">'data-theme'</span>, printTheme);
else document.documentElement.removeAttribute(<span class="val">'data-theme'</span>);
});</div>
</div>
</section>
<!-- DENSITY -->
<section class="docs-section" id="density">
<h2>Density (Compact)</h2>
<p>Admin screens, desktop layouts and narrow forms want denser controls. Since 1.21.0 the control sizes are <a href="#tokens">density tokens</a>, and <code>data-density="compact"</code> on the <code><html></code> element swaps in a smaller set: fields and buttons 40px high instead of 52 and 56, smaller toggles, checkboxes and radios, denser list rows and modal actions. Colours, type and spacing stay as they are. Without the attribute every control keeps the size it has always had.</p>
<div class="docs-preview">
<div style="display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px">
<div class="gl-stack gl-stack--sm">
<span class="glass-label">Default</span>
<input class="glass-input" type="text" placeholder="Name">
<button class="glass-btn glass-btn--primary">Save</button>
<label class="glass-toggle"><input class="glass-toggle__input" type="checkbox" checked><span class="glass-toggle__track"><span class="glass-toggle__thumb"></span></span><span class="glass-toggle__label">Notifications</span></label>
<label class="glass-checkbox"><input class="glass-checkbox__input" type="checkbox" checked><span class="glass-checkbox__box"><svg viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"/></svg></span><span class="glass-checkbox__label">Remember me</span></label>
</div>
<div class="gl-stack gl-stack--sm" data-density="compact">
<span class="glass-label">Compact</span>
<input class="glass-input" type="text" placeholder="Name">
<button class="glass-btn glass-btn--primary">Save</button>
<label class="glass-toggle"><input class="glass-toggle__input" type="checkbox" checked><span class="glass-toggle__track"><span class="glass-toggle__thumb"></span></span><span class="glass-toggle__label">Notifications</span></label>
<label class="glass-checkbox"><input class="glass-checkbox__input" type="checkbox" checked><span class="glass-checkbox__box"><svg viewBox="0 0 24 24"><polyline points="20 6 9 17 4 12"/></svg></span><span class="glass-checkbox__label">Remember me</span></label>
</div>
</div>
</div>
<p>The preview sets the attribute on its right column. On a page it belongs on <code><html></code>, next to <code>data-theme</code>: an element further down that carries <code>data-theme="dark"</code> re-declares the default sizes.</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><html</span> <span class="attr">data-theme=</span><span class="val">"dark"</span> <span class="attr">data-density=</span><span class="val">"compact"</span><span class="tag">></span>
<span class="cmt">// Switch at runtime:</span>
<span class="cls">document.documentElement</span>.setAttribute(<span class="val">'data-density'</span>, <span class="val">'compact'</span>);
<span class="cls">document.documentElement</span>.removeAttribute(<span class="val">'data-density'</span>);
<span class="cmt">/* One token for both densities – or for compact only: */</span>
:root { --gl-btn-height: <span class="val">48px</span>; }
[data-density=<span class="val">'compact'</span>] { --gl-btn-height: <span class="val">36px</span>; }</div>
</div>
<p>The toggle's thumb inset and travel — in either writing direction — and the first-line alignment of toggle, checkbox and radio are derived from the tokens, so any size a project sets stays aligned. The rules read every size with today's value as fallback, like <code>--gl-modal-max-width</code>, so a page whose token sheet predates them keeps the old sizes.</p>
</section>
<!-- SURFACES -->
<section class="docs-section" id="surface">
<h2>Surfaces (Solid, Tint)</h2>
<p>Not every screen wants glass: admin screens, forms on a plain background, designs without it. Since 1.24.0 <code>data-surface="solid"</code> on the <code><html></code> element makes every surface opaque and turns blur and gloss off. Each surface takes the colour the glass shows over the theme’s middle background, <code>--gl-color-bg-mid</code>: cards, fields and buttons keep their order, and a re-branded background carries over. The inner shine (<code>--gl-inset-*</code>), the highlight along the top edge of the glow card and the modal, the sheen on the progress fill and the rim of the range thumb are off. Borders, drop shadows, the tints of badges and chips and the dimming overlay stay as they are. Without the attribute nothing changes.</p>
<p>A page with a background of its own — a brand colour, a photo, a pattern — takes <code>data-surface="tint"</code> instead (since 1.25.0). A surface mixed over <code>--gl-color-bg-mid</code> would stand out there as a foreign block, so the surfaces in the flow of the page become see-through tints of the text colour, nothing blurred: a field on a card stays as see-through as the card, and its contrast follows the text. What lies over other content keeps the solid values — modal, sheet, popover, toast and the tab bars, with the fields and rows inside them — and so does the secondary button, a light plate for dark ink. Blur and gloss are off as with solid; a blur behind dialogs stays where a project sets <a href="#modal"><code>--gl-blur-overlay</code></a>.</p>
<div class="docs-preview" style="background:repeating-linear-gradient(45deg,#e63946 0 18px,#2a9d8f 18px 36px,#f4a261 36px 54px,#264653 54px 72px)">
<div style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px">
<div class="glass-card gl-stack gl-stack--sm" style="padding:20px">
<span class="glass-label">Glass</span>
<input class="glass-input" type="text" placeholder="Name">
<button class="glass-btn glass-btn--secondary">Cancel</button>
<label class="glass-toggle"><input class="glass-toggle__input" type="checkbox" checked><span class="glass-toggle__track"><span class="glass-toggle__thumb"></span></span><span class="glass-toggle__label">Notifications</span></label>
</div>
<div class="glass-card gl-stack gl-stack--sm" data-surface="solid" style="padding:20px">
<span class="glass-label">Solid</span>
<input class="glass-input" type="text" placeholder="Name">
<button class="glass-btn glass-btn--secondary">Cancel</button>
<label class="glass-toggle"><input class="glass-toggle__input" type="checkbox" checked><span class="glass-toggle__track"><span class="glass-toggle__thumb"></span></span><span class="glass-toggle__label">Notifications</span></label>
</div>
<div class="glass-card gl-stack gl-stack--sm" data-surface="tint" style="padding:20px">
<span class="glass-label">Tint</span>
<input class="glass-input" type="text" placeholder="Name">
<button class="glass-btn glass-btn--secondary">Cancel</button>
<label class="glass-toggle"><input class="glass-toggle__input" type="checkbox" checked><span class="glass-toggle__track"><span class="glass-toggle__thumb"></span></span><span class="glass-toggle__label">Notifications</span></label>
</div>
</div>
</div>
<p>The preview sets the attribute on its second and third card. On a page it belongs on <code><html></code>, next to <code>data-theme</code> and <code>data-density</code>; a theme scope further down — an element with its own <code>data-theme</code> — stays solid. Everything runs through tokens, so a project tunes the preset as it tunes a theme. GlassKit Elements carries the attribute into its shadow roots, as it does with <code>data-theme</code>.</p>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><html</span> <span class="attr">data-theme=</span><span class="val">"dark"</span> <span class="attr">data-surface=</span><span class="val">"solid"</span><span class="tag">></span>
<span class="cmt">// Switch at runtime:</span>
<span class="cls">document.documentElement</span>.setAttribute(<span class="val">'data-surface'</span>, <span class="val">'solid'</span>);
<span class="cls">document.documentElement</span>.removeAttribute(<span class="val">'data-surface'</span>);
<span class="cmt">/* Tune it like a theme – here a darker card surface in dark mode: */</span>
[data-surface=<span class="val">'solid'</span>] { --gl-surface-2: <span class="val">#17313d</span>; }
<span class="cmt">/* Both presets mix their opaque surfaces over --gl-color-bg-mid; the panels
of the tint preset take them as --gl-solid-surface-1 … -5 and
--gl-solid-card-glow-*. A brand sets the middle colour to its own: */</span>
[data-surface=<span class="val">'tint'</span>] { --gl-color-bg-mid: <span class="val">#5c1310</span>; }</div>
</div>
<p>The gloss is made of tokens now as well: <code>--gl-gloss-card</code>, <code>--gl-gloss-modal</code>, <code>--gl-gloss-progress</code> and <code>--gl-range-thumb-border</code> (see <a href="#tokens">Design Tokens</a>). Before 1.24.0 they were literals that a project’s own solid skin could not reach.</p>
</section>
<!-- BACKGROUND -->
<section class="docs-section" id="background">
<h2>Background</h2>
<p>The glass effect requires a colored background.</p>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Class</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>.glass-bg</code></td><td>Full background with aurora light effects</td></tr>
<tr><td><code>.glass-bg--has-tab-bar</code></td><td>Modifier: bottom padding for tab bar</td></tr>
<tr><td><code>.glass-bg--has-tab-bar-floating</code></td><td>Modifier: bottom padding for floating tab bar + accessory</td></tr>
</tbody>
</table></div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><div</span> <span class="attr">class=</span><span class="val">"glass-bg glass-bg--has-tab-bar"</span><span class="tag">></span>
<span class="cmt"><!-- Inhalte --></span>
<span class="tag"></div></span></div>
</div>
</section>
<!-- NAV -->
<section class="docs-section" id="nav">
<h2>Navigation Bar</h2>
<div class="docs-preview docs-preview--constrained">
<nav class="glass-nav">
<button class="glass-pill"><svg viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6"/></svg></button>
<button class="glass-pill"><svg viewBox="0 0 24 24"><circle cx="12" cy="5" r="1.5" fill="currentColor" stroke="none"/><circle cx="12" cy="12" r="1.5" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="1.5" fill="currentColor" stroke="none"/></svg></button>
</nav>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><nav</span> <span class="attr">class=</span><span class="val">"glass-nav"</span><span class="tag">></span>
<span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-pill"</span><span class="tag">></span><span class="cmt"><!-- SVG --></span><span class="tag"></button></span>
<span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-pill"</span><span class="tag">></span><span class="cmt"><!-- SVG --></span><span class="tag"></button></span>
<span class="tag"></nav></span></div>
</div>
</section>
<!-- PILL -->
<section class="docs-section" id="pill">
<h2>Pill-Buttons</h2>
<p>Round icon buttons for navigation and actions.</p>
<div class="docs-preview docs-preview--row docs-preview--compact">
<button class="glass-pill"><svg viewBox="0 0 24 24"><polyline points="15 18 9 12 15 6"/></svg></button>
<button class="glass-pill"><svg viewBox="0 0 24 24"><circle cx="12" cy="5" r="1.5" fill="currentColor" stroke="none"/><circle cx="12" cy="12" r="1.5" fill="currentColor" stroke="none"/><circle cx="12" cy="19" r="1.5" fill="currentColor" stroke="none"/></svg></button>
<button class="glass-theme-toggle" onclick="toggleTheme()"><svg class="icon-moon" viewBox="0 0 24 24"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg><svg class="icon-sun" viewBox="0 0 24 24"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg></button>
</div>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Class</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>.glass-pill</code></td><td>Standard glass circle (46×46px)</td></tr>
<tr><td><code>.glass-theme-toggle</code></td><td>Pill with moon/sun icon switch</td></tr>
</tbody>
</table></div>
</section>
<!-- TAB BAR -->
<section class="docs-section" id="tab-bar">
<h2>Tab-Bar</h2>
<p>Fixed bottom navigation with glass background and optional badge. The items sit in the middle of the bar; on an iPhone with <code>viewport-fit=cover</code> they keep to the top, above the home indicator (since 1.28.0; before, they sat at the top everywhere, with 26 px empty below them on Android and the desktop).</p>
<div class="docs-preview" style="position:relative;height:82px;overflow:hidden;">
<nav class="glass-tab-bar" style="position:absolute;bottom:0;left:0;right:0;">
<button class="glass-tab-bar__item is-active">
<span class="glass-tab-bar__icon">
<svg viewBox="0 0 24 24"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg>
</span>
<span class="glass-tab-bar__label">Home</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon">
<svg viewBox="0 0 24 24"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
<span class="glass-tab-bar__badge">3</span>
</span>
<span class="glass-tab-bar__label">Documents</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon">
<svg viewBox="0 0 24 24"><path d="M12 16V4"/><polyline points="8 8 12 4 16 8"/><path d="M20 17v1a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-1"/></svg>
</span>
<span class="glass-tab-bar__label">Upload</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon">
<svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
</span>
<span class="glass-tab-bar__label">Settings</span>
</button>
</nav>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><nav</span> <span class="attr">class=</span><span class="val">"glass-tab-bar"</span><span class="tag">></span>
<span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__item is-active"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__icon"</span><span class="tag">></span><span class="cmt"><!-- SVG --></span><span class="tag"></span></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__label"</span><span class="tag">></span>Start<span class="tag"></span></span>
<span class="tag"></button></span>
<span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__item"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__icon"</span><span class="tag">></span>
<span class="cmt"><!-- SVG --></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__badge"</span><span class="tag">></span>3<span class="tag"></span></span>
<span class="tag"></span></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__label"</span><span class="tag">></span>Contracts<span class="tag"></span></span>
<span class="tag"></button></span>
<span class="tag"></nav></span></div>
</div>
<h3 id="tab-bar-icons" style="margin-top:var(--gl-space-lg);">Icons and tokens</h3>
<p>Since 1.28.0 every state colours the icon box, and an SVG strokes in <code>currentColor</code>. So the icon can be anything that takes a colour — a font icon such as Material Icons, an <code><img></code> drawn as a mask, an element of your own — and it follows active and hover, the lens of the <a href="#droplet">drop</a> and the drag. A font icon takes the box’s 24 px unless its own class sets a size. Give it <code>aria-hidden="true"</code>: its text would join the tab’s name. Six tokens, all unset, so nothing changes until a project sets them:</p>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Unset</th><th>Effect</th></tr></thead>
<tbody>
<tr><td><code>--gl-tab-bar-color</code></td><td><code>--gl-icon-muted</code></td><td>Icon and label of the inactive tabs</td></tr>
<tr><td><code>--gl-tab-bar-hover-color</code></td><td><code>--gl-icon-default</code></td><td>Icon and label of a hovered tab; set it as well when the colour above is lighter</td></tr>
<tr><td><code>--gl-tab-bar-label-size</code></td><td><code>10px</code></td><td>Size of the labels</td></tr>
<tr><td><code>--gl-tab-bar-icon-size</code></td><td><code>24px</code></td><td>Size of the icon box and of an SVG in it (since 1.33.0); a compact bar takes 18 px</td></tr>
<tr><td><code>--gl-tab-bar-active-weight</code></td><td><code>--gl-font-weight-medium</code></td><td>Weight of the active tab’s label (since 1.33.0); every label is medium unless this is set</td></tr>
<tr><td><code>--gl-tab-bar-z-index</code></td><td><code>900</code></td><td>Stacking of the fixed bar and of the floating dock</td></tr>
</tbody>
</table></div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__item"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__icon"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"material-icons"</span> <span class="attr">aria-hidden=</span><span class="val">"true"</span><span class="tag">></span>home<span class="tag"></span></span>
<span class="tag"></span></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__label"</span><span class="tag">></span>Home<span class="tag"></span></span>
<span class="tag"></button></span>
<span class="cls">:root</span> {
<span class="attr">--gl-tab-bar-color</span>: <span class="val">var(--gl-icon-strong)</span>;
<span class="attr">--gl-tab-bar-hover-color</span>: <span class="val">var(--gl-color-text)</span>;
<span class="attr">--gl-tab-bar-label-size</span>: <span class="val">12px</span>;
}</div>
</div>
<p>Since 1.33.0 the items move only what a state changes: colour, surface, shadow, opacity and the press (<code>transition-property: color, background-color, box-shadow, opacity, transform</code>). With <code>all</code>, a bar that changed its layout — upright, floating, a rail — let padding, width and height glide for 250 ms, and an item measured in that time was not yet its size.</p>
<h3 id="tab-bar-dot" style="margin-top:var(--gl-space-lg);">A dot without a count</h3>
<p>Since 1.38.0 <code>.glass-tab-bar__badge--dot</code> says “something needs you here” without a number — an open payment at the account tab: a 10 px dot at the icon’s corner in the plain error red, with a 2 px ring in the colour behind the bar that sets it off the icon. In the sidebar it stands at the row’s end, as the count does. The dot says nothing to a screen reader: put the reason into the item’s name. Tokens set the count and the dot alike; the sidebar keeps its place at the row’s end and takes size and ring.</p>
<div class="docs-preview" style="position:relative;height:82px;overflow:hidden;">
<nav class="glass-tab-bar" style="position:absolute;bottom:0;left:0;right:0;">
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><rect x="2" y="4" width="20" height="16" rx="2"/><polyline points="22 6 12 13 2 6"/></svg><span class="glass-tab-bar__badge">3</span></span>
<span class="glass-tab-bar__label">Messages</span>
</button>
<button class="glass-tab-bar__item" aria-label="Account, a payment is open">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><circle cx="12" cy="8" r="4"/><path d="M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"/></svg><span class="glass-tab-bar__badge glass-tab-bar__badge--dot"></span></span>
<span class="glass-tab-bar__label">Account</span>
</button>
</nav>
</div>
<div class="docs-table-wrap"><table class="docs-table">
<thead><tr><th>Token</th><th>Unset</th><th>Effect</th></tr></thead>
<tbody>
<tr><td><code>--gl-tab-bar-badge-size</code></td><td><code>16px</code></td><td>Height and least width of the count; the dot is 10 px unless set</td></tr>
<tr><td><code>--gl-tab-bar-badge-top</code></td><td><code>-4px</code></td><td>From the icon’s top; the dot -2 px</td></tr>
<tr><td><code>--gl-tab-bar-badge-end</code></td><td><code>-8px</code></td><td>From the icon’s end; the dot -3 px</td></tr>
<tr><td><code>--gl-tab-bar-badge-ring-width</code></td><td><code>0px</code></td><td>A ring around it; the dot 2 px</td></tr>
<tr><td><code>--gl-tab-bar-badge-ring-color</code></td><td><code>--gl-color-bg-mid</code></td><td>The ring’s colour, the page’s middle background</td></tr>
</tbody>
</table></div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__item"</span> <span class="attr">aria-label=</span><span class="val">"Account, a payment is open"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__icon"</span><span class="tag">></span>
<span class="cmt"><!-- SVG --></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__badge glass-tab-bar__badge--dot"</span><span class="tag">></span></span> <span class="cmt"><!-- no text --></span>
<span class="tag"></span></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__label"</span><span class="tag">></span>Account<span class="tag"></span></span>
<span class="tag"></button></span></div>
</div>
<h3 id="tab-bar-layouts" style="margin-top:var(--gl-space-lg);">Sidebar, rail and top bar</h3>
<p>Since 1.32.0 the same navigation goes where the layout needs it, not only along the bottom edge. The items stay as they are — icon, label, badge, the active state, the <a href="#droplet">drop</a> — and only the bar’s layout changes. <code>--vertical</code> makes it a column for a sidebar: placed by the page’s layout, a grid column for example, and as high as its container, one item per row with the icon before the label at body size and the badge at the row’s end. The active row stands on a surface of its own, <code>--gl-tab-bar-active-bg</code> where that is set, else <code>--gl-surface-3</code>. With <code>--rail</code> as well, the column shows the icons alone, <code>--gl-tab-bar-rail-width</code> (72 px) wide: the label stays the item’s name for assistive technology, hidden from view, so show it in a <a href="#tooltip">tooltip</a>.</p>
<div class="docs-preview docs-preview--row" style="align-items:stretch;">
<div style="flex:1 1 280px;display:grid;grid-template-columns:210px minmax(0,1fr);height:260px;border:1px solid var(--gl-border-subtle);border-radius:var(--gl-radius-sm);overflow:hidden;">
<nav class="glass-tab-bar glass-tab-bar--vertical" aria-label="Sections" data-docs-tabs>
<button class="glass-tab-bar__item is-active">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg></span>
<span class="glass-tab-bar__label">Home</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="8" y1="13" x2="16" y2="13"/><line x1="8" y1="17" x2="13" y2="17"/></svg><span class="glass-tab-bar__badge">3</span></span>
<span class="glass-tab-bar__label">Invoices</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></span>
<span class="glass-tab-bar__label">Customers</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg></span>
<span class="glass-tab-bar__label">Settings</span>
</button>
</nav>
<div aria-hidden="true" style="padding:20px;"><div class="glass-skeleton"><div class="glass-skeleton__line glass-skeleton__line--title" style="width:60%"></div><div class="glass-skeleton__line"></div><div class="glass-skeleton__line" style="width:80%"></div></div></div>
</div>
<div style="flex:1 1 200px;display:grid;grid-template-columns:auto minmax(0,1fr);height:260px;border:1px solid var(--gl-border-subtle);border-radius:var(--gl-radius-sm);overflow:hidden;">
<nav class="glass-tab-bar glass-tab-bar--vertical glass-tab-bar--rail" aria-label="Sections" data-docs-tabs>
<button class="glass-tab-bar__item is-active">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/><polyline points="9 22 9 12 15 12 15 22"/></svg></span>
<span class="glass-tab-bar__label">Home</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="8" y1="13" x2="16" y2="13"/><line x1="8" y1="17" x2="13" y2="17"/></svg><span class="glass-tab-bar__badge">3</span></span>
<span class="glass-tab-bar__label">Invoices</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></span>
<span class="glass-tab-bar__label">Customers</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg></span>
<span class="glass-tab-bar__label">Settings</span>
</button>
</nav>
<div aria-hidden="true" style="padding:20px;"><div class="glass-skeleton"><div class="glass-skeleton__line glass-skeleton__line--title" style="width:60%"></div><div class="glass-skeleton__line"></div><div class="glass-skeleton__line" style="width:80%"></div></div></div>
</div>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><div</span> <span class="attr">class=</span><span class="val">"app"</span><span class="tag">></span> <span class="cmt"><!-- display: grid; grid-template-columns: 220px 1fr; height: 100dvh --></span>
<span class="tag"><nav</span> <span class="attr">class=</span><span class="val">"glass-tab-bar glass-tab-bar--vertical"</span> <span class="attr">aria-label=</span><span class="val">"Sections"</span><span class="tag">></span>
<span class="tag"><a</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__item is-active"</span> <span class="attr">href=</span><span class="val">"/"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__icon"</span><span class="tag">></span><span class="cmt"><!-- SVG --></span><span class="tag"></span></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__label"</span><span class="tag">></span>Home<span class="tag"></span></span>
<span class="tag"></a></span>
<span class="tag"><a</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__item"</span> <span class="attr">href=</span><span class="val">"/invoices"</span><span class="tag">></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__icon"</span><span class="tag">></span><span class="cmt"><!-- SVG --></span><span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__badge"</span><span class="tag">></span>3<span class="tag"></span></span></span>
<span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__label"</span><span class="tag">></span>Invoices<span class="tag"></span></span>
<span class="tag"></a></span>
<span class="tag"></nav></span>
<span class="tag"><main></span>…<span class="tag"></main></span>
<span class="tag"></div></span>