-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdemo.html
1367 lines (1191 loc) · 61.8 KB
/
demo.html
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">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Button Showcase</title>
<link rel="stylesheet" href="src/css/bundle.css"> <!-- Link to your CSS file -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
</style>
</head>
<body class="dark-mode">
<!--main nav menu-->
<nav class="kroma-navbar">
<!--logo-->
<img src="./src/images/dummy-logo.png">
<!--menu links-->
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contacts</a>
<!--profile avatar (see avatar component for reference)-->
<div class="kroma-avatar" data-size="xl" data-variant="ghost" data-status="online" data-disabled="true" aria-label="Ghost avatar online status">
<span class="kroma-avatar-status"></span>
<img src="https://ui-avatars.com/api/?name=Online&background=cccccc&color=5a67d8" alt="User Avatar">
</div>
</nav>
<!--main sidebar menu-->
<div class="kroma-sidebar" data-title="The Sidebar">
<!--logo img-->
<img src="./src/images/star.png">
<!--menu links-->
<i class="fa-solid fa-home"></i>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contacts</a>
<!--menu links with children-->
<a>Profile</a>
<a data-child="true" href="#">Login</a>
<a data-child="true" href="#">Register</a>
</div>
<section class="">
<h2 class="font-lg text-primary my-4">Alert Component Showcase</h2>
<!-- Success Alerts -->
<div class="kroma-alert" data-variant="success" data-size="large" data-shape="rounded" data-title="Alert!" data-body="This is the alert content."></div>
<div class="kroma-alert" data-variant="success" data-size="large" data-shape="circle">
<span class="kroma-alert-icon">✔</span>
<div class="kroma-alert-content">
<p class="kroma-alert-title">Large Success Alert</p>
<p class="kroma-alert-body">A large, circular success alert for important messages.</p>
</div>
<button class="kroma-alert-close" aria-label="Close alert">×</button>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Accordion Component Showcase</h2>
<div class="kroma-accordion-container" data-variant="primary" data-responsive="auto" data-background="none">
<div class="kroma-accordion-item" data-header="Primary Accordion - Item 1" data-content="This is the main content of the primary accordion item 1."></div>
<div class="kroma-accordion-item" data-header="Primary Accordion - Item 2" data-content="This is the main content of the primary accordion item 2.">
<div class="kroma-accordion-sub-item" data-header="Sub-Item 1" data-content="This is the content of sub-item 1 under primary accordion item 2."></div>
<div class="kroma-accordion-sub-item" data-header="Sub-Item 2" data-content="This is the content of sub-item 2 under primary accordion item 2."></div>
</div>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Avatar Component Showcase</h2>
<!-- Small Avatars -->
<div class="kroma-avatar" data-size="sm" data-shape="rounded" data-variant="primary" aria-label="User Initials">AB</div>
<div class="kroma-avatar" data-size="sm" data-shape="square" data-variant="secondary" aria-label="User Initials">CD</div>
<div class="kroma-avatar" data-size="sm" data-variant="success">
<img src="https://ui-avatars.com/api/?name=EF&background=10b981&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar" data-size="sm" data-variant="danger">
<img src="https://ui-avatars.com/api/?name=GH&background=ef4444&color=ffffff" alt="User Avatar">
</div>
<!-- Medium Avatars -->
<div class="kroma-avatar" data-size="md" data-shape="rounded" data-variant="primary" aria-label="User Initials">IJ</div>
<div class="kroma-avatar" data-size="md" data-shape="square" data-variant="secondary" aria-label="User Initials">KL</div>
<div class="kroma-avatar" data-size="md" data-variant="success">
<img src="https://ui-avatars.com/api/?name=MN&background=10b981&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar" data-size="md" data-variant="danger">
<img src="https://ui-avatars.com/api/?name=OP&background=ef4444&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar kroma-avatar-bordered" data-size="md" data-variant="warning" data-effect="pulsing" aria-label="Pulsing user status">
<span class="kroma-avatar-status"></span>
QR
</div>
<!-- Large Avatars -->
<div class="kroma-avatar" data-size="lg" data-shape="rounded" data-variant="primary" aria-label="User Initials">ST</div>
<div class="kroma-avatar" data-size="lg" data-shape="square" data-variant="secondary" aria-label="User Initials">UV</div>
<div class="kroma-avatar" data-size="lg" data-variant="success">
<img src="https://ui-avatars.com/api/?name=WX&background=10b981&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar" data-size="lg" data-variant="danger">
<img src="https://ui-avatars.com/api/?name=YZ&background=ef4444&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar kroma-avatar-bordered" data-size="lg" data-variant="info" data-effect="pulsing" aria-label="User with info status">
<span class="kroma-avatar-status"></span>
AB
</div>
<!-- Extra Large Avatars -->
<div class="kroma-avatar" data-size="xl" data-variant="ghost" data-status="online" data-disabled="true" aria-label="Ghost avatar online status">
<span class="kroma-avatar-status"></span>
<img src="https://ui-avatars.com/api/?name=Online&background=cccccc&color=5a67d8" alt="User Avatar">
</div>
<div class="kroma-avatar kroma-avatar-bordered" data-size="xl" data-variant="primary" aria-label="Bordered primary avatar">
<img src="https://ui-avatars.com/api/?name=Border&background=4a5568&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar kroma-avatar-bordered" data-size="xl" data-variant="danger" data-status="busy" aria-label="Busy user avatar">
<span class="kroma-avatar-status"></span>
<img src="https://ui-avatars.com/api/?name=Busy&background=ef4444&color=ffffff" alt="User Avatar">
</div>
<div class="kroma-avatar kroma-avatar-bordered" data-size="xl" data-variant="warning" data-status="away" aria-label="Away status avatar">
<span class="kroma-avatar-status"></span>
<img src="https://ui-avatars.com/api/?name=Away&background=f59e0b&color=ffffff" alt="User Avatar">
</div>
<!-- Avatar Group with Overlapping Avatars -->
<div class="kroma-avatar-group">
<div class="kroma-avatar" data-size="md" data-variant="info" aria-label="User A">A</div>
<div class="kroma-avatar" data-size="md" data-variant="secondary" aria-label="User B">B</div>
<div class="kroma-avatar" data-size="md" data-variant="danger" aria-label="User C">C</div>
<div class="kroma-avatar" data-size="md" data-variant="warning" aria-label="User D">D</div>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Badge Component Showcase</h2>
<!-- Primary Badges -->
<div class="kroma-badge" data-variant="primary" data-size="sm" aria-label="Primary Small">Primary</div>
<div class="kroma-badge" data-variant="primary" data-size="md" aria-label="Primary Medium">Primary</div>
<div class="kroma-badge" data-variant="primary" data-size="lg" aria-label="Primary Large">Primary</div>
<!-- Success, Warning, and Danger Variants with Soft Style -->
<div class="kroma-badge" data-style="soft" data-variant="success" aria-label="Soft Success">Success</div>
<div class="kroma-badge" data-style="soft" data-variant="warning" aria-label="Soft Warning">Warning</div>
<div class="kroma-badge" data-style="soft" data-variant="danger" aria-label="Soft Danger">Danger</div>
<!-- Outline Badges with Different Colors -->
<div class="kroma-badge" data-style="outline" data-variant="info" aria-label="Info Outline">Info</div>
<div class="kroma-badge" data-style="outline" data-variant="secondary" aria-label="Secondary Outline">Secondary</div>
<!-- Shape Variants -->
<div class="kroma-badge" data-shape="rounded" data-variant="primary" aria-label="Rounded Badge">Rounded</div>
<div class="kroma-badge" data-shape="square" data-variant="secondary" aria-label="Square Badge">Square</div>
<div class="kroma-badge" data-shape="pill" data-variant="success" aria-label="Pill Badge">Pill</div>
<!-- Badges with Icons -->
<div class="kroma-badge" data-variant="danger" data-icon="left" aria-label="Danger Icon Left">
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/></svg>
Danger
</div>
<div class="kroma-badge" data-variant="info" data-icon="right" aria-label="Info Icon Right">
Info
<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/></svg>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Breadcrumb Component Showcase</h2>
<!-- Primary Breadcrumbs with Slash Separator -->
<nav class="kroma-breadcrumbs" data-variant="primary" data-separator="slash" aria-label="Breadcrumb">
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Home</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Products</a></div>
<div class="kroma-breadcrumb-item" data-active="true">Electronics</div>
</nav>
<!-- Secondary Breadcrumbs with Arrow Separator -->
<nav class="kroma-breadcrumbs" data-variant="secondary" data-separator="arrow" aria-label="Breadcrumb">
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Home</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Services</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Consulting</a></div>
<div class="kroma-breadcrumb-item" data-active="true">Strategy</div>
</nav>
<!-- Success Breadcrumbs with Dot Separator -->
<nav class="kroma-breadcrumbs" data-variant="success" data-separator="dot" aria-label="Breadcrumb">
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Dashboard</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Reports</a></div>
<div class="kroma-breadcrumb-item" data-active="true">Annual</div>
</nav>
<!-- Warning Breadcrumbs with Chevron Separator -->
<nav class="kroma-breadcrumbs" data-variant="warning" data-separator="chevron" aria-label="Breadcrumb">
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Settings</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Account</a></div>
<div class="kroma-breadcrumb-item" data-active="true">Preferences</div>
</nav>
<!-- Danger Breadcrumbs with Custom Separator and Different Active Color -->
<nav class="kroma-breadcrumbs" data-variant="danger" data-separator="arrow" aria-label="Breadcrumb">
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Home</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Security</a></div>
<div class="kroma-breadcrumb-item"><a href="#" class="kroma-breadcrumb-link">Password</a></div>
<div class="kroma-breadcrumb-item" data-active="true">Change</div>
</nav>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Button Component Showcase</h2>
<!-- Primary Button -->
<button class="kroma-btn" data-variant="primary">Primary</button>
<!-- Secondary Button with Pulse Animation -->
<button class="kroma-btn" data-variant="secondary" data-animate="pulse">Secondary</button>
<!-- Success Button with Fill Animation -->
<button class="kroma-btn" data-variant="success" data-animate="fill">Success</button>
<!-- Danger Button with Bounce Animation -->
<button class="kroma-btn" data-variant="danger" data-animate="bounce">Danger</button>
<!-- Outline Button -->
<button class="kroma-btn" data-variant="success" data-style="outline">Outline</button>
<!-- Ghost Button -->
<button class="kroma-btn" data-variant="warning" data-style="ghost" disabled>Ghost</button>
<!-- Large Rounded Button -->
<button class="kroma-btn" data-variant="info" data-size="lg" data-shape="rounded">Large Rounded</button>
<!-- Small Square Button -->
<button class="kroma-btn" data-variant="warning" data-size="sm" data-shape="square">Small Square</button>
<!-- Icon-Only Button -->
<button class="kroma-btn kroma-btn-icon-only" data-variant="primary" aria-label="Settings">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="1em" height="1em"><circle cx="12" cy="12" r="10"/></svg>
</button>
<!-- Loading Button -->
<button class="kroma-btn" data-variant="primary" data-loading="true">Loading</button>
<!-- Button Group -->
<div class="kroma-btn-group">
<button class="kroma-btn" data-variant="primary">Left</button>
<button class="kroma-btn" data-variant="primary">Middle</button>
<button class="kroma-btn" data-variant="primary">Right</button>
</div>
<!-- Success Rectangular FAB -->
<button class="kroma-fab" data-variant="primary" data-style="bordered" data-shape="circular">🐷</button>
</section>
<section class="">
<h2 class="font-lg text-primary my-6 text-center">Kroma Card Component Showcase</h2>
<div class="grid grid-loose">
<!-- Primary Card with Fixed Label -->
<div class="kroma-card" data-variant="primary" data-label="fixed">
<span class="kroma-card-label">New</span>
<div class="kroma-card-header">Primary Card</div>
<img src="https://via.placeholder.com/400x200" alt="Media" class="kroma-card-media">
<div class="kroma-card-body">This primary card has a fixed label and a light background.</div>
<div class="kroma-card-footer">
<button class="kroma-btn" data-variant="primary">Action</button>
</div>
</div>
<!-- Success Card -->
<div class="kroma-card" data-variant="success" data-label="fixed">
<span class="kroma-card-label">Featured</span>
<div class="kroma-card-header">Success Card</div>
<img src="https://via.placeholder.com/400x200" alt="Media" class="kroma-card-media">
<div class="kroma-card-body">This success variant card has a bold background and featured label.</div>
<div class="kroma-card-footer">
<button class="kroma-btn" data-variant="success">Learn More</button>
</div>
</div>
<!-- Danger Card -->
<div class="kroma-card" data-variant="danger">
<div class="kroma-card-header">Danger Card</div>
<div class="kroma-card-body">A danger card highlighting urgent information.</div>
<div class="kroma-card-footer">
<button class="kroma-btn" data-variant="danger">Resolve</button>
</div>
</div>
<!-- Warning Card with Horizontal Layout -->
<div class="kroma-card" data-variant="warning" data-layout="horizontal">
<img src="https://via.placeholder.com/150x150" alt="Media" class="kroma-card-media">
<div class="kroma-card-body">
A warning card with a horizontal layout, ideal for side-by-side content.
</div>
</div>
<!-- Info Card with Outline Style -->
<div class="kroma-card" data-variant="outline">
<div class="kroma-card-header">Info Card</div>
<div class="kroma-card-body">An outline style info card for minimalistic designs.</div>
<div class="kroma-card-footer">
<button class="kroma-btn" data-variant="info">More Info</button>
</div>
</div>
<!-- Flat Card Variant -->
<div class="kroma-card" data-variant="flat">
<div class="kroma-card-header">Flat Card</div>
<div class="kroma-card-body">This flat variant has no shadow, perfect for clean interfaces.</div>
</div>
</div>
<!-- Scrollable Card Section -->
<h3 class="font-md text-secondary mt-8 mb-4 text-center">Scrollable Cards</h3>
<div class="kroma-card-scrollable">
<div class="kroma-card" data-variant="info">
<div class="kroma-card-header">Scrollable Card 1</div>
<div class="kroma-card-body">This is the first scrollable card.</div>
</div>
<div class="kroma-card" data-variant="success">
<div class="kroma-card-header">Scrollable Card 2</div>
<div class="kroma-card-body">This is the second scrollable card.</div>
</div>
<div class="kroma-card" data-variant="danger">
<div class="kroma-card-header">Scrollable Card 3</div>
<div class="kroma-card-body">This is the third scrollable card.</div>
</div>
<div class="kroma-card" data-variant="primary">
<div class="kroma-card-header">Scrollable Card 4</div>
<div class="kroma-card-body">This is the fourth scrollable card.</div>
</div>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">DateTime Picker Component Showcase</h2>
<!-- Containers for each DateTimePicker instance with specific data attributes -->
<div id="picker-primary" class="kroma-datetime-picker-container" data-variant="primary" data-format="YYYY-MM-DD HH:mm" data-time="true"></div>
<div id="picker-secondary" class="kroma-datetime-picker-container my-4" data-variant="secondary" data-format="YYYY-MM-DD" data-time="false"></div>
<div id="picker-success" class="kroma-datetime-picker-container" data-variant="success" data-format="YYYY-MM-DD HH:mm" data-time="true"></div>
<div id="picker-warning" class="kroma-datetime-picker-container my-4" data-variant="warning" data-format="YYYY-MM-DD HH:mm" data-time="true"></div>
<div id="picker-danger" class="kroma-datetime-picker-container" data-variant="danger" data-format="YYYY-MM-DD" data-time="false"></div>
<div id="picker-info" class="kroma-datetime-picker-container my-4" data-variant="info" data-format="YYYY-MM-DD HH:mm" data-time="true"></div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Dropdown Component Showcase</h2>
<!-- Example Dropdown over Kroma Avatar -->
<div class="kroma-dropdown" data-variant="primary" data-position="bottom">
<div class="kroma-dropdown-trigger">
<div class="kroma-avatar">
<img src="https://via.placeholder.com/40" alt="Avatar">
</div>
</div>
<div class="kroma-dropdown-menu">
<div class="kroma-dropdown-item">Profile</div>
<div class="kroma-dropdown-item">Settings</div>
<div class="kroma-dropdown-item">Logout</div>
</div>
</div>
<!-- Example Dropdown over Button -->
<div class="kroma-dropdown" data-variant="primary" data-on-hover="true">
<div class="kroma-dropdown-trigger">
<button class="kroma-btn" data-variant="primary">Menu</button>
</div>
<div class="kroma-dropdown-menu">
<div class="kroma-dropdown-item">Option 1</div>
<div class="kroma-dropdown-item">Option 2</div>
<div class="kroma-dropdown-item">Option 3</div>
</div>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Form Showcase</h2>
<!-- Primary Variant Form Group -->
<div class="kroma-form-group" data-variant="primary">
<label class="kroma-label kroma-label-required">Name</label>
<input type="text" class="kroma-input" placeholder="Enter your name" aria-label="Name" />
<span class="kroma-helper-text">This is your full name.</span>
</div>
<!-- Secondary Variant Form Group with Textarea -->
<div class="kroma-form-group" data-variant="secondary">
<label class="lkroma-abel">Comments</label>
<textarea class="kroma-textarea" placeholder="Enter your comments here" aria-label="Comments"></textarea>
<span class="kroma-helper-text">Additional comments or feedback.</span>
</div>
<!-- Success Variant Form Group with Select -->
<div class="kroma-form-group" data-variant="success">
<label class="kroma-label">Country</label>
<select class="kroma-select" aria-label="Country">
<option value="">Select a country</option>
<option value="us">United States</option>
</select>
</div>
<!-- Warning Variant Form Group with Checkbox Group -->
<div class="kroma-form-group" data-variant="warning">
<label class="kroma-label">Newsletter</label>
<div class="kroma-checkbox-group">
<label class="kroma-checkbox">
<input type="checkbox" aria-label="Weekly Updates" />
<span class="kroma-checkbox-icon"></span> Weekly Updates
</label>
<label class="kroma-checkbox">
<input type="checkbox" aria-label="Monthly Digest" />
<span class="kroma-checkbox-icon"></span> Monthly Digest
</label>
</div>
<span class="kroma-helper-text">Choose your subscription frequency.</span>
</div>
<!-- Danger Variant Form Group with Radio Group -->
<div class="kroma-form-group" data-variant="danger">
<label class="kroma-label">Membership Level</label>
<div class="kroma-radio-group">
<label class="kroma-radio">
<input type="radio" name="membership" aria-label="Standard" />
<span class="kroma-radio-icon"></span> Standard
</label>
<label class="kroma-radio">
<input type="radio" name="membership" aria-label="Premium" />
<span class="kroma-radio-icon"></span> Premium
</label>
</div>
</div>
<!-- Info Variant Form Group with Read-Only Input -->
<div class="kroma-form-group" data-variant="info">
<label class="kroma-label">Read-Only Information</label>
<input type="text" class="kroma-input" value="Read-only value" readonly aria-label="Read-Only Information" />
</div>
<!-- Accent Variant Form Group with Disabled Input -->
<div class="kroma-form-group" data-variant="accent">
<label class="kroma-label">Disabled Field</label>
<input type="text" class="kroma-input" placeholder="This field is disabled" disabled aria-label="Disabled Field" />
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Hero Showcase</h2>
<!-- Basic Primary Hero with Overlay -->
<div class="kroma-hero" data-variant="primary" data-overlay="dark" data-size="md" data-spacing="md" data-radius="lg" data-shadow="lg" data-hover="lift">
<div class="kroma-hero-content">
<h2>Primary Hero</h2>
<p>This hero uses a primary gradient with a dark overlay and lift on hover.</p>
</div>
</div>
<!-- Secondary Hero with Light Gradient Overlay and Narrow Content Width -->
<div class="kroma-hero" data-variant="secondary" data-overlay="gradient-light" data-size="lg" data-spacing="lg" data-radius="md" data-shadow="md" data-alignment="centered">
<div class="kroma-hero-content" data-content-width="narrow">
<h2>Secondary Hero</h2>
<p>A centered hero with a light gradient overlay and narrower content for focus.</p>
</div>
</div>
<!-- Success Hero with Fade Animation -->
<div class="kroma-hero" data-variant="success" data-overlay="gradient-dark" data-size="sm" data-spacing="sm" data-radius="xl" data-shadow="sm" data-animation="fade">
<div class="kroma-hero-content">
<h2>Success Hero</h2>
<p>This small hero fades in, with a success theme and gradient overlay.</p>
</div>
</div>
<!-- Danger Hero with Scale Hover Effect -->
<div class="kroma-hero" data-variant="danger" data-overlay="dark" data-size="lg" data-spacing="md" data-radius="xl" data-shadow="xl" data-hover="scale">
<div class="kroma-hero-content" data-content-width="wide">
<h2>Danger Hero</h2>
<p>This large hero scales up slightly on hover, using a dark overlay.</p>
</div>
</div>
<!-- Accent Hero with Image Background and Full Width -->
<div class="kroma-hero" style="--bg-image: url('https://via.placeholder.com/1600x800');" data-variant="accent" data-overlay="gradient-dark" data-size="full" data-shadow="xl" data-radius="none">
<div class="kroma-hero-content">
<h2>Accent Hero</h2>
<p>This hero has a background image with a gradient overlay and full-screen size.</p>
</div>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Hologram Component Demo</h2>
<p>Click the buttons below to view different hologram styles and intensities.</p>
<div style="display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-6);">
<button class="kroma-btn" data-variant="primary" onclick="showHologram('Primary Alert', 'This is a primary hologram', 'primary', 'low')">
Primary - Low Intensity
</button>
<button class="kroma-btn" data-variant="success" onclick="showHologram('Success!', 'Action completed successfully', 'success', 'medium')">
Success - Medium Intensity
</button>
<button class="kroma-btn" data-variant="warning" onclick="showHologram('Warning!', 'Check your settings', 'warning', 'high')">
Warning - High Intensity
</button>
<button class="kroma-btn" data-variant="danger" onclick="showHologram('Danger!', 'Something went wrong', 'danger', 'medium')">
Danger - Medium Intensity
</button>
<button class="kroma-btn" data-variant="info" onclick="showHologram('Information', 'This is an informational message', 'info', 'low')">
Info - Low Intensity
</button>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Kroma Modal Component Demo</h2>
<p>Click the buttons below to see modals with different styles and configurations.</p>
<div style="display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-6);">
<button class="kroma-btn" data-variant="primary" data-toggle="kroma-modal" data-target="kroma-modal-primary">Open Primary Modal</button>
<button class="kroma-btn" data-variant="success" data-toggle="kroma-modal" data-target="kroma-modal-success">Open Success Modal</button>
<button class="kroma-btn" data-variant="danger" data-toggle="kroma-modal" data-target="kroma-modal-danger">Open Danger Modal</button>
<button class="kroma-btn" data-variant="primary" data-toggle="kroma-modal" data-target="kroma-modal-fullscreen">Open Fullscreen Modal</button>
</div>
</section>
<!-- Modals -->
<div class="kroma-modal-overlay" id="kroma-modal-primary-overlay" data-variant="primary">
<div class="kroma-modal" id="kroma-modal-primary">
<div class="kroma-modal-header">
<h3 class="kroma-modal-title">Primary Modal</h3>
<button class="kroma-modal-close">×</button>
</div>
<div class="kroma-modal-body">
<p>This is a primary-styled modal with interactive content and a close button.</p>
</div>
<div class="kroma-modal-footer">
<button class="close-modal kroma-btn" data-variant="primary">Close</button>
</div>
</div>
</div>
<div class="kroma-modal-overlay" id="kroma-modal-success-overlay" data-variant="success">
<div class="kroma-modal" id="kroma-modal-success">
<div class="kroma-modal-header">
<h3 class="kroma-modal-title">Success Modal</h3>
<button class="kroma-modal-close">×</button>
</div>
<div class="kroma-modal-body">
<p>Operation completed successfully!</p>
</div>
<div class="kroma-modal-footer">
<button class="close-modal kroma-btn" data-variant="success">Close</button>
</div>
</div>
</div>
<div class="kroma-modal-overlay" id="kroma-modal-danger-overlay" data-variant="danger">
<div class="kroma-modal" id="kroma-modal-danger">
<div class="kroma-modal-header">
<h3 class="kroma-modal-title">Danger Modal</h3>
<button class="kroma-modal-close">×</button>
</div>
<div class="kroma-modal-body">
<p>Warning! This action may be irreversible.</p>
</div>
<div class="kroma-modal-footer">
<button class="close-modal kroma-btn" data-variant="danger">Close</button>
</div>
</div>
</div>
<div class="kroma-modal-overlay" id="kroma-modal-fullscreen-overlay" data-size="fullscreen">
<div class="kroma-modal" id="kroma-modal-fullscreen">
<div class="kroma-modal-header">
<h3 class="kroma-modal-title">Fullscreen Modal</h3>
<button class="kroma-modal-close">×</button>
</div>
<div class="kroma-modal-body">
<p>This is a fullscreen modal that spans the entire viewport.</p>
</div>
<div class="kroma-modal-footer">
<button class="close-modal kroma-btn" data-variant="secondary">Close</button>
</div>
</div>
</div>
<section class="">
<h2 class="font-lg text-primary my-4">Kroma MultiSelect Component Demo</h2>
<p>Explore the MultiSelect component with different variants and configurations.</p>
<div class="grid gap-6 mt-6 md:grid-cols-2 lg:grid-cols-4">
<!-- Default MultiSelect -->
<div class="kroma-multiselect" id="default-multiselect" data-variant="secondary">
<div class="kroma-multiselect-dropdown" tabindex="0" aria-expanded="false">
<input type="text" class="kroma-multiselect-search" placeholder="Select options" aria-label="Select options">
<button class="kroma-clear-selection" aria-label="Clear selection">×</button>
</div>
<div class="kroma-multiselect-chips"></div>
<div class="kroma-multiselect-options" aria-hidden="true">
<div class="kroma-multiselect-option" data-value="Option 1">Option 1</div>
<div class="kroma-multiselect-option" data-value="Option 2">Option 2</div>
<div class="kroma-multiselect-option" data-value="Option 3">Option 3</div>
<div class="kroma-multiselect-option" data-value="Option 4">Option 4</div>
<div class="kroma-multiselect-option" data-value="Option 5">Option 5</div>
</div>
</div>
<!-- Success Variant MultiSelect -->
<div class="kroma-multiselect" id="success-multiselect" data-variant="success">
<div class="kroma-multiselect-dropdown" tabindex="0" aria-expanded="false">
<input type="text" class="kroma-multiselect-search" placeholder="Select options" aria-label="Select options">
<button class="kroma-clear-selection" aria-label="Clear selection">×</button>
</div>
<div class="kroma-multiselect-chips"></div>
<div class="kroma-multiselect-options" aria-hidden="true">
<div class="kroma-multiselect-option" data-value="Success 1">Success 1</div>
<div class="kroma-multiselect-option" data-value="Success 2">Success 2</div>
<div class="kroma-multiselect-option" data-value="Success 3">Success 3</div>
</div>
</div>
<!-- Danger Variant MultiSelect -->
<div class="kroma-multiselect" id="danger-multiselect" data-variant="danger">
<div class="kroma-multiselect-dropdown" tabindex="0" aria-expanded="false">
<input type="text" class="kroma-multiselect-search" placeholder="Select options" aria-label="Select options">
<button class="kroma-clear-selection" aria-label="Clear selection">×</button>
</div>
<div class="kroma-multiselect-chips"></div>
<div class="kroma-multiselect-options" aria-hidden="true">
<div class="kroma-multiselect-option" data-value="Danger 1">Danger 1</div>
<div class="kroma-multiselect-option" data-value="Danger 2">Danger 2</div>
<div class="kroma-multiselect-option" data-value="Danger 3">Danger 3</div>
</div>
</div>
<!-- Info Variant MultiSelect -->
<div class="kroma-multiselect" id="info-multiselect" data-variant="info">
<div class="kroma-multiselect-dropdown" tabindex="0" aria-expanded="false">
<input type="text" class="kroma-multiselect-search" placeholder="Select options" aria-label="Select options">
<button class="kroma-clear-selection" aria-label="Clear selection">×</button>
</div>
<div class="kroma-multiselect-chips"></div>
<div class="kroma-multiselect-options" aria-hidden="true">
<div class="kroma-multiselect-option" data-value="Info 1">Info 1</div>
<div class="kroma-multiselect-option" data-value="Info 2">Info 2</div>
<div class="kroma-multiselect-option" data-value="Info 3">Info 3</div>
</div>
</div>
</div>
</section>
<section class="">
<h2 class="font-xl text-primary mb-6">Toggle Component Demo</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Primary Toggle -->
<label class="kroma-toggle" data-variant="primary">
<input type="checkbox" />
<span class="kroma-toggle-label">Primary Toggle</span>
</label>
<!-- Success Toggle -->
<label class="kroma-toggle" data-variant="success">
<input type="checkbox" />
<span class="kroma-toggle-label">Success Toggle</span>
</label>
<!-- Danger Toggle -->
<label class="kroma-toggle" data-variant="danger">
<input type="checkbox" />
<span class="kroma-toggle-label">Danger Toggle</span>
</label>
<!-- Warning Toggle -->
<label class="kroma-toggle" data-variant="warning">
<input type="checkbox" />
<span class="kroma-toggle-label">Warning Toggle</span>
</label>
<!-- Info Toggle -->
<label class="kroma-toggle" data-variant="info">
<input type="checkbox" />
<span class="kroma-toggle-label">Info Toggle</span>
</label>
<!-- Disabled Toggle -->
<label class="kroma-toggle" data-variant="primary">
<input type="checkbox" disabled />
<span class="kroma-toggle-label">Disabled Toggle</span>
</label>
<!-- Readonly Toggle -->
<label class="kroma-toggle" data-variant="secondary" data-state="readonly">
<input type="checkbox" />
<span class="kroma-toggle-label">Readonly Toggle</span>
</label>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Progress Component Demo</h2>
<!-- Default Progress -->
<div class="kroma-progress" data-variant="primary" data-size="medium" data-label="inside">
<div class="kroma-progress-bar" style="width: 70%;" data-progress="70"></div>
</div>
<!-- Striped Progress -->
<div class="kroma-progress" data-variant="success" data-striped="true" data-size="large" data-label="outside">
<div class="kroma-progress-bar" style="width: 50%;" data-progress="50"></div>
</div>
<!-- Animated Progress -->
<div class="kroma-progress" data-variant="info" data-animated="true" data-size="medium">
<div class="kroma-progress-bar" style="width: 30%;" data-progress="30"></div>
</div>
<!-- Multi-Step Progress -->
<div class="kroma-progress-steps">
<div class="kroma-progress-step" data-step="completed">1</div>
<div class="kroma-progress-step" data-step="current">2</div>
<div class="kroma-progress-step">3</div>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Separator Component Demo</h2>
<!-- Basic Solid Separator with Primary Color -->
<hr class="kroma-separator" data-style="solid" data-variant="primary" data-thickness="md">
<!-- Dashed Separator with Secondary Color -->
<hr class="kroma-separator" data-style="dashed" data-variant="secondary" data-thickness="lg">
<!-- Dotted Separator with Success Color -->
<hr class="kroma-separator" data-style="dotted" data-variant="success" data-thickness="thin">
<!-- Text Separator with Center Alignment -->
<div class="kroma-separator kroma-separator-text" data-variant="primary">
<span>Centered Text</span>
</div>
<!-- Text Separator with Left Alignment -->
<div class="kroma-separator kroma-separator-text" data-variant="warning" data-align="left">
<span>Left Aligned Text</span>
</div>
<!-- Text Separator with Right Alignment -->
<div class="kroma-separator kroma-separator-text" data-variant="danger" data-align="right">
<span>Right Aligned Text</span>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Skeleton Component Demo</h2>
<!-- Rectangular Skeleton with Primary Variant -->
<div class="kroma-skeleton" data-shape="rect" data-size="lg"></div>
<!-- Circle Skeleton Avatar -->
<div class="kroma-skeleton" data-shape="circle" data-size="md"></div>
<!-- Multi-Line Text Skeleton -->
<div class="kroma-skeleton-multiline">
<div class="kroma-skeleton kroma-skeleton-text" data-size="md"></div>
<div class="kroma-skeleton kroma-skeleton-text" data-size="md"></div>
<div class="kroma-skeleton kroma-skeleton-text" data-size="sm"></div>
</div>
<!-- Skeleton for Avatar with Button -->
<div class="kroma-skeleton" data-shape="avatar"></div>
<div class="kroma-skeleton" data-shape="button"></div>
<!-- Skeleton Thumbnail for Content Loading -->
<div class="kroma-skeleton" data-shape="thumbnail"></div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Table Component Demo</h2>
<div class="kroma-table-container">
<table class="kroma-table" data-style="striped" data-variant="primary" data-align="left">
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data 1</td>
<td>Data 2</td>
<td>Data 3</td>
</tr>
<tr>
<td>Data 4</td>
<td>Data 5</td>
<td>Data 6</td>
</tr>
</tbody>
</table>
</div>
<div class="kroma-table-container">
<table class="kroma-table" data-variant="danger" data-size="compact">
<thead>
<tr>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>john@example.com</td>
<td>123-456-7890</td>
</tr>
</tbody>
</table>
</div>
<div class="kroma-table-container">
<table class="kroma-table" data-variant="primary">
<thead>
<tr>
<th>Field</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<th>Name</th>
<td>John Doe</td>
</tr>
<tr>
<th>Email</th>
<td>john@example.com</td>
</tr>
<tr>
<th>Phone</th>
<td>123-456-7890</td>
</tr>
</tbody>
</table>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Tooltip Component Demo</h2>
<!-- Primary Tooltip -->
<div class="kroma-tooltip kroma-badge" data-variant="primary" data-position="top">
Hover over me
<span class="kroma-tooltip-text">Primary Tooltip</span>
</div>
<!-- Success Tooltip -->
<div class="kroma-tooltip kroma-badge" data-variant="success" data-position="right">
Hover over me
<span class="kroma-tooltip-text">Success Tooltip</span>
</div>
<!-- Danger Tooltip -->
<div class="kroma-tooltip kroma-badge " data-variant="danger" data-position="bottom">
Hover over me
<span class="kroma-tooltip-text">Danger Tooltip</span>
</div>
<!-- Warning Tooltip -->
<div class="kroma-tooltip kroma-badge" data-variant="warning" data-position="left">
Hover over me
<span class="kroma-tooltip-text">Warning Tooltip</span>
</div>
<!-- Info Tooltip -->
<div class="kroma-tooltip kroma-badge" data-variant="info" data-position="top">
Hover over me
<span class="kroma-tooltip-text">Info Tooltip</span>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Tabs Component Demo</h2>
<div class="kroma-tabs-container" id="example-tabs" data-layout="horizontal" data-style="pill" data-variant="accent">
<div class="kroma-tabs">
<button class="kroma-tab kroma-tab-active" onclick="toggleTabContent(event, 'tab-1', 'example-tabs')">Tab 1</button>
<button class="kroma-tab" onclick="toggleTabContent(event, 'tab-2', 'example-tabs')">Tab 2</button>
<button class="kroma-tab" onclick="toggleTabContent(event, 'tab-3', 'example-tabs')">Tab 3</button>
</div>
<div id="tab-1" class="kroma-tab-content kroma-tab-content-active">
<p>This is content for Tab 1.</p>
</div>
<div id="tab-2" class="kroma-tab-content">
<p>This is content for Tab 2.</p>
</div>
<div id="tab-3" class="kroma-tab-content">
<p>This is content for Tab 3.</p>
</div>
</div>
</section>
<section class="">
<h2 class="kroma-heading font-lg text-primary my-4">Toast Component Demo</h2>
<p class="kroma-text text-neutral-800">Click the buttons below to see toasts with different styles, positions, and configurations.</p>
<div class="kroma-btn-container" style="display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-6);">
<button class="kroma-btn" data-variant="primary" onclick="showKromaToast('Primary Toast Message', { variant: 'primary' })">
Show Primary Toast
</button>
<button class="kroma-btn" data-variant="success" onclick="showKromaToast('Success Toast Message', { variant: 'success' })">
Show Success Toast
</button>
<button class="kroma-btn" data-variant="danger" onclick="showKromaToast('Danger Toast Message', { variant: 'danger' })">
Show Danger Toast
</button>
<button class="kroma-btn" data-variant="warning" onclick="showKromaToast('Warning Toast Message', { variant: 'warning' })">
Show Warning Toast
</button>
<button class="kroma-btn" data-variant="info" onclick="showKromaToast('Info Toast Message', { variant: 'info' })">
Show Info Toast
</button>
<button class="kroma-btn" data-variant="primary" onclick="showKromaToast('Top-Left Positioned Toast', { variant: 'primary', position: 'top-left' })">
Top-Left Position
</button>
<button class="kroma-btn" data-variant="secondary" onclick="showKromaToast('Bottom-Center Positioned Toast', { variant: 'secondary', position: 'bottom-center' })">
Bottom-Center Position
</button>
<button class="kroma-btn" data-variant="primary" onclick="showKromaToast('Auto-dismiss Toast', { variant: 'primary', position: 'top-right', autoDismiss: true, dismissDuration: 5 })">
Auto-Dismiss (5s)
</button>
</div>
</section>
<section class="">
<h2 class="font-lg text-primary my-4">Pagination Component Demo</h2>
<!-- Default Pagination -->
<nav class="kroma-pagination" data-variant="primary">
<button class="kroma-pagination-button" disabled>Previous</button>
<button class="kroma-pagination-button" data-active="true">1</button>
<button class="kroma-pagination-button">2</button>
<button class="kroma-pagination-button">3</button>
<button class="kroma-pagination-button">Next</button>
</nav>
<!-- Simple Pagination -->
<nav class="kroma-pagination" data-type="simple" data-variant="success">
<button class="kroma-pagination-button">1</button>
<button class="kroma-pagination-button" data-active="true">2</button>
<button class="kroma-pagination-button">3</button>
</nav>
<!-- Boxed Pagination -->
<nav class="kroma-pagination" data-style="boxed" data-variant="info" data-alignment="center">
<button class="kroma-pagination-button">1</button>
<button class="kroma-pagination-button" data-active="true">2</button>
<button class="kroma-pagination-button">3</button>
<button class="kroma-pagination-button">Next</button>
</nav>
<!-- Right Aligned Pagination -->
<nav class="kroma-pagination" data-alignment="right" data-variant="danger">
<button class="kroma-pagination-button">Previous</button>
<button class="kroma-pagination-button">1</button>
<button class="kroma-pagination-button" data-active="true">2</button>
<button class="kroma-pagination-button">Next</button>
</nav>
</section>