@nationalarchives/frontend 0.1.47 → 0.1.49

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 (161) hide show
  1. package/nationalarchives/all.css +1 -1
  2. package/nationalarchives/all.css.map +1 -1
  3. package/nationalarchives/all.js +1 -1
  4. package/nationalarchives/all.js.map +1 -1
  5. package/nationalarchives/analytics.js +1 -1
  6. package/nationalarchives/analytics.js.map +1 -1
  7. package/nationalarchives/analytics.mjs +27 -15
  8. package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
  9. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  10. package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +6 -5
  11. package/nationalarchives/components/breadcrumbs/template.njk +3 -3
  12. package/nationalarchives/components/button/_button-group.scss +2 -2
  13. package/nationalarchives/components/button/button.css +1 -1
  14. package/nationalarchives/components/button/button.css.map +1 -1
  15. package/nationalarchives/components/button/button.scss +4 -3
  16. package/nationalarchives/components/card/card.css +1 -1
  17. package/nationalarchives/components/card/card.css.map +1 -1
  18. package/nationalarchives/components/card/card.scss +25 -23
  19. package/nationalarchives/components/card/template.njk +1 -1
  20. package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
  21. package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
  22. package/nationalarchives/components/checkboxes/checkboxes.njk +11 -11
  23. package/nationalarchives/components/checkboxes/checkboxes.scss +6 -5
  24. package/nationalarchives/components/checkboxes/template.njk +1 -11
  25. package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
  26. package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
  27. package/nationalarchives/components/compound-filters/compound-filters.scss +3 -3
  28. package/nationalarchives/components/compound-filters/template.njk +4 -4
  29. package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
  30. package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
  31. package/nationalarchives/components/cookie-banner/cookie-banner.scss +2 -2
  32. package/nationalarchives/components/cookie-banner/fixtures.json +10 -10
  33. package/nationalarchives/components/cookie-banner/template.njk +6 -6
  34. package/nationalarchives/components/date-input/date-input.css +1 -1
  35. package/nationalarchives/components/date-input/date-input.css.map +1 -1
  36. package/nationalarchives/components/date-input/date-input.scss +3 -2
  37. package/nationalarchives/components/date-search/date-search.css +1 -1
  38. package/nationalarchives/components/date-search/date-search.css.map +1 -1
  39. package/nationalarchives/components/date-search/date-search.njk +2 -2
  40. package/nationalarchives/components/date-search/date-search.scss +2 -1
  41. package/nationalarchives/components/error-summary/error-summary.css +1 -1
  42. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  43. package/nationalarchives/components/error-summary/error-summary.scss +2 -2
  44. package/nationalarchives/components/featured-records/featured-records.css +1 -1
  45. package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
  46. package/nationalarchives/components/featured-records/featured-records.scss +5 -5
  47. package/nationalarchives/components/footer/analytics.js +1 -1
  48. package/nationalarchives/components/footer/fixtures.json +2 -2
  49. package/nationalarchives/components/footer/footer.css +1 -1
  50. package/nationalarchives/components/footer/footer.css.map +1 -1
  51. package/nationalarchives/components/footer/footer.scss +22 -21
  52. package/nationalarchives/components/footer/footer.stories.js +1 -1
  53. package/nationalarchives/components/footer/template.njk +10 -10
  54. package/nationalarchives/components/gallery/gallery.css +1 -1
  55. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  56. package/nationalarchives/components/gallery/gallery.scss +10 -10
  57. package/nationalarchives/components/global-header/analytics.js +2 -0
  58. package/nationalarchives/components/global-header/fixtures.json +1 -2
  59. package/nationalarchives/components/global-header/global-header.css +1 -1
  60. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  61. package/nationalarchives/components/global-header/global-header.js +1 -1
  62. package/nationalarchives/components/global-header/global-header.js.map +1 -1
  63. package/nationalarchives/components/global-header/global-header.mjs +16 -1
  64. package/nationalarchives/components/global-header/global-header.scss +39 -34
  65. package/nationalarchives/components/global-header/global-header.stories.js +18 -5
  66. package/nationalarchives/components/global-header/macro-options.json +0 -6
  67. package/nationalarchives/components/global-header/template.njk +4 -7
  68. package/nationalarchives/components/grid/grid.css +1 -1
  69. package/nationalarchives/components/grid/grid.css.map +1 -1
  70. package/nationalarchives/components/grid/grid.scss +16 -16
  71. package/nationalarchives/components/header/fixtures.json +1 -1
  72. package/nationalarchives/components/header/header.css +1 -1
  73. package/nationalarchives/components/header/header.css.map +1 -1
  74. package/nationalarchives/components/header/header.js +1 -1
  75. package/nationalarchives/components/header/header.js.map +1 -1
  76. package/nationalarchives/components/header/header.mjs +9 -1
  77. package/nationalarchives/components/header/header.scss +45 -44
  78. package/nationalarchives/components/header/template.njk +5 -5
  79. package/nationalarchives/components/hero/hero.css +1 -1
  80. package/nationalarchives/components/hero/hero.css.map +1 -1
  81. package/nationalarchives/components/hero/hero.scss +15 -9
  82. package/nationalarchives/components/hero/template.njk +11 -11
  83. package/nationalarchives/components/index-grid/index-grid.css +1 -1
  84. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  85. package/nationalarchives/components/index-grid/index-grid.scss +4 -4
  86. package/nationalarchives/components/message/message.css +1 -1
  87. package/nationalarchives/components/message/message.css.map +1 -1
  88. package/nationalarchives/components/message/message.scss +3 -3
  89. package/nationalarchives/components/pagination/pagination.css +1 -1
  90. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  91. package/nationalarchives/components/pagination/pagination.scss +9 -9
  92. package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
  93. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  94. package/nationalarchives/components/phase-banner/phase-banner.scss +3 -2
  95. package/nationalarchives/components/picture/picture.css +1 -1
  96. package/nationalarchives/components/picture/picture.css.map +1 -1
  97. package/nationalarchives/components/picture/picture.scss +18 -17
  98. package/nationalarchives/components/picture/template.njk +9 -9
  99. package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
  100. package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
  101. package/nationalarchives/components/quick-filters/quick-filters.scss +2 -2
  102. package/nationalarchives/components/quick-filters/template.njk +2 -2
  103. package/nationalarchives/components/radios/radios.css +1 -1
  104. package/nationalarchives/components/radios/radios.css.map +1 -1
  105. package/nationalarchives/components/radios/radios.njk +11 -11
  106. package/nationalarchives/components/radios/radios.scss +6 -5
  107. package/nationalarchives/components/radios/template.njk +1 -1
  108. package/nationalarchives/components/search-field/search-field.css +1 -1
  109. package/nationalarchives/components/search-field/search-field.css.map +1 -1
  110. package/nationalarchives/components/search-field/search-field.scss +1 -1
  111. package/nationalarchives/components/search-filters/search-filters.css +1 -1
  112. package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
  113. package/nationalarchives/components/search-filters/search-filters.scss +10 -10
  114. package/nationalarchives/components/select/select.css +1 -1
  115. package/nationalarchives/components/select/select.css.map +1 -1
  116. package/nationalarchives/components/select/select.scss +3 -2
  117. package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
  118. package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
  119. package/nationalarchives/components/sensitive-image/sensitive-image.scss +2 -1
  120. package/nationalarchives/components/skip-link/skip-link.css +1 -1
  121. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  122. package/nationalarchives/components/skip-link/skip-link.scss +2 -1
  123. package/nationalarchives/components/tabs/tabs.css +1 -1
  124. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  125. package/nationalarchives/components/tabs/tabs.scss +4 -4
  126. package/nationalarchives/components/tabs/template.njk +4 -4
  127. package/nationalarchives/components/text-input/template.njk +1 -1
  128. package/nationalarchives/components/text-input/text-input.css +1 -1
  129. package/nationalarchives/components/text-input/text-input.css.map +1 -1
  130. package/nationalarchives/components/text-input/text-input.njk +10 -10
  131. package/nationalarchives/components/text-input/text-input.scss +2 -1
  132. package/nationalarchives/components/textarea/textarea.css +1 -1
  133. package/nationalarchives/components/textarea/textarea.css.map +1 -1
  134. package/nationalarchives/components/textarea/textarea.scss +4 -3
  135. package/nationalarchives/global-header-package.css +1 -1
  136. package/nationalarchives/global-header-package.css.map +1 -1
  137. package/nationalarchives/global-header-package.scss +243 -33
  138. package/nationalarchives/prototype-kit.css +1 -1
  139. package/nationalarchives/prototype-kit.css.map +1 -1
  140. package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +17 -18
  141. package/nationalarchives/templates/fixtures.json +4 -4
  142. package/nationalarchives/templates/list.njk +2 -2
  143. package/nationalarchives/tools/_grid.scss +25 -0
  144. package/nationalarchives/tools/_media.scss +44 -21
  145. package/nationalarchives/tools/_spacing.scss +14 -16
  146. package/nationalarchives/tools/_typography.scss +48 -4
  147. package/nationalarchives/utilities/_a11y.scss +2 -1
  148. package/nationalarchives/utilities/_areas.scss +7 -7
  149. package/nationalarchives/utilities/_colour.scss +8 -11
  150. package/nationalarchives/utilities/_columns.scss +3 -3
  151. package/nationalarchives/utilities/_forms.scss +3 -3
  152. package/nationalarchives/utilities/_lists.scss +8 -8
  153. package/nationalarchives/utilities/_reset.scss +5 -0
  154. package/nationalarchives/utilities/_tables.scss +10 -10
  155. package/nationalarchives/utilities/_typography.scss +53 -49
  156. package/nationalarchives/variables/_colour.scss +6 -6
  157. package/nationalarchives/variables/_grid.scss +3 -3
  158. package/nationalarchives/variables/_media.scss +0 -37
  159. package/nationalarchives/variables/_spacing.scss +14 -12
  160. package/nationalarchives/variables/_typography.scss +26 -4
  161. package/package.json +1 -1
