@polyxd/ds-govuk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,816 @@
1
+ {
2
+ "$description": "Values GOV.UK Frontend does not define, and contrast adjustments.",
3
+ "govuk": {
4
+ "palette-blue-primary": {
5
+ "$value": "#1d70b8",
6
+ "$type": "color"
7
+ },
8
+ "palette-blue-tint-25": {
9
+ "$value": "#5694ca",
10
+ "$type": "color"
11
+ },
12
+ "palette-blue-tint-50": {
13
+ "$value": "#8eb8dc",
14
+ "$type": "color"
15
+ },
16
+ "palette-blue-tint-80": {
17
+ "$value": "#d2e2f1",
18
+ "$type": "color"
19
+ },
20
+ "palette-blue-tint-95": {
21
+ "$value": "#f4f8fb",
22
+ "$type": "color"
23
+ },
24
+ "palette-blue-shade-25": {
25
+ "$value": "#16548a",
26
+ "$type": "color"
27
+ },
28
+ "palette-blue-shade-50": {
29
+ "$value": "#0f385c",
30
+ "$type": "color"
31
+ },
32
+ "palette-blue-shade-10": {
33
+ "$value": "#1a65a6",
34
+ "$type": "color"
35
+ },
36
+ "palette-green-primary": {
37
+ "$value": "#0f7a52",
38
+ "$type": "color"
39
+ },
40
+ "palette-green-tint-25": {
41
+ "$value": "#4b9b7d",
42
+ "$type": "color"
43
+ },
44
+ "palette-green-tint-50": {
45
+ "$value": "#87bca8",
46
+ "$type": "color"
47
+ },
48
+ "palette-green-tint-80": {
49
+ "$value": "#cfe4dc",
50
+ "$type": "color"
51
+ },
52
+ "palette-green-tint-95": {
53
+ "$value": "#f3f8f6",
54
+ "$type": "color"
55
+ },
56
+ "palette-green-shade-25": {
57
+ "$value": "#0b5c3e",
58
+ "$type": "color"
59
+ },
60
+ "palette-green-shade-50": {
61
+ "$value": "#083d29",
62
+ "$type": "color"
63
+ },
64
+ "palette-teal-primary": {
65
+ "$value": "#158187",
66
+ "$type": "color"
67
+ },
68
+ "palette-teal-tint-25": {
69
+ "$value": "#50a1a5",
70
+ "$type": "color"
71
+ },
72
+ "palette-teal-tint-50": {
73
+ "$value": "#8ac0c3",
74
+ "$type": "color"
75
+ },
76
+ "palette-teal-tint-80": {
77
+ "$value": "#d0e6e7",
78
+ "$type": "color"
79
+ },
80
+ "palette-teal-tint-95": {
81
+ "$value": "#f3f9f9",
82
+ "$type": "color"
83
+ },
84
+ "palette-teal-shade-25": {
85
+ "$value": "#106165",
86
+ "$type": "color"
87
+ },
88
+ "palette-teal-shade-50": {
89
+ "$value": "#0b4144",
90
+ "$type": "color"
91
+ },
92
+ "palette-teal-accent": {
93
+ "$value": "#00ffe0",
94
+ "$type": "color"
95
+ },
96
+ "palette-purple-primary": {
97
+ "$value": "#54319f",
98
+ "$type": "color"
99
+ },
100
+ "palette-purple-tint-25": {
101
+ "$value": "#7f65b7",
102
+ "$type": "color"
103
+ },
104
+ "palette-purple-tint-50": {
105
+ "$value": "#aa98cf",
106
+ "$type": "color"
107
+ },
108
+ "palette-purple-tint-80": {
109
+ "$value": "#ddd6ec",
110
+ "$type": "color"
111
+ },
112
+ "palette-purple-tint-95": {
113
+ "$value": "#f6f5fa",
114
+ "$type": "color"
115
+ },
116
+ "palette-purple-shade-25": {
117
+ "$value": "#3f2577",
118
+ "$type": "color"
119
+ },
120
+ "palette-purple-shade-50": {
121
+ "$value": "#2a1950",
122
+ "$type": "color"
123
+ },
124
+ "palette-magenta-primary": {
125
+ "$value": "#ca357c",
126
+ "$type": "color"
127
+ },
128
+ "palette-magenta-tint-25": {
129
+ "$value": "#d7689d",
130
+ "$type": "color"
131
+ },
132
+ "palette-magenta-tint-50": {
133
+ "$value": "#e59abe",
134
+ "$type": "color"
135
+ },
136
+ "palette-magenta-tint-80": {
137
+ "$value": "#f4d7e5",
138
+ "$type": "color"
139
+ },
140
+ "palette-magenta-tint-95": {
141
+ "$value": "#fcf5f8",
142
+ "$type": "color"
143
+ },
144
+ "palette-magenta-shade-25": {
145
+ "$value": "#98285d",
146
+ "$type": "color"
147
+ },
148
+ "palette-magenta-shade-50": {
149
+ "$value": "#651b3e",
150
+ "$type": "color"
151
+ },
152
+ "palette-red-primary": {
153
+ "$value": "#ca3535",
154
+ "$type": "color"
155
+ },
156
+ "palette-red-tint-25": {
157
+ "$value": "#d76868",
158
+ "$type": "color"
159
+ },
160
+ "palette-red-tint-50": {
161
+ "$value": "#e59a9a",
162
+ "$type": "color"
163
+ },
164
+ "palette-red-tint-80": {
165
+ "$value": "#f4d7d7",
166
+ "$type": "color"
167
+ },
168
+ "palette-red-tint-95": {
169
+ "$value": "#fcf5f5",
170
+ "$type": "color"
171
+ },
172
+ "palette-red-shade-25": {
173
+ "$value": "#982828",
174
+ "$type": "color"
175
+ },
176
+ "palette-red-shade-50": {
177
+ "$value": "#651b1b",
178
+ "$type": "color"
179
+ },
180
+ "palette-orange-primary": {
181
+ "$value": "#f47738",
182
+ "$type": "color"
183
+ },
184
+ "palette-orange-tint-25": {
185
+ "$value": "#f7996a",
186
+ "$type": "color"
187
+ },
188
+ "palette-orange-tint-50": {
189
+ "$value": "#fabb9c",
190
+ "$type": "color"
191
+ },
192
+ "palette-orange-tint-80": {
193
+ "$value": "#fde4d7",
194
+ "$type": "color"
195
+ },
196
+ "palette-orange-tint-95": {
197
+ "$value": "#fef8f5",
198
+ "$type": "color"
199
+ },
200
+ "palette-orange-shade-25": {
201
+ "$value": "#b7592a",
202
+ "$type": "color"
203
+ },
204
+ "palette-orange-shade-50": {
205
+ "$value": "#7a3c1c",
206
+ "$type": "color"
207
+ },
208
+ "palette-yellow-primary": {
209
+ "$value": "#ffdd00",
210
+ "$type": "color"
211
+ },
212
+ "palette-yellow-tint-25": {
213
+ "$value": "#ffe640",
214
+ "$type": "color"
215
+ },
216
+ "palette-yellow-tint-50": {
217
+ "$value": "#ffee80",
218
+ "$type": "color"
219
+ },
220
+ "palette-yellow-tint-80": {
221
+ "$value": "#fff8cc",
222
+ "$type": "color"
223
+ },
224
+ "palette-yellow-tint-95": {
225
+ "$value": "#fffdf2",
226
+ "$type": "color"
227
+ },
228
+ "palette-yellow-shade-25": {
229
+ "$value": "#bfa600",
230
+ "$type": "color"
231
+ },
232
+ "palette-yellow-shade-50": {
233
+ "$value": "#806f00",
234
+ "$type": "color"
235
+ },
236
+ "palette-brown-primary": {
237
+ "$value": "#99704a",
238
+ "$type": "color"
239
+ },
240
+ "palette-brown-tint-25": {
241
+ "$value": "#b39477",
242
+ "$type": "color"
243
+ },
244
+ "palette-brown-tint-50": {
245
+ "$value": "#ccb8a5",
246
+ "$type": "color"
247
+ },
248
+ "palette-brown-tint-95": {
249
+ "$value": "#faf8f6",
250
+ "$type": "color"
251
+ },
252
+ "palette-black-primary": {
253
+ "$value": "#0b0c0c",
254
+ "$type": "color"
255
+ },
256
+ "palette-black-tint-25": {
257
+ "$value": "#484949",
258
+ "$type": "color"
259
+ },
260
+ "palette-black-tint-50": {
261
+ "$value": "#858686",
262
+ "$type": "color"
263
+ },
264
+ "palette-black-tint-80": {
265
+ "$value": "#cecece",
266
+ "$type": "color"
267
+ },
268
+ "palette-black-tint-95": {
269
+ "$value": "#f3f3f3",
270
+ "$type": "color"
271
+ },
272
+ "palette-primary-primary": {
273
+ "$value": "#1d70b8",
274
+ "$type": "color"
275
+ },
276
+ "palette-tint-25-primary": {
277
+ "$value": "#5694ca",
278
+ "$type": "color"
279
+ },
280
+ "palette-tint-50-primary": {
281
+ "$value": "#8eb8dc",
282
+ "$type": "color"
283
+ },
284
+ "palette-tint-80-primary": {
285
+ "$value": "#d2e2f1",
286
+ "$type": "color"
287
+ },
288
+ "palette-tint-95-primary": {
289
+ "$value": "#f4f8fb",
290
+ "$type": "color"
291
+ },
292
+ "palette-shade-25-primary": {
293
+ "$value": "#16548a",
294
+ "$type": "color"
295
+ },
296
+ "palette-shade-50-primary": {
297
+ "$value": "#0f385c",
298
+ "$type": "color"
299
+ },
300
+ "palette-shade-10-primary": {
301
+ "$value": "#1a65a6",
302
+ "$type": "color"
303
+ },
304
+ "palette-accent-primary": {
305
+ "$value": "#00ffe0",
306
+ "$type": "color"
307
+ },
308
+ "palette-white-primary": {
309
+ "$value": "#ffffff",
310
+ "$type": "color"
311
+ },
312
+ "brand": {
313
+ "$value": "#1d70b8",
314
+ "$type": "color"
315
+ },
316
+ "text": {
317
+ "$value": "#0b0c0c",
318
+ "$type": "color"
319
+ },
320
+ "inverse-text": {
321
+ "$value": "#ffffff",
322
+ "$type": "color"
323
+ },
324
+ "template-background": {
325
+ "$value": "#f4f8fb",
326
+ "$type": "color"
327
+ },
328
+ "body-background": {
329
+ "$value": "#ffffff",
330
+ "$type": "color"
331
+ },
332
+ "print-text": {
333
+ "$value": "#000000",
334
+ "$type": "color"
335
+ },
336
+ "secondary-text": {
337
+ "$value": "#484949",
338
+ "$type": "color"
339
+ },
340
+ "focus": {
341
+ "$value": "#ffdd00",
342
+ "$type": "color"
343
+ },
344
+ "focus-text": {
345
+ "$value": "#0b0c0c",
346
+ "$type": "color"
347
+ },
348
+ "error": {
349
+ "$value": "#ca3535",
350
+ "$type": "color"
351
+ },
352
+ "success": {
353
+ "$value": "#0f7a52",
354
+ "$type": "color"
355
+ },
356
+ "border": {
357
+ "$value": "#cecece",
358
+ "$type": "color"
359
+ },
360
+ "input-border": {
361
+ "$value": "#0b0c0c",
362
+ "$type": "color"
363
+ },
364
+ "hover": {
365
+ "$value": "#cecece",
366
+ "$type": "color"
367
+ },
368
+ "link": {
369
+ "$value": "#1a65a6",
370
+ "$type": "color"
371
+ },
372
+ "link-visited": {
373
+ "$value": "#54319f",
374
+ "$type": "color"
375
+ },
376
+ "link-hover": {
377
+ "$value": "#0f385c",
378
+ "$type": "color"
379
+ },
380
+ "link-active": {
381
+ "$value": "#0b0c0c",
382
+ "$type": "color"
383
+ },
384
+ "surface-background": {
385
+ "$value": "#f4f8fb",
386
+ "$type": "color"
387
+ },
388
+ "surface-text": {
389
+ "$value": "#0b0c0c",
390
+ "$type": "color"
391
+ },
392
+ "surface-border": {
393
+ "$value": "#8eb8dc",
394
+ "$type": "color"
395
+ },
396
+ "spacing-0": {
397
+ "$value": {
398
+ "value": 0,
399
+ "unit": "px"
400
+ },
401
+ "$type": "dimension"
402
+ },
403
+ "spacing-1": {
404
+ "$value": {
405
+ "value": 5,
406
+ "unit": "px"
407
+ },
408
+ "$type": "dimension"
409
+ },
410
+ "spacing-2": {
411
+ "$value": {
412
+ "value": 10,
413
+ "unit": "px"
414
+ },
415
+ "$type": "dimension"
416
+ },
417
+ "spacing-3": {
418
+ "$value": {
419
+ "value": 15,
420
+ "unit": "px"
421
+ },
422
+ "$type": "dimension"
423
+ },
424
+ "spacing-4": {
425
+ "$value": {
426
+ "value": 20,
427
+ "unit": "px"
428
+ },
429
+ "$type": "dimension"
430
+ },
431
+ "spacing-5": {
432
+ "$value": {
433
+ "value": 25,
434
+ "unit": "px"
435
+ },
436
+ "$type": "dimension"
437
+ },
438
+ "spacing-6": {
439
+ "$value": {
440
+ "value": 30,
441
+ "unit": "px"
442
+ },
443
+ "$type": "dimension"
444
+ },
445
+ "spacing-7": {
446
+ "$value": {
447
+ "value": 40,
448
+ "unit": "px"
449
+ },
450
+ "$type": "dimension"
451
+ },
452
+ "spacing-8": {
453
+ "$value": {
454
+ "value": 50,
455
+ "unit": "px"
456
+ },
457
+ "$type": "dimension"
458
+ },
459
+ "spacing-9": {
460
+ "$value": {
461
+ "value": 60,
462
+ "unit": "px"
463
+ },
464
+ "$type": "dimension"
465
+ },
466
+ "font-size-16": {
467
+ "$value": {
468
+ "value": 16,
469
+ "unit": "px"
470
+ },
471
+ "$type": "dimension"
472
+ },
473
+ "line-height-16": {
474
+ "$value": {
475
+ "value": 20,
476
+ "unit": "px"
477
+ },
478
+ "$type": "dimension"
479
+ },
480
+ "font-size-19": {
481
+ "$value": {
482
+ "value": 19,
483
+ "unit": "px"
484
+ },
485
+ "$type": "dimension"
486
+ },
487
+ "line-height-19": {
488
+ "$value": {
489
+ "value": 25,
490
+ "unit": "px"
491
+ },
492
+ "$type": "dimension"
493
+ },
494
+ "font-size-24": {
495
+ "$value": {
496
+ "value": 24,
497
+ "unit": "px"
498
+ },
499
+ "$type": "dimension"
500
+ },
501
+ "line-height-24": {
502
+ "$value": {
503
+ "value": 30,
504
+ "unit": "px"
505
+ },
506
+ "$type": "dimension"
507
+ },
508
+ "font-size-27": {
509
+ "$value": {
510
+ "value": 27,
511
+ "unit": "px"
512
+ },
513
+ "$type": "dimension"
514
+ },
515
+ "line-height-27": {
516
+ "$value": {
517
+ "value": 30,
518
+ "unit": "px"
519
+ },
520
+ "$type": "dimension"
521
+ },
522
+ "font-size-36": {
523
+ "$value": {
524
+ "value": 36,
525
+ "unit": "px"
526
+ },
527
+ "$type": "dimension"
528
+ },
529
+ "line-height-36": {
530
+ "$value": {
531
+ "value": 40,
532
+ "unit": "px"
533
+ },
534
+ "$type": "dimension"
535
+ },
536
+ "font-size-48": {
537
+ "$value": {
538
+ "value": 48,
539
+ "unit": "px"
540
+ },
541
+ "$type": "dimension"
542
+ },
543
+ "line-height-48": {
544
+ "$value": {
545
+ "value": 50,
546
+ "unit": "px"
547
+ },
548
+ "$type": "dimension"
549
+ },
550
+ "font-size-80": {
551
+ "$value": {
552
+ "value": 80,
553
+ "unit": "px"
554
+ },
555
+ "$type": "dimension"
556
+ },
557
+ "line-height-80": {
558
+ "$value": {
559
+ "value": 80,
560
+ "unit": "px"
561
+ },
562
+ "$type": "dimension"
563
+ },
564
+ "font-family": {
565
+ "$value": "\"GDS Transport\", arial, sans-serif",
566
+ "$type": "fontFamily"
567
+ },
568
+ "font-weight-regular": {
569
+ "$value": 400,
570
+ "$type": "number"
571
+ },
572
+ "font-weight-bold": {
573
+ "$value": 700,
574
+ "$type": "number"
575
+ },
576
+ "focus-width": {
577
+ "$value": {
578
+ "value": 3,
579
+ "unit": "px"
580
+ },
581
+ "$type": "dimension"
582
+ },
583
+ "border-width": {
584
+ "$value": {
585
+ "value": 5,
586
+ "unit": "px"
587
+ },
588
+ "$type": "dimension"
589
+ },
590
+ "border-width-form-element": {
591
+ "$value": {
592
+ "value": 2,
593
+ "unit": "px"
594
+ },
595
+ "$type": "dimension"
596
+ }
597
+ },
598
+ "polyxd": {
599
+ "sys": {
600
+ "$type": "color",
601
+ "status-info-background": {
602
+ "$value": "{govuk.palette-blue-tint-95}"
603
+ },
604
+ "status-info-foreground": {
605
+ "$value": "{govuk.palette-blue-shade-25}"
606
+ },
607
+ "status-info-emphasis": {
608
+ "$value": "{govuk.palette-blue-primary}"
609
+ },
610
+ "status-success-background": {
611
+ "$value": "{govuk.palette-green-tint-95}"
612
+ },
613
+ "status-success-foreground": {
614
+ "$value": "{govuk.palette-green-shade-25}"
615
+ },
616
+ "status-success-emphasis": {
617
+ "$value": "{govuk.palette-green-primary}"
618
+ },
619
+ "status-warning-background": {
620
+ "$value": "{govuk.palette-orange-tint-95}"
621
+ },
622
+ "status-warning-foreground": {
623
+ "$value": "{govuk.palette-orange-shade-50}",
624
+ "$description": "Contrast adjustment: GOV.UK's orange shade-25 doesn't reach 4.5:1 here; orange-shade-50 is the nearest variant of the same colour that does (8.01:1)"
625
+ },
626
+ "status-warning-emphasis": {
627
+ "$value": "{govuk.palette-orange-shade-25}",
628
+ "$description": "Contrast adjustment: GOV.UK's orange primary doesn't reach 3:1 here; orange-shade-25 is the nearest variant of the same colour that does (4.69:1)"
629
+ },
630
+ "status-danger-background": {
631
+ "$value": "{govuk.palette-red-tint-95}"
632
+ },
633
+ "status-danger-foreground": {
634
+ "$value": "{govuk.palette-red-shade-25}"
635
+ },
636
+ "status-danger-emphasis": {
637
+ "$value": "{govuk.palette-red-primary}"
638
+ },
639
+ "data-1": {
640
+ "$value": "{govuk.palette-blue-primary}"
641
+ },
642
+ "data-2": {
643
+ "$value": "{govuk.palette-green-primary}"
644
+ },
645
+ "data-3": {
646
+ "$value": "{govuk.palette-purple-primary}"
647
+ },
648
+ "data-4": {
649
+ "$value": "{govuk.palette-orange-shade-25}",
650
+ "$description": "Contrast adjustment: GOV.UK's orange primary doesn't reach 3:1 here; orange-shade-25 is the nearest variant of the same colour that does (4.69:1)"
651
+ },
652
+ "data-5": {
653
+ "$value": "{govuk.palette-magenta-primary}"
654
+ },
655
+ "data-6": {
656
+ "$value": "{govuk.palette-teal-primary}"
657
+ },
658
+ "data-positive": {
659
+ "$value": "{govuk.palette-green-primary}"
660
+ },
661
+ "data-negative": {
662
+ "$value": "{govuk.palette-red-primary}"
663
+ },
664
+ "data-neutral": {
665
+ "$value": "{govuk.palette-brown-primary}"
666
+ },
667
+ "action-primary": {
668
+ "$value": "{govuk.palette-green-primary}"
669
+ },
670
+ "action-danger": {
671
+ "$value": "{govuk.palette-red-primary}"
672
+ },
673
+ "border-strong": {
674
+ "$value": "{govuk.palette-black-tint-50}"
675
+ },
676
+ "surface": {
677
+ "$type": "color",
678
+ "raised": {
679
+ "$value": "#ffffff",
680
+ "$description": "GOV.UK draws cards as bordered panels on the page background rather than on a raised fill"
681
+ }
682
+ },
683
+ "scrim": {
684
+ "$type": "color",
685
+ "$value": "rgba(11, 12, 12, 0.6)",
686
+ "$description": "GOV.UK has no modal, so no scrim; this is its black at 60%"
687
+ },
688
+ "radius": {
689
+ "$type": "dimension",
690
+ "none": {
691
+ "$value": {
692
+ "value": 0,
693
+ "unit": "px"
694
+ },
695
+ "$description": "GOV.UK's corners are square, everywhere — the one shape decision the whole system is built on"
696
+ }
697
+ },
698
+ "target": {
699
+ "$type": "dimension",
700
+ "min": {
701
+ "$value": {
702
+ "value": 44,
703
+ "unit": "px"
704
+ },
705
+ "$description": "GOV.UK's form controls are 40px; 44px is the touch target a generated surface is held to"
706
+ }
707
+ },
708
+ "measure": {
709
+ "$type": "number",
710
+ "max": {
711
+ "$value": 65,
712
+ "$description": "GOV.UK writes to about 65 characters a line; the setting is in its grid, not in a token"
713
+ }
714
+ },
715
+ "state": {
716
+ "$type": "number",
717
+ "hover": {
718
+ "$value": 0.06,
719
+ "$description": "GOV.UK shades hover with separate palette colours; Polyxd needs a state-layer opacity"
720
+ },
721
+ "pressed": {
722
+ "$value": 0.12
723
+ },
724
+ "focus": {
725
+ "$value": 0.12
726
+ },
727
+ "disabled": {
728
+ "$value": 0.5,
729
+ "$description": "GOV.UK's disabled controls are its standard controls at half opacity"
730
+ }
731
+ },
732
+ "shadow": {
733
+ "$type": "shadow",
734
+ "none": {
735
+ "$value": [
736
+ {
737
+ "offsetX": {
738
+ "value": 0,
739
+ "unit": "px"
740
+ },
741
+ "offsetY": {
742
+ "value": 0,
743
+ "unit": "px"
744
+ },
745
+ "blur": {
746
+ "value": 0,
747
+ "unit": "px"
748
+ },
749
+ "spread": {
750
+ "value": 0,
751
+ "unit": "px"
752
+ },
753
+ "color": "rgba(0, 0, 0, 0)"
754
+ }
755
+ ],
756
+ "$description": "GOV.UK draws no shadows at all: depth is a border, not a blur"
757
+ }
758
+ },
759
+ "motion": {
760
+ "$type": "duration",
761
+ "instant": {
762
+ "$value": {
763
+ "value": 0,
764
+ "unit": "ms"
765
+ }
766
+ },
767
+ "short": {
768
+ "$value": {
769
+ "value": 0,
770
+ "unit": "ms"
771
+ }
772
+ },
773
+ "medium": {
774
+ "$value": {
775
+ "value": 0,
776
+ "unit": "ms"
777
+ }
778
+ },
779
+ "long": {
780
+ "$value": {
781
+ "value": 0,
782
+ "unit": "ms"
783
+ },
784
+ "$description": "GOV.UK animates nothing; these durations are zero rather than invented"
785
+ }
786
+ },
787
+ "easing": {
788
+ "$type": "cubicBezier",
789
+ "standard": {
790
+ "$value": [
791
+ 0,
792
+ 0,
793
+ 1,
794
+ 1
795
+ ]
796
+ },
797
+ "enter": {
798
+ "$value": [
799
+ 0,
800
+ 0,
801
+ 1,
802
+ 1
803
+ ]
804
+ },
805
+ "exit": {
806
+ "$value": [
807
+ 0,
808
+ 0,
809
+ 1,
810
+ 1
811
+ ]
812
+ }
813
+ }
814
+ }
815
+ }
816
+ }