@comicrelief/component-library 8.43.0 → 8.44.1

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.
Files changed (73) hide show
  1. package/dist/components/Atoms/Checkbox/Checkbox.test.js +50 -10
  2. package/dist/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +27 -4
  3. package/dist/components/Atoms/Input/Input.js +4 -9
  4. package/dist/components/Atoms/Input/input.test.js +92 -14
  5. package/dist/components/Atoms/Label/Label.js +14 -7
  6. package/dist/components/Atoms/RadioButton/RadioButton.test.js +50 -10
  7. package/dist/components/Atoms/Select/__snapshots__/Select.test.js.snap +45 -6
  8. package/dist/components/Atoms/Text/Text.js +60 -75
  9. package/dist/components/Atoms/Text/Text.md +84 -87
  10. package/dist/components/Atoms/Text/__snapshots__/Text.test.js.snap +130 -21
  11. package/dist/components/Atoms/TextArea/TextArea.test.js +45 -6
  12. package/dist/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +138 -25
  13. package/dist/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +48 -7
  14. package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +110 -20
  15. package/dist/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +26 -6
  16. package/dist/components/Molecules/Descriptor/Descriptor.test.js +85 -15
  17. package/dist/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +53 -3
  18. package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +27 -4
  19. package/dist/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +112 -28
  20. package/dist/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +46 -7
  21. package/dist/components/Molecules/SearchInput/SearchInput.test.js +23 -6
  22. package/dist/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +232 -20
  23. package/dist/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +187 -30
  24. package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +50 -9
  25. package/dist/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +46 -7
  26. package/dist/components/Organisms/CookieBanner/CookieBanner.test.js +26 -7
  27. package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +544 -101
  28. package/dist/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +75 -19
  29. package/dist/components/Organisms/Footer/Nav/Nav.style.js +1 -1
  30. package/dist/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +100 -47
  31. package/dist/components/Organisms/Membership/Membership.test.js +122 -22
  32. package/dist/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
  33. package/dist/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +75 -19
  34. package/dist/theme/crTheme/fontConfig.js +217 -0
  35. package/dist/theme/crTheme/fontHelper.js +38 -0
  36. package/dist/theme/shared/global.css +3 -1
  37. package/package.json +11 -3
  38. package/src/components/Atoms/Checkbox/Checkbox.test.js +50 -10
  39. package/src/components/Atoms/ErrorText/__snapshots__/ErrorText.test.js.snap +27 -4
  40. package/src/components/Atoms/Input/Input.js +2 -2
  41. package/src/components/Atoms/Input/input.test.js +92 -14
  42. package/src/components/Atoms/Label/Label.js +7 -3
  43. package/src/components/Atoms/RadioButton/RadioButton.test.js +50 -10
  44. package/src/components/Atoms/Select/__snapshots__/Select.test.js.snap +45 -6
  45. package/src/components/Atoms/Text/Text.js +55 -54
  46. package/src/components/Atoms/Text/Text.md +84 -87
  47. package/src/components/Atoms/Text/__snapshots__/Text.test.js.snap +130 -21
  48. package/src/components/Atoms/TextArea/TextArea.test.js +45 -6
  49. package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +138 -25
  50. package/src/components/Molecules/Accordion/__snapshots__/Accordion.test.js.snap +48 -7
  51. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +110 -20
  52. package/src/components/Molecules/Banner/__snapshots__/Banner.test.js.snap +26 -6
  53. package/src/components/Molecules/Descriptor/Descriptor.test.js +85 -15
  54. package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +53 -3
  55. package/src/components/Molecules/PartnerLink/PartnerLink.test.js +27 -4
  56. package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +112 -28
  57. package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +46 -7
  58. package/src/components/Molecules/SearchInput/SearchInput.test.js +23 -6
  59. package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +232 -20
  60. package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +187 -30
  61. package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +50 -9
  62. package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +46 -7
  63. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +26 -7
  64. package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +544 -101
  65. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +75 -19
  66. package/src/components/Organisms/Footer/Nav/Nav.style.js +1 -1
  67. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +100 -47
  68. package/src/components/Organisms/Membership/Membership.test.js +122 -22
  69. package/src/components/Organisms/Membership/MoneyBox/MoneyBox.js +1 -1
  70. package/src/components/Organisms/WYMDCarousel/__snapshots__/WYMDCarousel.test.js.snap +75 -19
  71. package/src/theme/crTheme/fontConfig.js +211 -0
  72. package/src/theme/crTheme/fontHelper.js +31 -0
  73. package/src/theme/shared/global.css +3 -1