@@ -1,12 +1,11 @@
1
1
  @use "sass:math";
2
2
  @use "sass:selector";
3
+ @use "../variables/assets";
4
+ @use "../variables/typography" as typographyVars;
3
5
  @use "../tools/colour";
4
6
  @use "../tools/media";
5
7
  @use "../tools/spacing";
6
8
  @use "../tools/typography";
7
- @use "../variables/assets";
8
- @use "../variables/grid";
9
- @use "../variables/typography" as typographyVars;
10
9
 
11
10
  @if typographyVars.$use-local-fonts {
12
11
  @font-face {
@@ -14,7 +13,7 @@
14
13
  src: url("#{assets.$tna-font-path}/OpenSans-Regular.ttf");
15
14
  font-weight: typographyVars.$main-font-weight;
16
15
  font-style: normal;
17
- // font-display: swap;
16
+ font-display: swap;
18
17
  }
19
18
 
20
19
  @font-face {
@@ -22,7 +21,7 @@
22
21
  src: url("#{assets.$tna-font-path}/OpenSans-Bold.ttf");
23
22
  font-weight: typographyVars.$main-font-weight-bold;
24
23
  font-style: normal;
25
- // font-display: swap;
24
+ font-display: swap;
26
25
  }
27
26
 
28
27
  @font-face {
@@ -30,7 +29,7 @@
30
29
  src: url("#{assets.$tna-font-path}/RobotoMono-Regular.ttf");
31
30
  font-weight: typographyVars.$detail-font-weight;
32
31
  font-style: normal;
33
- // font-display: swap;
32
+ font-display: swap;
34
33
  }
35
34
 
36
35
  @font-face {
@@ -38,7 +37,7 @@
38
37
  src: url("#{assets.$tna-font-path}/RobotoMono-Medium.ttf");
39
38
  font-weight: typographyVars.$detail-font-weight-bold;
40
39
  font-style: normal;
41
- // font-display: swap;
40
+ font-display: swap;
42
41
  }
43
42
  } @else {
44
43
  @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&family=Roboto+Mono:wght@100..700&display=swap"); /* stylelint-disable-line */
@@ -47,7 +46,6 @@
47
46
  .tna-template {
48
47
  @include colour.colour-font("font-base");
49
48
  @include typography.main-font;
50
- font-size: #{typographyVars.$relative-1rem-px}px;
51
49
  -moz-osx-font-smoothing: grayscale;
52
50
  -webkit-font-smoothing: antialiased;
53
51
  text-rendering: optimizeLegibility;
@@ -76,7 +74,7 @@ p {
76
74
  @include spacing.space-above;
77
75
 
78
76
  + p {
79
- margin-top: 1rem;
77
+ margin-top: spacing.space(1);
80
78
  }
81
79
  }
82
80
 
@@ -114,11 +112,11 @@ small {
114
112
 
115
113
  %chip-base {
116
114
  max-width: max-content;
117
- padding: 0.125em 0.25rem;
115
+ padding: spacing.space(0.125) spacing.space(0.25);
118
116
 
119
117
  display: flex;
120
118
  align-items: center;
121
- gap: 0.5rem;
119
+ gap: spacing.space(0.5);
122
120
 
123
121
  @include colour.colour-font("font-base");
124
122
  @include typography.detail-font-small;
@@ -160,7 +158,7 @@ small {
160
158
  @include colour.colour-font("icon-light");
161
159
 
162
160
  @include colour.on-high-contrast {
163
- padding-right: 0.5rem;
161
+ padding-right: spacing.space(0.5);
164
162
 
165
163
  color: inherit;
166
164
 
@@ -186,7 +184,7 @@ small {
186
184
 
187
185
  display: flex;
188
186
  flex-wrap: wrap;
189
- gap: 0.5rem 1.5rem;
187
+ gap: spacing.space(0.5) spacing.space(1.5);
190
188
 
191
189
  list-style: none;
192
190
 
@@ -205,7 +203,7 @@ small {
205
203
  display: inline-block;
206
204
 
207
205
  &::after {
208
- padding-left: 0.5rem;
206
+ padding-left: spacing.space(0.5);
209
207
 
210
208
  display: inline-block;
211
209
 
@@ -216,76 +214,80 @@ small {
216
214
 
217
215
  &:hover {
218
216
  &::after {
219
- padding-left: 0.75rem;
217
+ padding-left: spacing.space(0.75);
220
218
  }
221
219
  }
222
220
  }
223
221
  }
222
+
223
+ strong {
224
+ font-weight: inherit;
225
+ }
224
226
  }
225
227
 
226
228
  %heading-xl {
227
229
  @extend %heading;
228
230
 
229
231
  @include typography.heading-font;
230
- @include typography.relative-font-size(64);
231
- line-height: 1.2;
232
-
233
- @include media.on-medium {
234
- @include typography.relative-font-size(42);
235
- }
236
-
237
- @include media.on-mobile {
238
- @include typography.relative-font-size(36);
239
- }
232
+ @include typography.heading-generator(
233
+ typographyVars.$heading-xl-font-size-default,
234
+ typographyVars.$heading-xl-font-size-medium,
235
+ typographyVars.$heading-xl-font-size-small,
236
+ typographyVars.$heading-xl-font-size-tiny,
237
+ typographyVars.$heading-xl-line-height
238
+ );
240
239
  }
241
240
 
242
241
  %heading-l {
243
242
  @extend %heading;
244
243
 
245
244
  @include typography.heading-font;
246
- @include typography.relative-font-size(32);
247
- line-height: 1.3;
248
-
249
- @include media.on-medium {
250
- @include typography.relative-font-size(30);
251
- }
252
-
253
- @include media.on-mobile {
254
- @include typography.relative-font-size(24);
255
- }
245
+ @include typography.heading-generator(
246
+ typographyVars.$heading-l-font-size-default,
247
+ typographyVars.$heading-l-font-size-medium,
248
+ typographyVars.$heading-l-font-size-small,
249
+ typographyVars.$heading-l-font-size-tiny,
250
+ typographyVars.$heading-l-line-height
251
+ );
256
252
  }
257
253
 
258
254
  %heading-m {
259
255
  @extend %heading;
260
256
 
261
257
  @include typography.main-font-weight-bold;
262
- @include typography.relative-font-size(22);
263
- line-height: 1.6;
264
-
265
- @include media.on-mobile {
266
- @include typography.relative-font-size(20);
267
- }
258
+ @include typography.heading-generator(
259
+ typographyVars.$heading-m-font-size-default,
260
+ typographyVars.$heading-m-font-size-medium,
261
+ typographyVars.$heading-m-font-size-small,
262
+ typographyVars.$heading-m-font-size-tiny,
263
+ typographyVars.$heading-m-line-height
264
+ );
268
265
  }
269
266
 
270
267
  %heading-s {
271
268
  @extend %heading;
272
269
 
273
270
  @include typography.main-font-weight-bold;
274
- @include typography.relative-font-size(18);
275
- line-height: 1.6;
271
+ @include typography.heading-generator(
272
+ typographyVars.$heading-s-font-size-default,
273
+ typographyVars.$heading-s-font-size-medium,
274
+ typographyVars.$heading-s-font-size-small,
275
+ typographyVars.$heading-s-font-size-tiny,
276
+ typographyVars.$heading-s-line-height
277
+ );
276
278
  }
277
279
 
278
280
  %headings-and-heading-groups {
279
281
  @include spacing.space-above;
280
282
  margin-bottom: 0;
281
- padding: 1rem 0 0;
283
+ padding: spacing.space(1) 0 0;
282
284
 
283
285
  &:first-child {
284
286
  padding-top: 0;
285
287
  }
286
288
 
287
289
  + p {
288
- margin-top: 1rem;
290
+ margin-top: spacing.space(1);
289
291
  }
290
292
  }
291
293
 
@@ -320,7 +322,7 @@ small {
320
322
  }
321
323
 
322
324
  &__supertitle {
323
- margin: 0 0 0.25rem;
325
+ margin: 0 0 spacing.space(0.25);
324
326
 
325
327
  @extend %chip-base;
326
328
 
@@ -361,7 +363,7 @@ small {
361
363
  margin-right: 0;
362
364
  margin-bottom: 0;
363
365
  margin-left: 0;
364
- padding: 1rem 1rem 1rem 2rem;
366
+ padding: spacing.space(1) spacing.space(1) spacing.space(1) spacing.space(2);
365
367
 
366
368
  @include colour.thick-keyline-accent(left);
367
369
 
@@ -373,7 +375,7 @@ small {
373
375
  @include typography.relative-font-size(16);
374
376
 
375
377
  .tna-blockquote & {
376
- margin: 1rem 0 0;
378
+ margin: spacing.space(1) 0 0;
377
379
  }
378
380
 
379
381
  &::before {
@@ -383,7 +385,9 @@ small {
383
385
  }
384
386
 
385
387
  @include media.on-tiny {
386
- padding: 0.5rem 0.5rem 0.5rem 1rem;
388
+ padding: spacing.space(0.5) spacing.space(0.5) spacing.space(0.5) #{spacing.space(
389
+ 1
390
+ )};
387
391
  }
388
392
  }
389
393
 
@@ -1,7 +1,7 @@
1
1
  @use "sass:map";
2
2
 
3
3
  $colour-palette-brand: (
4
- "black": #000,
4
+ "black": #010101,
5
5
  "grey": #8c9694,
6
6
  "light-grey": #d9d9d6,
7
7
  "white": #fff,
@@ -37,7 +37,7 @@ $colour-palette-brand: (
37
37
  @return hex-to-rgb(map.get($colour-palette-brand, $colour), $opacity);
38
38
  }
39
39
 
40
- $dark-grey: #26262a;
40
+ $dark-grey: #26262a !default;
41
41
  $base-font: #343338 !default;
42
42
  $link-colour: #0062a8 !default;
43
43
  $link-colour-visited: #4c2c92 !default;
@@ -80,7 +80,7 @@ $colour-palette-default: (
80
80
  "contrast-button-background": brand-colour("white"),
81
81
  "contrast-button-hover-text": brand-colour("white"),
82
82
  "contrast-button-hover-background": brand-colour("black"),
83
- "accent-background": #111,
83
+ "accent-background": #101112,
84
84
  "accent-background-light": #ededed,
85
85
  "accent-font-base": brand-colour("white"),
86
86
  "accent-font-dark": brand-colour("white"),
@@ -102,8 +102,8 @@ DARK THEME
102
102
  $colour-palette-dark: map.merge(
103
103
  $colour-palette-default,
104
104
  (
105
- "page-background": #222,
106
- "background-tint": #333,
105
+ "page-background": #212223,
106
+ "background-tint": #323334,
107
107
  "font-base": brand-colour("white", 0.95),
108
108
  "font-dark": brand-colour("white"),
109
109
  "font-light": brand-colour("white", 0.51),
@@ -121,7 +121,7 @@ $colour-palette-dark: map.merge(
121
121
  "button-background": brand-colour("white"),
122
122
  "button-hover-text": brand-colour("white"),
123
123
  "button-hover-background": brand-colour("black"),
124
- "contrast-background": #111,
124
+ "contrast-background": #101112,
125
125
  "contrast-link-visited":
126
126
  map.get($colour-palette-default, "contrast-link-visited"),
127
127
  )
@@ -1,7 +1,7 @@
1
- $largest-container-width: 80rem !default;
1
+ $largest-container-width: 1280px !default;
2
2
 
3
- $gutter-width: 2rem !default;
4
- $gutter-width-tiny: 1rem !default;
3
+ $gutter-width: 2 !default;
4
+ $gutter-width-tiny: 1 !default;
5
5
 
6
6
  $column-count: 12;
7
7
  $column-count-medium: 6;
@@ -1,40 +1,3 @@
1
- @use "sass:math";
2
- @use "./typography";
3
-
4
1
  $largest-medium-device-px: 1024 !default;
5
2
  $largest-small-device-px: 768 !default;
6
3
  $largest-tiny-device-px: 480 !default;
7
-
8
- $smallest-large-device-em: #{math.div(
9
- $largest-medium-device-px + 1,
10
- typography.$relative-1rem-px
11
- )}em;
12
- $largest-medium-device-em: #{math.div(
13
- $largest-medium-device-px,
14
- typography.$relative-1rem-px
15
- )}em;
16
- $smallest-medium-device-em: #{math.div(
17
- $largest-small-device-px + 1,
18
- typography.$relative-1rem-px
19
- )}em;
20
- $largest-small-device-em: #{math.div(
21
- $largest-small-device-px,
22
- typography.$relative-1rem-px
23
- )}em;
24
- $smallest-small-device-em: #{math.div(
25
- $largest-tiny-device-px + 1,
26
- typography.$relative-1rem-px
27
- )}em;
28
- $largest-tiny-device-em: #{math.div(
29
- $largest-tiny-device-px,
30
- typography.$relative-1rem-px
31
- )}em;
32
-
33
- $media-large: "(min-width: #{$smallest-large-device-em})";
34
- $media-lt-large: "(max-width: #{$largest-medium-device-em})";
35
- $media-medium: "(min-width: #{$smallest-medium-device-em}) and (max-width: #{$largest-medium-device-em})";
36
- $media-gt-mobile: "(min-width: #{$smallest-medium-device-em})";
37
- $media-mobile: "(max-width: #{$largest-small-device-em})";
38
- $media-small: "(min-width: #{$smallest-small-device-em}) and (max-width: #{$largest-small-device-em})";
39
- $media-gt-tiny: "(min-width: #{$smallest-small-device-em})";
40
- $media-tiny: "(max-width: #{$largest-tiny-device-em})";
@@ -1,22 +1,24 @@
1
1
  @use "sass:map";
