Repository navigation
Expand file tree
/
Copy pathdocs.html
More file actions
2244 lines (2105 loc) · 175 KB
/
Copy pathdocs.html
File metadata and controls
2244 lines (2105 loc) · 175 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); }
/* 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; }
}
</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.26.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>
</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="#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>
</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.26.0</span>
<span class="docs-hero__badge">CSS only</span>
<span class="docs-hero__badge">Dark + Light</span>
<span class="docs-hero__badge">34 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>
<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-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.60)</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>
<h3>Glass Surfaces</h3>
<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>
<h3>Gloss</h3>
<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>
</tbody>
</table>
<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>
<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>
<h3>Density</h3>
<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>
</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>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>
<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>
<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 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>
<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>
</section>
<!-- TAB BAR -->
<section class="docs-section" id="tab-bar">
<h2>Tab-Bar</h2>
<p>Fixed bottom navigation with glass background and optional badge.</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>
</section>
<!-- TAB BAR – FLOATING -->
<section class="docs-section" id="tab-bar-floating">
<h2>Tab-Bar – Floating</h2>
<p>Pill-shaped, centered, floating variant inspired by iOS 26 Liquid Glass. Pair with an optional <code>.glass-tab-bar__accessory</code> capsule (e.g. search, compose) — sits next to the bar with its own glass material. The active tab gets a soft radial Spotlight halo instead of the underline dot, in <code>--gl-tab-bar-spotlight-color</code> (the primary). Its icon and label take <code>--gl-tab-bar-active-color</code> where that is set, else <code>--gl-color-primary-text</code> (since 1.26.0, see <a href="#primary-text">Primary as text</a>).</p>
<div class="docs-preview" style="position:relative;height:120px;overflow:hidden;">
<div class="glass-tab-bar-dock" style="position:absolute;">
<nav class="glass-tab-bar glass-tab-bar--floating">
<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="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg></span>
<span class="glass-tab-bar__label">View</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="2"/><path d="M16.24 7.76a6 6 0 0 1 0 8.49M7.76 16.24a6 6 0 0 1 0-8.49"/><path d="M19.07 4.93a10 10 0 0 1 0 14.14M4.93 19.07a10 10 0 0 1 0-14.14"/></svg></span>
<span class="glass-tab-bar__label">Radio</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M9 18V5l12-2v13"/><circle cx="6" cy="18" r="3"/><circle cx="18" cy="16" r="3"/></svg></span>
<span class="glass-tab-bar__label">Library</span>
</button>
</nav>
<button class="glass-tab-bar__accessory" aria-label="Search">
<svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>
</button>
</div>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><div</span> <span class="attr">class=</span><span class="val">"glass-tab-bar-dock"</span><span class="tag">></span>
<span class="tag"><nav</span> <span class="attr">class=</span><span class="val">"glass-tab-bar glass-tab-bar--floating"</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>Home<span class="tag"></span></span>
<span class="tag"></button></span>
<span class="cmt"><!-- more items --></span>
<span class="tag"></nav></span>
<span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-tab-bar__accessory"</span> <span class="attr">aria-label=</span><span class="val">"Search"</span><span class="tag">></span>
<span class="cmt"><!-- SVG --></span>
<span class="tag"></button></span>
<span class="tag"></div></span></div>
</div>
<h3 style="margin-top:var(--gl-space-lg);">Accessory accent variants</h3>
<p>Add <code>--accent</code>, <code>--success</code>, or <code>--error</code> to highlight the accessory with a colored capsule (filled background, white icon).</p>
<div class="docs-preview" style="position:relative;height:120px;overflow:hidden;">
<div class="glass-tab-bar-dock" style="position:absolute;">
<nav class="glass-tab-bar glass-tab-bar--floating">
<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"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg></span>
<span class="glass-tab-bar__label">Recent</span>
</button>
<button class="glass-tab-bar__item">
<span class="glass-tab-bar__icon"><svg viewBox="0 0 24 24"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"/></svg></span>
<span class="glass-tab-bar__label">Saved</span>
</button>
</nav>
<button class="glass-tab-bar__accessory glass-tab-bar__accessory--accent" aria-label="Compose">
<svg viewBox="0 0 24 24"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
</button>
</div>
</div>
<table class="docs-table">
<thead><tr><th>Class</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>.glass-tab-bar-dock</code></td><td>Wrapper: fixed bottom-center, holds bar + accessory</td></tr>
<tr><td><code>.glass-tab-bar-dock--accessory-left</code></td><td>Modifier: place accessory on the left</td></tr>
<tr><td><code>.glass-tab-bar--floating</code></td><td>Modifier on <code>.glass-tab-bar</code>: pill shape, max-content width</td></tr>
<tr><td><code>.glass-tab-bar__accessory</code></td><td>Standalone glass capsule next to the bar</td></tr>
<tr><td><code>.glass-tab-bar__accessory--accent</code></td><td>Filled with primary color</td></tr>
<tr><td><code>.glass-tab-bar__accessory--success</code></td><td>Filled with success color</td></tr>
<tr><td><code>.glass-tab-bar__accessory--error</code></td><td>Filled with error color</td></tr>
<tr><td><code>.glass-bg--has-tab-bar-floating</code></td><td>Background padding helper for the floating variant</td></tr>
</tbody>
</table>
</section>
<!-- TITLE -->
<section class="docs-section" id="title">
<h2>Title</h2>
<div class="docs-preview docs-preview--constrained">
<h1 class="glass-title">Capture Contracts<br>& Upload</h1>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><h1</span> <span class="attr">class=</span><span class="val">"glass-title"</span><span class="tag">></span>Seitentitel<span class="tag"></h1></span></div>
</div>
</section>
<!-- CARD -->
<section class="docs-section" id="card">
<h2>Card</h2>
<div class="docs-preview docs-preview--constrained">
<div class="glass-card glass-card--glow">
<div class="glass-card__icon"><svg viewBox="0 0 64 64"><rect x="12" y="4" width="32" height="42" rx="3" ry="3"/><polyline points="32 4 32 16 44 16"/><line x1="20" y1="24" x2="36" y2="24"/><line x1="20" y1="30" x2="36" y2="30"/></svg></div>
<p class="glass-card__text">Photograph your document, verify edges, and upload in batch.</p>
</div>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><div</span> <span class="attr">class=</span><span class="val">"glass-card glass-card--glow"</span><span class="tag">></span>
<span class="tag"><div</span> <span class="attr">class=</span><span class="val">"glass-card__icon"</span><span class="tag">></span><span class="cmt"><!-- SVG --></span><span class="tag"></div></span>
<span class="tag"><p</span> <span class="attr">class=</span><span class="val">"glass-card__text"</span><span class="tag">></span>Text<span class="tag"></p></span>
<span class="tag"></div></span></div>
</div>
<table class="docs-table">
<thead><tr><th>Class</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>.glass-card</code></td><td>Base glass surface</td></tr>
<tr><td><code>.glass-card--glow</code></td><td>Light → milky gradient + light streak</td></tr>
<tr><td><code>.glass-card__icon</code></td><td>Centered icon wrapper</td></tr>
<tr><td><code>.glass-card__text</code></td><td>Description text</td></tr>
</tbody>
</table>
</section>
<!-- BUTTONS -->
<section class="docs-section" id="buttons">
<h2>Buttons</h2>
<div class="docs-preview docs-preview--constrained">
<div class="gl-stack gl-stack--sm">
<button class="glass-btn glass-btn--primary"><svg viewBox="0 0 24 24"><rect x="2" y="5" width="20" height="15" rx="2" fill="currentColor"/><circle cx="12" cy="13" r="4" fill="none" stroke="#e8852d" stroke-width="2"/></svg>Primary</button>
<button class="glass-btn glass-btn--secondary"><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>Secondary</button>
<button class="glass-btn glass-btn--tertiary"><svg viewBox="0 0 24 24"><path d="M3 7V5a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg>Tertiary</button>
<button class="glass-btn glass-btn--primary" disabled>Disabled</button>
</div>
</div>
<table class="docs-table">
<thead><tr><th>Class</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>.glass-btn</code></td><td>Base (56px, full width)</td></tr>
<tr><td><code>--primary</code></td><td>Colored gradient</td></tr>
<tr><td><code>--secondary</code></td><td>Milky white</td></tr>
<tr><td><code>--tertiary</code></td><td>Subtle glass</td></tr>
<tr><td><code>--sm</code></td><td>44px height</td></tr>
<tr><td><code>--lg</code></td><td>64px height</td></tr>
<tr><td><code>--auto</code></td><td>Auto width</td></tr>
<tr><td><code>:disabled</code>, <code>[aria-disabled="true"]</code></td><td>Dimmed to 0.45, not-allowed cursor, no hover (since 1.21.2)</td></tr>
<tr><td><code>svg.glass-icon--fill</code></td><td>Deliberately filled icon (e.g. brand logos)</td></tr>
</tbody>
</table>
<p>A disabled button — <code>disabled</code>, or <code>aria-disabled="true"</code> on an <code>a.glass-btn</code>, which cannot be disabled — is dimmed, shows the not-allowed cursor and no longer lifts on hover (since 1.21.2; before, it looked exactly like an enabled one). The link still navigates unless the page stops it. The same holds for pill, tab-bar accessory, modal actions, interactive list rows and the calendar’s month arrows; toggle, checkbox and radio dim their control and label, select, textarea and range dim like the input.</p>
</section>
<!-- BADGE -->
<section class="docs-section" id="badge">
<h2>Badge</h2>
<div class="docs-preview docs-preview--row docs-preview--compact">
<span class="glass-badge">Standard</span>
<span class="glass-badge glass-badge--primary">Aktiv</span>
<span class="glass-badge glass-badge--success">Fertig</span>
<span class="glass-badge glass-badge--warning">Offen</span>
<span class="glass-badge glass-badge--error">Fehler</span>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><span</span> <span class="attr">class=</span><span class="val">"glass-badge glass-badge--primary"</span><span class="tag">></span>Aktiv<span class="tag"></span></span></div>
</div>
<p>Variants: <code>--primary</code>, <code>--success</code>, <code>--warning</code> (since 1.18.0) and <code>--error</code>. Each draws its fill, border and text from the state colour’s <code>-surface</code>, <code>-border</code> and <code>-on-surface</code> tokens, so re-colouring the state colour moves the whole badge.</p>
<h3>Chips</h3>
<p>A badge doubles as a filter chip. <code>--interactive</code> carries the affordance — pointer cursor, hover tint, focus ring — and <code>--selected</code> says which chip is on. Use a real <code><button></code> and put the state in <code>aria-pressed</code>, so the row works by keyboard and is announced as a toggle.</p>
<div class="docs-preview docs-preview--row docs-preview--compact">
<button class="glass-badge glass-badge--interactive glass-badge--selected" aria-pressed="true">Active</button>
<button class="glass-badge glass-badge--interactive" aria-pressed="false">Applied</button>
<button class="glass-badge glass-badge--interactive" aria-pressed="false">Paused</button>
</div>
<p><code>--selected</code> deepens the colour the badge already carries instead of overruling it, so a status chip stays in its own colour when it is picked.</p>
<div class="docs-preview docs-preview--row docs-preview--compact">
<button class="glass-badge glass-badge--success glass-badge--interactive glass-badge--selected" aria-pressed="true">Done</button>
<button class="glass-badge glass-badge--error glass-badge--interactive" aria-pressed="false">Failed</button>
<button class="glass-badge glass-badge--warning glass-badge--interactive" aria-pressed="false">Pending</button>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-badge glass-badge--interactive glass-badge--selected"</span>
<span class="attr">aria-pressed=</span><span class="val">"true"</span><span class="tag">></span>Active<span class="tag"></button></span>
<span class="tag"><button</span> <span class="attr">class=</span><span class="val">"glass-badge glass-badge--interactive"</span>
<span class="attr">aria-pressed=</span><span class="val">"false"</span><span class="tag">></span>Applied<span class="tag"></button></span></div>
</div>
<table class="docs-table">
<thead><tr><th>Class</th><th>Description</th></tr></thead>
<tbody>
<tr><td><code>--interactive</code></td><td>Pressable: cursor, hover tint, focus ring, press feedback</td></tr>
<tr><td><code>--selected</code></td><td>The chip that is on — deepens the badge's own colour</td></tr>
<tr><td><code>--gl-badge-accent</code></td><td>The colour both states deepen. Set it per badge to give a chip a colour of its own.</td></tr>
</tbody>
</table>
</section>
<!-- AVATAR -->
<section class="docs-section" id="avatar">
<h2>Avatar</h2>
<div class="docs-preview docs-preview--row docs-preview--compact">
<div class="glass-avatar glass-avatar--sm">S</div>
<div class="glass-avatar">M</div>
<div class="glass-avatar glass-avatar--lg">L</div>
</div>
<div class="docs-code-wrapper">
<div class="docs-code"><span class="tag"><div</span> <span class="attr">class=</span><span class="val">"glass-avatar glass-avatar--lg"</span><span class="tag">></span>L<span class="tag"></div></span></div>