@@ -26,35 +26,63 @@ it('renders correctly', () => {
26
26
 
27
27
  expect(tree).toMatchInlineSnapshot(`
28
28
  .c6 {
29
+ font-family: 'Anton',Impact,sans-serif;
30
+ font-weight: 400;
31
+ text-transform: uppercase;
32
+ -webkit-letter-spacing: 0;
33
+ -moz-letter-spacing: 0;
34
+ -ms-letter-spacing: 0;
35
+ letter-spacing: 0;
29
36
  font-size: 1.5rem;
30
37
  line-height: 1.5rem;
31
- text-transform: inherit;
38
+ }
39
+
40
+ .c6 {
41
+ font-size: 1.5rem;
42
+ line-height: normal;
32
43
  font-weight: 800;
33
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
34
44
  }
35
45
 
36
46
  .c7 {
37
- font-size: 1rem;
38
- line-height: 1rem;
39
- text-transform: inherit;
40
- line-height: normal;
41
47
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
48
+ font-weight: 400;
49
+ text-transform: inherit;
50
+ -webkit-letter-spacing: 0;
51
+ -moz-letter-spacing: 0;
52
+ -ms-letter-spacing: 0;
53
+ letter-spacing: 0;
54
+ font-size: 1rem;
55
+ line-height: 1.25rem;
42
56
  }
43
57
 
44
58
  .c12 {
45
- font-size: 1rem;
46
- line-height: 1rem;
59
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
60
+ font-weight: 700;
47
61
  text-transform: inherit;
62
+ -webkit-letter-spacing: 0;
63
+ -moz-letter-spacing: 0;
64
+ -ms-letter-spacing: 0;
65
+ letter-spacing: 0;
66
+ font-size: 1.25rem;
67
+ line-height: 1.5rem;
68
+ }
69
+
70
+ .c22 {
48
71
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
72
+ font-weight: 400;
73
+ text-transform: inherit;
74
+ -webkit-letter-spacing: 0;
75
+ -moz-letter-spacing: 0;
76
+ -ms-letter-spacing: 0;
77
+ letter-spacing: 0;
78
+ font-size: 1rem;
79
+ line-height: 1.25rem;
49
80
  }
50
81
 
51
82
  .c22 {
52
83
  font-size: 1rem;
53
- line-height: 1rem;
54
- text-transform: inherit;
55
- font-weight: 500;
56
84
  line-height: normal;
57
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
85
+ font-weight: 500;
58
86
  }
59
87
 
60
88
  .c1 {
@@ -86,7 +114,15 @@ it('renders correctly', () => {
86
114
 
87
115
  .c16 {
88
116
  margin-bottom: 0.5rem;
89
- font-weight: normal;
117
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
118
+ font-weight: 400;
119
+ text-transform: inherit;
120
+ -webkit-letter-spacing: 0;
121
+ -moz-letter-spacing: 0;
122
+ -ms-letter-spacing: 0;
123
+ letter-spacing: 0;
124
+ font-size: 1rem;
125
+ line-height: 1.25rem;
90
126
  }
91
127
 
92
128
  .c17 {
@@ -128,7 +164,7 @@ it('renders correctly', () => {
128
164
  border-radius: 0.5rem;
129
165
  font-size: inherit;
130
166
  z-index: 2;
131
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
167
+ font-family: inherit;
132
168
  }
133
169
 
134
170
  .c19:focus {
@@ -142,7 +178,7 @@ it('renders correctly', () => {
142
178
  .c15 input {
143
179
  border: 2px solid #E1E2E3;
144
180
  font-size: 1.5rem;
145
- font-weight: 800;
181
+ font-weight: 700;
146
182
  -webkit-letter-spacing: -2px;
147
183
  -moz-letter-spacing: -2px;
148
184
  -ms-letter-spacing: -2px;
@@ -157,7 +193,7 @@ it('renders correctly', () => {
157
193
  .c20 input {
158
194
  border: 2px solid #E1E2E3;
159
195
  font-size: 1.5rem;
160
- font-weight: 800;
196
+ font-weight: 700;
161
197
  -webkit-letter-spacing: -2px;
162
198
  -moz-letter-spacing: -2px;
163
199
  -ms-letter-spacing: -2px;
@@ -339,6 +375,76 @@ it('renders correctly', () => {
339
375
  background-color: #961D35;
340
376
  }
341
377
 
378
+ @media (min-width:740px) {
379
+ .c6 {
380
+ font-size: 1.875rem;
381
+ line-height: 1.875rem;
382
+ }
383
+ }
384
+
385
+ @media (min-width:1024px) {
386
+ .c6 {
387
+ font-size: 2rem;
388
+ line-height: 2rem;
389
+ }
390
+ }
391
+
392
+ @media (min-width:740px) {
393
+ .c7 {
394
+ font-size: 1rem;
395
+ line-height: 1.25rem;
396
+ }
397
+ }
398
+
399
+ @media (min-width:1024px) {
400
+ .c7 {
401
+ font-size: 1.125rem;
402
+ line-height: 1.375rem;
403
+ }
404
+ }
405
+
406
+ @media (min-width:740px) {
407
+ .c12 {
408
+ font-size: 1.25rem;
409
+ line-height: 1.5rem;
410
+ }
411
+ }
412
+
413
+ @media (min-width:1024px) {
414
+ .c12 {
415
+ font-size: 1.375rem;
416
+ line-height: 1.625rem;
417
+ }
418
+ }
419
+
420
+ @media (min-width:740px) {
421
+ .c22 {
422
+ font-size: 1rem;
423
+ line-height: 1.25rem;
424
+ }
425
+ }
426
+
427
+ @media (min-width:1024px) {
428
+ .c22 {
429
+ font-size: 1.125rem;
430
+ line-height: 1.375rem;
431
+ }
432
+ }
433
+
434
+ @media (min-width:740px) {
435
+ .c16 {
436
+ font-size: 1rem;
437
+ line-height: 1.25rem;
438
+ }
439
+ }
440
+
441
+ @media (min-width:1024px) {
442
+ .c16 {
443
+ font-size: 1rem;
444
+ line-height: 1.25rem;
445
+ }
446
+ }
447
+
342
448
  @media (min-width:740px) {
343
449
 
344
450
  }
@@ -438,7 +544,6 @@ it('renders correctly', () => {
438
544
  <p
439
545
  className="c7"
440
546
  color="inherit"
441
- size="s"
442
547
  >
443
548
  Jordan was close to suicide - which is now the biggest killer of men under 45 in the UK. Join now and help save lives.
444
549
  </p>
@@ -459,7 +564,6 @@ it('renders correctly', () => {
459
564
  <h3
460
565
  className="c12"
461
566
  color="inherit"
462
- size="s"
463
567
  >
464
568
  Choose your monthly donation
465
569
  </h3>
@@ -479,7 +583,6 @@ it('renders correctly', () => {
479
583
  "__html": "",
480
584
  }
481
585
  }
482
- size="s"
483
586
  />
484
587
  <div
485
588
  className="c17"
@@ -517,7 +620,6 @@ it('renders correctly', () => {
517
620
  "__html": "",
518
621
  }
519
622
  }
520
- size="s"
521
623
  />
522
624
  <div
523
625
  className="c17"
@@ -555,7 +657,6 @@ it('renders correctly', () => {
555
657
  "__html": "",
556
658
  }
557
659
  }
558
- size="s"
559
660
  />
560
661
  <div
561
662
  className="c17"
@@ -604,7 +705,6 @@ it('renders correctly', () => {
604
705
  "__html": "£",
605
706
  }
606
707
  }
607
- size="s"
608
708
  />
609
709
  <div
610
710
  className="c17"
@@ -9,7 +9,7 @@ const MoneyBox = styled(Input)`
9
9
  input {
10
10
  border: 2px solid ${({ theme }) => theme.color('grey_medium')};
11
11
  font-size: ${({ theme }) => theme.fontSize('l')};
12
- font-weight: 800;
12
+ font-weight: 700;
13
13
  letter-spacing: -2px;
14
14
  height: auto;
15
15
 
@@ -342,33 +342,50 @@ exports[`renders correctly:
342
342
  </div>
343
343
  1`] = `
344
344
  .c1 {
345
- font-size: 1rem;
346
- line-height: 1rem;
345
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
346
+ font-weight: 400;
347
347
  text-transform: inherit;
348
+ -webkit-letter-spacing: 0;
349
+ -moz-letter-spacing: 0;
350
+ -ms-letter-spacing: 0;
351
+ letter-spacing: 0;
352
+ font-size: 1rem;
353
+ line-height: 1.25rem;
354
+ }
355
+
356
+ .c1 {
348
357
  font-weight: bold;
349
- line-height: normal;
350
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
351
358
  }
352
359
 
353
360
  .c3 {
354
- color: #E52630;
355
- font-size: 1rem;
356
- line-height: 1rem;
361
+ font-family: 'Anton',Impact,sans-serif;
362
+ font-weight: 400;
357
363
  text-transform: uppercase;
358
- font-weight: normal;
364
+ -webkit-letter-spacing: 0;
365
+ -moz-letter-spacing: 0;
366
+ -ms-letter-spacing: 0;
367
+ letter-spacing: 0;
368
+ font-size: 2rem;
369
+ line-height: 2rem;
370
+ }
371
+
372
+ .c3 {
359
373
  font-family: 'Anton',Impact,sans-serif;
360
- -webkit-letter-spacing: 0.03rem;
361
- -moz-letter-spacing: 0.03rem;
362
- -ms-letter-spacing: 0.03rem;
363
- letter-spacing: 0.03rem;
374
+ font-weight: normal;
375
+ text-transform: uppercase;
376
+ color: #E52630;
364
377
  }
365
378
 
366
379
  .c5 {
367
- font-size: 1rem;
368
- line-height: 1rem;
369
- text-transform: inherit;
370
- line-height: normal;
371
380
  font-family: 'Montserrat',Helvetica,Arial,sans-serif;
381
+ font-weight: 400;
382
+ text-transform: inherit;
383
+ -webkit-letter-spacing: 0;
384
+ -moz-letter-spacing: 0;
385
+ -ms-letter-spacing: 0;
386
+ letter-spacing: 0;
387
+ font-size: 1rem;
388
+ line-height: 1.25rem;
372
389
  }
373
390
 
374
391
  .c2 {
@@ -501,6 +518,48 @@ exports[`renders correctly:
501
518
  flex-direction: column;
502
519
  }
503
520
 
521
+ @media (min-width:740px) {
522
+ .c1 {
523
+ font-size: 1rem;
524
+ line-height: 1.25rem;
525
+ }
526
+ }
527
+
528
+ @media (min-width:1024px) {
529
+ .c1 {
530
+ font-size: 1.125rem;
531
+ line-height: 1.375rem;
532
+ }
533
+ }
534
+
535
+ @media (min-width:740px) {
536
+ .c3 {
537
+ font-size: 2.5rem;
538
+ line-height: 2.5rem;
539
+ }
540
+ }
541
+
542
+ @media (min-width:1024px) {
543
+ .c3 {
544
+ font-size: 3rem;
545
+ line-height: 3rem;
546
+ }
547
+ }
548
+
549
+ @media (min-width:740px) {
550
+ .c5 {
551
+ font-size: 1rem;
552
+ line-height: 1.25rem;
553
+ }
554
+ }
555
+
556
+ @media (min-width:1024px) {
557
+ .c5 {
558
+ font-size: 1.125rem;
559
+ line-height: 1.375rem;
560
+ }
561
+ }
562
+
504
563
  @media (min-width:1024px) {
505
564
  .c2:first-child {
506
565
  font-size: 20px;
@@ -661,21 +720,18 @@ exports[`renders correctly:
661
720
  <p
662
721
  className="c1 c2"
663
722
  color="inherit"
664
- size="s"
665
723
  >
666
724
  Over the past two years, we’ve supported
667
725
  </p>
668
726
  <h1
669
727
  className="c3 c4"
670
728
  color="red"
671
- size="s"
672
729
  >
673
730
  11.7 million people
674
731
  </h1>
675
732
  <p
676
733
  className="c5 c6"
677
734
  color="inherit"
678
- size="s"
679
735
  >
680
736
  including...
681
737
  </p>
@@ -0,0 +1,211 @@
1
+ export default {
2
+ h1: {
3
+ family: 'Anton',
4
+ weight: 400,
5
+ transform: 'uppercase',
6
+ small: {
7
+ fontSize: '2rem',
8
+ lineHeight: '2rem'
9
+ },
10
+ medium: {
11
+ fontSize: '2.5rem',
12
+ lineHeight: '2.5rem'
13
+ },
14
+ large: {
15
+ fontSize: '3rem',
16
+ lineHeight: '3rem'
17
+ }
18
+ },
19
+ h2: {
20
+ family: 'Anton',
21
+ weight: 400,
22
+ transform: 'uppercase',
23
+ small: {
24
+ fontSize: '1.5rem',
25
+ lineHeight: '1.5rem'
26
+ },
27
+ medium: {
28
+ fontSize: '1.875rem',
29
+ lineHeight: '1.875rem'
30
+ },
31
+ large: {
32
+ fontSize: '2rem',
33
+ lineHeight: '2rem'
34
+ }
35
+ },
36
+ h3: {
37
+ family: 'Montserrat',
38
+ weight: 700,
39
+ transform: 'inherit',
40
+ small: {
41
+ fontSize: '1.25rem',
42
+ lineHeight: '1.5rem'
43
+ },
44
+ medium: {
45
+ fontSize: '1.25rem',
46
+ lineHeight: '1.5rem'
47
+ },
48
+ large: {
49
+ fontSize: '1.375rem',
50
+ lineHeight: '1.625rem'
51
+ }
52
+ },
53
+ h4: {
54
+ family: 'Montserrat',
55
+ weight: 700,
56
+ transform: 'inherit',
57
+ small: {
58
+ fontSize: '1rem',
59
+ lineHeight: '1.25rem'
60
+ },
61
+ medium: {
62
+ fontSize: '1rem',
63
+ lineHeight: '1.25rem'
64
+ },
65
+ large: {
66
+ fontSize: '1.125rem',
67
+ lineHeight: '1.375rem'
68
+ }
69
+ },
70
+ // H5 and H6 to be phased out of usage, but keeping
71
+ // some config here to keep pre-existing usage happy:
72
+ h5: {
73
+ family: 'Montserrat',
74
+ weight: 700,
75
+ transform: 'inherit',
76
+ small: {
77
+ fontSize: '1rem',
78
+ lineHeight: '1.25rem'
79
+ },
80
+ medium: {
81
+ fontSize: '1rem',
82
+ lineHeight: '1.25rem'
83
+ },
84
+ large: {
85
+ fontSize: '1.125rem',
86
+ lineHeight: '1.375rem'
87
+ }
88
+ },
89
+ h6: {
90
+ family: 'Montserrat',
91
+ weight: 700,
92
+ transform: 'inherit',
93
+ small: {
94
+ fontSize: '1rem',
95
+ lineHeight: '1.25rem'
96
+ },
97
+ medium: {
98
+ fontSize: '1rem',
99
+ lineHeight: '1.25rem'
100
+ },
101
+ large: {
102
+ fontSize: '1.125rem',
103
+ lineHeight: '1.375rem'
104
+ }
105
+ },
106
+ p: {
107
+ family: 'Montserrat',
108
+ weight: 400,
109
+ transform: 'inherit',
110
+ small: {
111
+ fontSize: '1rem',
112
+ lineHeight: '1.25rem'
113
+ },
114
+ medium: {
115
+ fontSize: '1rem',
116
+ lineHeight: '1.25rem'
117
+ },
118
+ large: {
119
+ fontSize: '1.125rem',
120
+ lineHeight: '1.375rem'
121
+ }
122
+ },
123
+ span: {
124
+ family: 'Montserrat',
125
+ weight: 400,
126
+ transform: 'inherit',
127
+ small: {
128
+ fontSize: '1rem',
129
+ lineHeight: '1.25rem'
130
+ },
131
+ medium: {
132
+ fontSize: '1rem',
133
+ lineHeight: '1.25rem'
134
+ },
135
+ large: {
136
+ fontSize: '1.125rem',
137
+ lineHeight: '1.375rem'
138
+ }
139
+ },
140
+ // To be used directly (not via fontHelper), but makes sense to keep here:
141
+ button: {
142
+ family: 'Montserrat',
143
+ weight: 400,
144
+ transform: 'inherit',
145
+ small: {
146
+ fontSize: '1rem',
147
+ lineHeight: '1.25rem'
148
+ },
149
+ medium: {
150
+ fontSize: '1rem',
151
+ lineHeight: '1.25rem'
152
+ },
153
+ large: {
154
+ fontSize: '1.125rem',
155
+ lineHeight: '1.375rem'
156
+ }
157
+ },
158
+ // Admittedly, while the same for each breakpoint, these 2
159
+ // config objects made sense to keep it here all the same.
160
+ formFieldLabel: {
161
+ family: 'Montserrat',
162
+ weight: 400,
163
+ transform: 'inherit',
164
+ small: {
165
+ fontSize: '1rem',
166
+ lineHeight: '1.25rem'
167
+ },
168
+ medium: {
169
+ fontSize: '1rem',
170
+ lineHeight: '1.25rem'
171
+ },
172
+ large: {
173
+ fontSize: '1rem',
174
+ lineHeight: '1.25rem'
175
+ }
176
+ },
177
+ formFieldInput: {
178
+ family: 'Montserrat',
179
+ weight: 400,
180
+ transform: 'inherit',
181
+ small: {
182
+ fontSize: '1.25rem',
183
+ lineHeight: '1.25rem'
184
+ },
185
+ medium: {
186
+ fontSize: '1.25rem',
187
+ lineHeight: '1.25rem'
188
+ },
189
+ large: {
190
+ fontSize: '1.25rem',
191
+ lineHeight: '1.25rem'
192
+ }
193
+ },
194
+ formFieldError: {
195
+ family: 'Montserrat',
196
+ weight: 400,
197
+ transform: 'inherit',
198
+ small: {
199
+ fontSize: '0.875rem',
200
+ lineHeight: '1.063rem'
201
+ },
202
+ medium: {
203
+ fontSize: '0.875rem',
204
+ lineHeight: '1.063rem'
205
+ },
206
+ large: {
207
+ fontSize: '0.875rem',
208
+ lineHeight: '1.063rem'
209
+ }
210
+ }
211
+ };
@@ -0,0 +1,31 @@
1
+ import fontConfig from './fontConfig';
2
+
3
+ export default (theme, thisTag) => {
4
+ // Check we've got a match, just in case:
5
+ if (Object.keys(fontConfig).includes(thisTag)) {
6
+ return `
7
+ // General styles:
8
+ font-family: ${theme.fontFamilies(fontConfig[thisTag].family)};
9
+ font-weight: ${fontConfig[thisTag].weight};
10
+ text-transform: ${fontConfig[thisTag].transform};
11
+ letter-spacing: 0;
12
+
13
+ // XS and S breakpoint ("mobile")
14
+ font-size: ${fontConfig[thisTag].small.fontSize};
15
+ line-height: ${fontConfig[thisTag].small.lineHeight};
16
+
17
+ // Medium breakpoint ("tablet")
18
+ @media ${theme.breakpoints2026('M')} {
19
+ font-size: ${fontConfig[thisTag].medium.fontSize};
20
+ line-height: ${fontConfig[thisTag].medium.lineHeight};
21
+ }
22
+
23
+ // L & XL breakpoints ("desktop")
24
+ @media ${theme.breakpoints2026('L')} {
25
+ font-size: ${fontConfig[thisTag].large.fontSize};
26
+ line-height: ${fontConfig[thisTag].large.lineHeight};
27
+ }
28
+ `;
29
+ }
30
+ return null;
31
+ };
@@ -1,4 +1,4 @@
1
- @import url('https://fonts.googleapis.com/css?family=Anton%7CMontserrat:500,700,800&display=swap');
1
+ @import url('https://fonts.googleapis.com/css?family=Anton%7CMontserrat:400,700&display=swap');
2
2
 
3
3
  @font-face {
4
4
  font-family: 'Founders-GroteskXCondensed-Bold';
@@ -66,6 +66,8 @@ button {
66
66
  }
67
67
 
68
68
  h2 {
69
+ text-transform: uppercase;
70
+ font-family: 'Anton', Impact, sans-serif;
69
71
  margin-bottom: 2rem;
70
72
  }
71
73