2
2
 
3
+ $spacing-unit-px: 16 !default;
4
+
3
5
  $spacing: (
4
- "xs": 0.5rem,
5
- "s": 1rem,
6
- "m": 2rem,
7
- "l": 3rem,
8
- "xl": 5rem,
9
- "xxl": 8rem,
6
+ "xs": 0.5,
7
+ "s": 1,
8
+ "m": 2,
9
+ "l": 3,
10
+ "xl": 5,
11
+ "xxl": 8,
10
12
  ) !default;
11
13
 
12
14
  $spacing-mobile: map.merge(
13
15
  $spacing,
14
16
  (
15
- "xs": 0.5rem,
16
- "s": 0.75rem,
17
- "m": 1.5rem,
18
- "l": 2rem,
19
- "xl": 3rem,
20
- "xxl": 5rem,
17
+ "xs": 0.5,
18
+ "s": 0.75,
19
+ "m": 1.5,
20
+ "l": 2,
21
+ "xl": 3,
22
+ "xxl": 5,
21
23
  )
22
24
  ) !default;
@@ -1,12 +1,10 @@
1
- @use "sass:math";
1
+ $relative-1rem-px: 16; // 16px = 1rem
2
2
 
3
3
  $use-local-fonts: false !default;
4
4
 
5
- $relative-1rem-px: 16; // 16px is always 1rem
6
-
7
5
  $body-font-size-px: 18 !default;
