This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstyle-guide.html
More file actions
988 lines (898 loc) · 41.7 KB
/
style-guide.html
File metadata and controls
988 lines (898 loc) · 41.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GovLink - Design System Style Guide</title>
<style>
/* Import fonts for the style guide */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@300;400;500;600;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans', 'Noto Sans Sinhala', 'Noto Sans Tamil', sans-serif;
line-height: 1.6;
color: #1a1a1a;
background: #fafafa;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
}
.header {
text-align: center;
margin-bottom: 60px;
padding: 40px 0;
background: linear-gradient(135deg, #FFC72C 0%, #FF5722 50%, #8D153A 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.header h1 {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 10px;
}
.header p {
font-size: 1.2rem;
color: #666;
font-weight: 400;
}
.section {
margin-bottom: 80px;
page-break-inside: avoid;
}
.section-title {
font-size: 2.5rem;
font-weight: 600;
margin-bottom: 30px;
color: #2d2d2d;
border-bottom: 3px solid #FFC72C;
padding-bottom: 10px;
}
.subsection {
margin-bottom: 40px;
}
.subsection-title {
font-size: 1.8rem;
font-weight: 500;
margin-bottom: 20px;
color: #444;
}
.grid {
display: grid;
gap: 20px;
}
.grid-2 {
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid-4 {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.card {
background: white;
border-radius: 12px;
padding: 24px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
border: 1px solid #e5e5e5;
}
.color-swatch {
width: 100%;
height: 120px;
border-radius: 8px;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.color-info {
text-align: center;
}
.color-name {
font-weight: 600;
margin-bottom: 5px;
font-size: 1.1rem;
}
.color-value {
font-family: 'Courier New', monospace;
background: #f5f5f5;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.9rem;
margin: 2px 0;
}
.font-sample {
margin-bottom: 20px;
padding: 20px;
border: 1px solid #e5e5e5;
border-radius: 8px;
}
.font-name {
font-weight: 600;
margin-bottom: 10px;
color: #333;
}
.font-weights {
display: grid;
gap: 10px;
}
.weight-sample {
display: flex;
align-items: center;
gap: 20px;
}
.weight-label {
min-width: 100px;
font-size: 0.9rem;
color: #666;
}
.typography-scale {
display: grid;
gap: 15px;
}
.type-sample {
padding: 15px;
border-left: 4px solid #FFC72C;
background: #fafafa;
}
.type-label {
font-size: 0.9rem;
color: #666;
margin-bottom: 5px;
}
.spacing-sample {
background: #FFC72C;
margin-bottom: 10px;
}
.spacing-label {
font-family: 'Courier New', monospace;
font-size: 0.9rem;
color: #666;
}
.icon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 20px;
}
.icon-sample {
text-align: center;
padding: 20px;
border: 1px solid #e5e5e5;
border-radius: 8px;
}
.icon-sample svg {
width: 32px;
height: 32px;
margin-bottom: 10px;
}
.shadow-sample {
width: 100%;
height: 80px;
border-radius: 8px;
background: white;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
font-weight: 500;
}
.gradient-sample {
width: 100%;
height: 80px;
border-radius: 8px;
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: 600;
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.animation-sample {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #FFC72C, #FF5722);
border-radius: 8px;
margin: 20px auto;
}
.float-animation {
animation: float 3s ease-in-out infinite;
}
.pulse-animation {
animation: pulse 2s ease-in-out infinite;
}
.rotate-animation {
animation: rotate 4s linear infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
}
@keyframes pulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.8; }
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.component-sample {
margin: 15px 0;
padding: 15px;
border: 1px solid #e5e5e5;
border-radius: 8px;
background: white;
}
.button-primary {
background: linear-gradient(135deg, #FFC72C, #FF5722);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.button-secondary {
background: transparent;
color: #FFC72C;
border: 2px solid #FFC72C;
padding: 10px 22px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.input-field {
width: 100%;
padding: 12px 16px;
border: 2px solid #e5e5e5;
border-radius: 8px;
font-family: inherit;
transition: border-color 0.3s ease;
}
.input-field:focus {
outline: none;
border-color: #FFC72C;
}
.modern-card {
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 12px;
padding: 24px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.cultural-element {
background: linear-gradient(135deg, rgba(255, 199, 44, 0.1) 0%, rgba(255, 87, 34, 0.1) 50%, rgba(141, 21, 58, 0.1) 100%);
border: 1px solid rgba(255, 199, 44, 0.3);
border-radius: 12px;
padding: 24px;
text-align: center;
}
.logo-sample {
display: flex;
align-items: center;
gap: 12px;
font-size: 1.5rem;
font-weight: 700;
}
.lotus-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #FFC72C, #FF5722);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
}
.accessibility-info {
background: #f0f9ff;
border: 1px solid #0ea5e9;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
}
.responsive-info {
background: #f0fdf4;
border: 1px solid #22c55e;
border-radius: 8px;
padding: 20px;
margin: 20px 0;
}
@media print {
body {
background: white;
font-size: 12pt;
}
.container {
padding: 20px;
}
.section {
page-break-inside: avoid;
margin-bottom: 40px;
}
}
</style>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="header">
<h1>GovLink Design System</h1>
<p>Sri Lankan Government Digital Portal - Style Guide & Design Standards</p>
</div>
<!-- Brand Identity -->
<section class="section">
<h2 class="section-title">Brand Identity</h2>
<div class="subsection">
<h3 class="subsection-title">Logo & Branding</h3>
<div class="card">
<div class="logo-sample">
<div class="lotus-icon">🪷</div>
<div>
<div style="background: linear-gradient(120deg, #FFC72C 0%, #FF5722 40%, #8D153A 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">GovLink</div>
<div style="font-size: 0.8rem; color: #666; font-weight: 400;">Sri Lanka</div>
</div>
</div>
<p style="margin-top: 20px; color: #666;">The lotus flower represents purity, enlightenment, and rebirth - core values of democratic governance and citizen services.</p>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Cultural Elements</h3>
<div class="cultural-element">
<h4>Sri Lankan Heritage Integration</h4>
<p>Design elements inspired by Sri Lankan flag colors (saffron, green, maroon) and traditional patterns. The color palette reflects the nation's rich cultural heritage while maintaining modern accessibility standards.</p>
</div>
</div>
</section>
<!-- Color System -->
<section class="section">
<h2 class="section-title">Color System</h2>
<div class="subsection">
<h3 class="subsection-title">Primary Colors</h3>
<div class="grid grid-3">
<div class="card">
<div class="color-swatch" style="background: #FFC72C;">Primary Gold</div>
<div class="color-info">
<div class="color-name">Saffron Gold</div>
<div class="color-value">#FFC72C</div>
<div class="color-value">HSL(48, 100%, 58%)</div>
<div class="color-value">RGB(255, 199, 44)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: #FF5722;">Secondary Orange</div>
<div class="color-info">
<div class="color-name">Heritage Orange</div>
<div class="color-value">#FF5722</div>
<div class="color-value">HSL(14, 100%, 57%)</div>
<div class="color-value">RGB(255, 87, 34)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: #8D153A;">Accent Maroon</div>
<div class="color-info">
<div class="color-name">Royal Maroon</div>
<div class="color-value">#8D153A</div>
<div class="color-value">HSL(342, 72%, 32%)</div>
<div class="color-value">RGB(141, 21, 58)</div>
</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Neutral Colors (Light Mode)</h3>
<div class="grid grid-4">
<div class="card">
<div class="color-swatch" style="background: oklch(0.99 0.002 85); color: #333;">Background</div>
<div class="color-info">
<div class="color-value">oklch(0.99 0.002 85)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: oklch(0.12 0.015 320); color: white;">Foreground</div>
<div class="color-info">
<div class="color-value">oklch(0.12 0.015 320)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: oklch(0.94 0.01 85); color: #333;">Muted</div>
<div class="color-info">
<div class="color-value">oklch(0.94 0.01 85)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: oklch(0.88 0.015 85); color: #333;">Border</div>
<div class="color-info">
<div class="color-value">oklch(0.88 0.015 85)</div>
</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Dark Mode Colors</h3>
<div class="grid grid-4">
<div class="card">
<div class="color-swatch" style="background: oklch(0.09 0.01 320);">Background</div>
<div class="color-info">
<div class="color-value">oklch(0.09 0.01 320)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: oklch(0.96 0.005 85); color: #333;">Foreground</div>
<div class="color-info">
<div class="color-value">oklch(0.96 0.005 85)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: oklch(0.18 0.015 320);">Muted</div>
<div class="color-info">
<div class="color-value">oklch(0.18 0.015 320)</div>
</div>
</div>
<div class="card">
<div class="color-swatch" style="background: oklch(0.28 0.025 320);">Border</div>
<div class="color-info">
<div class="color-value">oklch(0.28 0.025 320)</div>
</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Gradients</h3>
<div class="grid grid-2">
<div class="card">
<div class="gradient-sample" style="background: linear-gradient(135deg, #FFC72C, #FF5722);">Primary Gradient</div>
<div class="color-value">linear-gradient(135deg, #FFC72C, #FF5722)</div>
</div>
<div class="card">
<div class="gradient-sample" style="background: linear-gradient(120deg, #FFC72C 0%, #FF5722 40%, #8D153A 100%);">Text Gradient</div>
<div class="color-value">linear-gradient(120deg, #FFC72C 0%, #FF5722 40%, #8D153A 100%)</div>
</div>
</div>
</div>
</section>
<!-- Typography -->
<section class="section">
<h2 class="section-title">Typography</h2>
<div class="subsection">
<h3 class="subsection-title">Font Stack</h3>
<div class="font-sample">
<div class="font-name">Primary Font Stack</div>
<div class="color-value">font-family: 'Noto Sans', 'Noto Sans Sinhala', 'Noto Sans Tamil', sans-serif;</div>
<p style="margin-top: 15px;">Multi-language support for English, Sinhala, and Tamil ensuring comprehensive accessibility for all Sri Lankan citizens.</p>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Font Families</h3>
<div class="grid grid-3">
<div class="font-sample">
<div class="font-name">Noto Sans (Primary)</div>
<div class="font-weights">
<div class="weight-sample">
<span class="weight-label">Light 300</span>
<span style="font-weight: 300; font-size: 1.2rem;">The quick brown fox</span>
</div>
<div class="weight-sample">
<span class="weight-label">Regular 400</span>
<span style="font-weight: 400; font-size: 1.2rem;">The quick brown fox</span>
</div>
<div class="weight-sample">
<span class="weight-label">Medium 500</span>
<span style="font-weight: 500; font-size: 1.2rem;">The quick brown fox</span>
</div>
<div class="weight-sample">
<span class="weight-label">SemiBold 600</span>
<span style="font-weight: 600; font-size: 1.2rem;">The quick brown fox</span>
</div>
<div class="weight-sample">
<span class="weight-label">Bold 700</span>
<span style="font-weight: 700; font-size: 1.2rem;">The quick brown fox</span>
</div>
</div>
</div>
<div class="font-sample">
<div class="font-name">Noto Sans Sinhala</div>
<div style="font-family: 'Noto Sans Sinhala', sans-serif;">
<div style="font-size: 1.5rem; margin: 10px 0;">සිංහල අකුරු</div>
<div style="font-size: 1.2rem; margin: 10px 0;">ශ්රී ලංකා ජනරජය</div>
<div style="font-size: 1rem;">රජයේ ඩිජිටල් සේවා</div>
</div>
</div>
<div class="font-sample">
<div class="font-name">Noto Sans Tamil</div>
<div style="font-family: 'Noto Sans Tamil', sans-serif;">
<div style="font-size: 1.5rem; margin: 10px 0;">தமிழ் எழுத்துக்கள்</div>
<div style="font-size: 1.2rem; margin: 10px 0;">இலங்கை குடியரசு</div>
<div style="font-size: 1rem;">அரசாங்க டிஜிட்டல் சேவைகள்</div>
</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Typography Scale</h3>
<div class="typography-scale">
<div class="type-sample">
<div class="type-label">Display Large (3.5rem / 56px)</div>
<div style="font-size: 3.5rem; font-weight: 700; line-height: 1.1;">GovLink Portal</div>
</div>
<div class="type-sample">
<div class="type-label">Display Medium (2.5rem / 40px)</div>
<div style="font-size: 2.5rem; font-weight: 600; line-height: 1.2;">Section Headings</div>
</div>
<div class="type-sample">
<div class="type-label">Heading Large (1.8rem / 29px)</div>
<div style="font-size: 1.8rem; font-weight: 500; line-height: 1.3;">Subsection Titles</div>
</div>
<div class="type-sample">
<div class="type-label">Heading Medium (1.5rem / 24px)</div>
<div style="font-size: 1.5rem; font-weight: 500; line-height: 1.4;">Card Headings</div>
</div>
<div class="type-sample">
<div class="type-label">Body Large (1.2rem / 19px)</div>
<div style="font-size: 1.2rem; font-weight: 400; line-height: 1.5;">Important body text and descriptions</div>
</div>
<div class="type-sample">
<div class="type-label">Body Regular (1rem / 16px)</div>
<div style="font-size: 1rem; font-weight: 400; line-height: 1.6;">Standard body text for paragraphs and content</div>
</div>
<div class="type-sample">
<div class="type-label">Body Small (0.9rem / 14px)</div>
<div style="font-size: 0.9rem; font-weight: 400; line-height: 1.5;">Secondary information and captions</div>
</div>
<div class="type-sample">
<div class="type-label">Caption (0.8rem / 13px)</div>
<div style="font-size: 0.8rem; font-weight: 400; line-height: 1.4;">Form labels and micro-copy</div>
</div>
</div>
</div>
</section>
<!-- Spacing System -->
<section class="section">
<h2 class="section-title">Spacing System</h2>
<div class="subsection">
<h3 class="subsection-title">Spacing Scale (Tailwind CSS)</h3>
<div class="grid grid-2">
<div class="card">
<h4>Base Scale</h4>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 4px;"></div>
<div class="spacing-label">1 = 4px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 8px;"></div>
<div class="spacing-label">2 = 8px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 12px;"></div>
<div class="spacing-label">3 = 12px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 16px;"></div>
<div class="spacing-label">4 = 16px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 20px;"></div>
<div class="spacing-label">5 = 20px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 24px;"></div>
<div class="spacing-label">6 = 24px</div>
</div>
</div>
<div class="card">
<h4>Extended Scale</h4>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 32px;"></div>
<div class="spacing-label">8 = 32px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 48px;"></div>
<div class="spacing-label">12 = 48px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 64px;"></div>
<div class="spacing-label">16 = 64px</div>
</div>
<div style="margin: 20px 0;">
<div class="spacing-sample" style="height: 80px;"></div>
<div class="spacing-label">20 = 80px</div>
</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Border Radius System</h3>
<div class="grid grid-3">
<div class="card">
<div style="background: #FFC72C; height: 60px; border-radius: calc(0.75rem - 4px); margin-bottom: 10px;"></div>
<div class="color-value">sm = calc(var(--radius) - 4px)</div>
<div class="spacing-label">Small radius: 8px</div>
</div>
<div class="card">
<div style="background: #FF5722; height: 60px; border-radius: calc(0.75rem - 2px); margin-bottom: 10px;"></div>
<div class="color-value">md = calc(var(--radius) - 2px)</div>
<div class="spacing-label">Medium radius: 10px</div>
</div>
<div class="card">
<div style="background: #8D153A; height: 60px; border-radius: 0.75rem; margin-bottom: 10px;"></div>
<div class="color-value">lg = var(--radius)</div>
<div class="spacing-label">Large radius: 12px</div>
</div>
</div>
</div>
</section>
<!-- Shadows & Effects -->
<section class="section">
<h2 class="section-title">Shadows & Effects</h2>
<div class="subsection">
<h3 class="subsection-title">Shadow System</h3>
<div class="grid grid-2">
<div class="card">
<div class="shadow-sample" style="box-shadow: 0 4px 16px rgba(255, 199, 44, 0.15), 0 8px 32px rgba(0, 0, 0, 0.08);">Shadow Glow</div>
<div class="color-value">box-shadow: 0 4px 16px rgba(255, 199, 44, 0.15), 0 8px 32px rgba(0, 0, 0, 0.08)</div>
</div>
<div class="card">
<div class="shadow-sample" style="box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);">Modern Card</div>
<div class="color-value">box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06)</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Glass Morphism</h3>
<div class="modern-card">
<h4>Modern Card Style</h4>
<p>Glass morphism effect with backdrop blur and subtle transparency</p>
<div class="color-value">background: rgba(255, 255, 255, 0.8);<br>backdrop-filter: blur(10px);<br>border: 1px solid rgba(255, 255, 255, 0.2);</div>
</div>
</div>
</section>
<!-- Icons -->
<section class="section">
<h2 class="section-title">Icons</h2>
<div class="subsection">
<h3 class="subsection-title">Icon Library</h3>
<div class="card">
<h4>Lucide React</h4>
<p><strong>Version:</strong> Latest</p>
<p><strong>Style:</strong> Outline icons with 2px stroke width</p>
<p><strong>Size:</strong> 16px, 20px, 24px (standard sizes)</p>
<p><strong>Usage:</strong> Consistent stroke width and rounded line caps throughout the application</p>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Common Icon Patterns</h3>
<div class="icon-grid">
<div class="icon-sample">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#FFC72C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2z"/>
<polyline points="9,22 9,12 15,12 15,22"/>
</svg>
<div>Home</div>
</div>
<div class="icon-sample">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#FFC72C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2"/>
<circle cx="12" cy="7" r="4"/>
</svg>
<div>User</div>
</div>
<div class="icon-sample">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#FFC72C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 8a6 6 0 0112 0c0 7 3 9 3 9H3s3-2 3-9"/>
<path d="M10.3 21a1.94 1.94 0 003.4 0"/>
</svg>
<div>Notifications</div>
</div>
<div class="icon-sample">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#FFC72C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"/>
<path d="M12 1v6m0 6v6m11-7h-6m-6 0H1"/>
</svg>
<div>Settings</div>
</div>
<div class="icon-sample">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#FFC72C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="18" rx="2" ry="2"/>
<line x1="16" y1="2" x2="16" y2="6"/>
<line x1="8" y1="2" x2="8" y2="6"/>
<line x1="3" y1="10" x2="21" y2="10"/>
</svg>
<div>Calendar</div>
</div>
<div class="icon-sample">
<svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="#FFC72C" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"/>
</svg>
<div>Chat</div>
</div>
</div>
</div>
</section>
<!-- Animations -->
<section class="section">
<h2 class="section-title">Animations & Transitions</h2>
<div class="subsection">
<h3 class="subsection-title">Animation Library</h3>
<div class="grid grid-3">
<div class="card">
<div class="animation-sample float-animation"></div>
<h4>Float Animation</h4>
<div class="color-value">@keyframes float {<br> 0%, 100% { transform: translateY(0px); }<br> 50% { transform: translateY(-10px); }<br>}</div>
</div>
<div class="card">
<div class="animation-sample pulse-animation"></div>
<h4>Pulse Animation</h4>
<div class="color-value">@keyframes pulse {<br> 0%, 100% { transform: scale(1); }<br> 50% { transform: scale(1.1); }<br>}</div>
</div>
<div class="card">
<div class="animation-sample rotate-animation"></div>
<h4>Rotate Animation</h4>
<div class="color-value">@keyframes rotate {<br> from { transform: rotate(0deg); }<br> to { transform: rotate(360deg); }<br>}</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Transition Standards</h3>
<div class="card">
<h4>Easing Functions</h4>
<div class="grid grid-2" style="margin-top: 20px;">
<div>
<strong>Standard:</strong>
<div class="color-value">transition: all 0.3s ease;</div>
</div>
<div>
<strong>Smooth:</strong>
<div class="color-value">transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);</div>
</div>
<div>
<strong>Theme Change:</strong>
<div class="color-value">transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);</div>
</div>
<div>
<strong>Bounce:</strong>
<div class="color-value">transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);</div>
</div>
</div>
</div>
</div>
</section>
<!-- Component Samples -->
<section class="section">
<h2 class="section-title">Component Patterns</h2>
<div class="subsection">
<h3 class="subsection-title">Button Styles</h3>
<div class="grid grid-2">
<div class="component-sample">
<h4>Primary Button</h4>
<button class="button-primary">Get Started</button>
<div class="color-value" style="margin-top: 10px;">background: linear-gradient(135deg, #FFC72C, #FF5722);</div>
</div>
<div class="component-sample">
<h4>Secondary Button</h4>
<button class="button-secondary">Learn More</button>
<div class="color-value" style="margin-top: 10px;">border: 2px solid #FFC72C;</div>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Form Elements</h3>
<div class="component-sample">
<h4>Input Field</h4>
<input type="text" class="input-field" placeholder="Enter your information" />
<div class="color-value" style="margin-top: 10px;">border: 2px solid #e5e5e5;<br>focus:border-color: #FFC72C;</div>
</div>
</div>
</section>
<!-- Accessibility -->
<section class="section">
<h2 class="section-title">Accessibility Standards</h2>
<div class="accessibility-info">
<h3>WCAG 2.1 AA Compliance</h3>
<ul style="margin: 15px 0; padding-left: 20px;">
<li><strong>Color Contrast:</strong> Minimum 4.5:1 ratio for normal text, 3:1 for large text</li>
<li><strong>Focus Indicators:</strong> Visible focus states on all interactive elements</li>
<li><strong>Language Support:</strong> Multi-language content with proper lang attributes</li>
<li><strong>Keyboard Navigation:</strong> All functionality accessible via keyboard</li>
<li><strong>Screen Readers:</strong> Semantic HTML and proper ARIA labels</li>
</ul>
</div>
<div class="subsection">
<h3 class="subsection-title">Focus States</h3>
<div class="component-sample">
<div class="color-value">focus:ring-2 focus:ring-primary/20 focus:border-primary</div>
<p style="margin-top: 10px;">All interactive elements include visible focus indicators with the primary color and appropriate contrast.</p>
</div>
</div>
</section>
<!-- Responsive Design -->
<section class="section">
<h2 class="section-title">Responsive Design</h2>
<div class="responsive-info">
<h3>Breakpoint System (Tailwind CSS)</h3>
<div class="grid grid-2" style="margin-top: 20px;">
<div>
<strong>Mobile First Approach</strong>
<div class="color-value">sm: 640px</div>
<div class="color-value">md: 768px</div>
<div class="color-value">lg: 1024px</div>
<div class="color-value">xl: 1280px</div>
<div class="color-value">2xl: 1536px</div>
</div>
<div>
<strong>Design Principles</strong>
<ul style="margin: 10px 0; padding-left: 20px;">
<li>Touch-friendly targets (44px minimum)</li>
<li>Readable text on small screens</li>
<li>Optimized layouts for each breakpoint</li>
<li>Progressive enhancement</li>
</ul>
</div>
</div>
</div>
</section>
<!-- Implementation Guidelines -->
<section class="section">
<h2 class="section-title">Implementation Guidelines</h2>
<div class="subsection">
<h3 class="subsection-title">Technology Stack</h3>
<div class="grid grid-2">
<div class="card">
<h4>CSS Framework</h4>
<div class="color-value">Tailwind CSS v4</div>
<p>Utility-first CSS framework with custom theme configuration</p>
</div>
<div class="card">
<h4>Component Library</h4>
<div class="color-value">Radix UI + Custom Components</div>
<p>Headless UI components with custom styling</p>
</div>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">CSS Custom Properties</h3>
<div class="card">
<div class="color-value">
--color-primary: oklch(0.35 0.15 15);<br>
--color-secondary: oklch(0.95 0.015 85);<br>
--color-background: oklch(0.99 0.002 85);<br>
--radius: 0.75rem;
</div>
<p style="margin-top: 15px;">All design tokens are defined as CSS custom properties for consistent theming and easy maintenance.</p>
</div>
</div>
<div class="subsection">
<h3 class="subsection-title">Theme Implementation</h3>
<div class="card">
<h4>Dark Mode Support</h4>
<p>Automatic theme switching with system preference detection and manual toggle. Smooth transitions between themes using custom cubic-bezier timing functions.</p>
<div class="color-value" style="margin-top: 10px;">
darkMode: 'class'<br>
transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94)
</div>
</div>
</div>
</section>
<!-- Footer -->
<footer style="text-align: center; margin-top: 80px; padding: 40px 0; border-top: 1px solid #e5e5e5; color: #666;">
<p><strong>GovLink Design System</strong> - Version 1.0</p>
<p>Sri Lankan Government Digital Portal Design Standards</p>
<p style="margin-top: 20px; font-size: 0.9rem;">This style guide serves as the foundation for all GovLink digital interfaces, ensuring consistency, accessibility, and cultural relevance across all government services.</p>
</footer>
</div>
</body>
</html>