8
6
  $body-font-size-px-mobile: 17 !default;
9
- $body-line-height: #{math.div($relative-1rem-px, $body-font-size-px) * 2} !default; // 1.77777
7
+ $body-line-height: 1.75 !default;
10
8
 
11
9
  $interactive-text-decoration-thickness: 3.5px !default;
12
10
 
@@ -21,3 +19,27 @@ $heading-font-weight: 500 !default;
21
19
  $detail-font-family: "Roboto Mono", monospace !default;
22
20
  $detail-font-weight: 400 !default;
23
21
  $detail-font-weight-bold: 500 !default;
22
+
23
+ $heading-xl-font-size-default: 64 !default;
24
+ $heading-xl-font-size-medium: 48 !default;
25
+ $heading-xl-font-size-small: 36 !default;
26
+ $heading-xl-font-size-tiny: $heading-xl-font-size-small !default;
27
+ $heading-xl-line-height: 1.1 !default;
28
+
29
+ $heading-l-font-size-default: 36 !default;
30
+ $heading-l-font-size-medium: 30 !default;
31
+ $heading-l-font-size-small: 28 !default;
32
+ $heading-l-font-size-tiny: 25 !default;
33
+ $heading-l-line-height: 1.3 !default;
34
+
35
+ $heading-m-font-size-default: 22 !default;
36
+ $heading-m-font-size-medium: 21 !default;
37
+ $heading-m-font-size-small: 20 !default;
38
+ $heading-m-font-size-tiny: 19 !default;
39
+ $heading-m-line-height: 1.6 !default;
40
+
41
+ $heading-s-font-size-default: 18 !default;
42
+ $heading-s-font-size-medium: $heading-s-font-size-default !default;
43
+ $heading-s-font-size-small: $heading-s-font-size-default !default;
44
+ $heading-s-font-size-tiny: $heading-s-font-size-default !default;
45
+ $heading-s-line-height: 1.6 !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.1.47",
3
+ "version": "0.1.49",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",