govuk_tech_docs 5.2.2 → 6.0.0.beta

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 (145) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/CHANGELOG.md +15 -0
  4. data/README.md +11 -3
  5. data/example/config/tech-docs.yml +1 -1
  6. data/govuk_tech_docs.gemspec +1 -1
  7. data/lib/assets/stylesheets/_core.scss +1 -0
  8. data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -15
  9. data/lib/assets/stylesheets/modules/_app-pane.scss +3 -3
  10. data/lib/assets/stylesheets/modules/_page-review.scss +4 -4
  11. data/lib/assets/stylesheets/modules/_search.scss +3 -3
  12. data/lib/assets/stylesheets/modules/_service-navigation.scss +5 -0
  13. data/lib/assets/stylesheets/modules/_technical-documentation.scss +7 -7
  14. data/lib/assets/stylesheets/modules/_toc.scss +13 -13
  15. data/lib/assets/stylesheets/palette/_syntax-highlighting.scss +9 -7
  16. data/lib/govuk_tech_docs/meta_tags.rb +1 -1
  17. data/lib/govuk_tech_docs/version.rb +1 -1
  18. data/lib/source/layouts/_header.erb +2 -16
  19. data/lib/source/layouts/_service_navigation.erb +27 -0
  20. data/lib/source/layouts/core.erb +7 -7
  21. data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
  22. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +87 -229
  23. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +88 -229
  24. data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
  25. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
  26. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
  27. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
  28. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
  29. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
  30. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
  31. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  32. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +18 -15
  33. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js +1 -126
  34. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs +1 -126
  35. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
  36. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +2 -2
  37. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +18 -21
  38. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
  39. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +20 -135
  40. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +20 -135
  41. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
  42. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
  43. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
  44. data/node_modules/govuk-frontend/dist/govuk/components/date-input/_index.scss +5 -0
  45. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
  46. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
  47. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
  48. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/_index.scss +1 -1
  49. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js +1 -126
  50. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs +1 -126
  51. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +30 -38
  52. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js +36 -132
  53. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs +36 -132
  54. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.mjs +35 -6
  55. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +30 -27
  56. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +89 -449
  57. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
  58. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +14 -20
  59. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
  60. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +10 -8
  61. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +12 -11
  62. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +4 -4
  63. data/node_modules/govuk-frontend/dist/govuk/components/password-input/_index.scss +2 -2
  64. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js +1 -126
  65. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs +1 -126
  66. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
  67. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +8 -7
  68. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +6 -11
  69. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +55 -76
  70. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.js +30 -2
  71. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.bundle.mjs +30 -2
  72. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/service-navigation.mjs +30 -2
  73. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +7 -2
  74. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +25 -21
  75. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
  76. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +9 -6
  77. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
  78. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
  79. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +5 -10
  80. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +5 -4
  81. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
  82. data/node_modules/govuk-frontend/dist/govuk/core/_lists.scss +2 -2
  83. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
  84. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +6 -20
  85. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
  86. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
  87. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
  88. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
  89. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  90. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
  91. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +41 -6
  92. data/node_modules/govuk-frontend/dist/govuk/helpers/_grid.scss +1 -1
  93. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +24 -40
  94. data/node_modules/govuk-frontend/dist/govuk/helpers/_media-queries.scss +172 -33
  95. data/node_modules/govuk-frontend/dist/govuk/helpers/_spacing.scss +1 -1
  96. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +6 -30
  97. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs +1 -126
  98. data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
  99. data/node_modules/govuk-frontend/dist/govuk/objects/_button-group.scss +1 -1
  100. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
  101. data/node_modules/govuk-frontend/dist/govuk/objects/_main-wrapper.scss +1 -1
  102. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +3 -7
  103. data/node_modules/govuk-frontend/dist/govuk/objects/_width-container.scss +2 -2
  104. data/node_modules/govuk-frontend/dist/govuk/overrides/_display.scss +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
  106. data/node_modules/govuk-frontend/dist/govuk/overrides/_width.scss +5 -5
  107. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
  108. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
  109. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +9 -255
  110. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
  111. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
  112. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
  113. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -9
  114. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
  115. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
  116. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-em.scss +4 -2
  117. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
  118. data/package-lock.json +3228 -4
  119. data/package.json +1 -1
  120. metadata +10 -26
  121. data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
  122. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
  123. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
  124. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
  125. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
  126. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
  127. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
  128. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
  129. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  130. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
  131. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
  132. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
  133. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
  134. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
  135. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
  136. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
  137. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
  138. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
  139. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
  140. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
  141. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
  142. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
  143. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
  144. data/node_modules/govuk-frontend/dist/govuk/vendor/_sass-mq.scss +0 -349
  145. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
@@ -4,20 +4,7 @@
4
4
  /// @group settings/colours
5
5
  ////
6
6
 
7
- /// Feature flag for updated organisation list and colours
8
- ///
9
- /// When set to true, $govuk-colours-organisations will use the new
10
- /// organisation list and colour selection.
11
- ///
12
- /// Should be removed in 6.0.
13
- ///
14
- /// @type Boolean
15
- /// @access public
16
- /// @deprecated Using new organisation colours will become the default in Frontend v6.0.
17
-
18
- $govuk-new-organisation-colours: false !default;
19
-
20
- /// Current organisation colours
7
+ /// Organisation colour palette
21
8
  ///
22
9
  /// @type Map
23
10
  ///
@@ -27,12 +14,12 @@ $govuk-new-organisation-colours: false !default;
27
14
  /// white, to be used for copy and meet the AAA (large text) and AA (smaller
28
15
  /// copy) WCAG guidelines.
29
16
  /// @prop $organisation.deprecation-message - Marks this organisation as
30
- /// deprecated (usually because it has ceased to exist). Value is the
31
- /// deprecation message output to the terminal when compiling.
17
+ /// deprecated (usually because it has ceased to exist). The value is the
18
+ /// deprecation message output to the terminal when compiling Sass.
32
19
  ///
33
- /// @access private
20
+ /// @access public
34
21
 
35
- $_govuk-organisation-colours: (
22
+ $govuk-colours-organisations: (
36
23
  "attorney-generals-office": (
37
24
  colour: #a91c8e
38
25
  ),
@@ -46,61 +33,20 @@ $_govuk-organisation-colours: (
46
33
  colour: #e52d13,
47
34
  contrast-safe: #e02c13
48
35
  ),
49
- "department-for-business-energy-industrial-strategy": (
50
- colour: #003479,
51
- deprecation-message:
52
- "`department-for-business-energy-industrial-strategy` was dissolved in 2023. It was replaced by `department-for-business-trade`, `department-for-energy-security-net-zero` and `department-science-innovation-technology`."
53
- ),
54
- "department-for-business-innovation-skills": (
55
- colour: #003479,
56
- deprecation-message:
57
- "`department-for-business-innovation-skills` became `department-for-business-energy-industrial-strategy` in 2016. As of 2023, it is equivalent to `department-for-business-trade` or `department-science-innovation-technology`."
58
- ),
59
- "department-for-communities-local-government": (
60
- colour: #009999,
61
- contrast-safe: #008080,
62
- deprecation-message:
63
- "`department-for-communities-local-government` became `ministry-of-housing-communities-local-government` in 2018."
64
- ),
65
36
  "department-for-culture-media-sport": (
66
37
  colour: #ed1588,
67
38
  contrast-safe: #d6177a
68
39
  ),
69
- "department-for-digital-culture-media-sport": (
70
- colour: #d40072,
71
- deprecation-message:
72
- "`department-for-digital-culture-media-sport` became `department-for-culture-media-sport` in 2023."
73
- ),
74
40
  "department-for-education": (
75
41
  colour: #003764
76
42
  ),
77
43
  "department-for-energy-security-net-zero": (
78
- colour: #00a33b,
79
- contrast-safe: #00852f
44
+ colour: #003479
80
45
  ),
81
46
  "department-for-environment-food-rural-affairs": (
82
47
  colour: #00a33b,
83
48
  contrast-safe: #008531
84
49
  ),
85
- "department-for-exiting-the-european-union": (
86
- colour: #009fe3,
87
- contrast-safe: #007db6,
88
- deprecation-message: "`department-for-exiting-the-european-union` was dissolved in 2020."
89
- ),
90
- "department-for-international-development": (
91
- colour: #002878,
92
- deprecation-message:
93
- "`department-for-international-development` was merged into `foreign-commonwealth-development-office` in 2020."
94
- ),
95
- "department-for-international-trade": (
96
- colour: #cf102d,
97
- deprecation-message: "`department-for-international-trade` was merged into `department-for-business-trade` in 2023."
98
- ),
99
- "department-for-levelling-up-housing-communities": (
100
- colour: #012169,
101
- deprecation-message:
102
- "`department-for-levelling-up-housing-communities` was renamed to `ministry-of-housing-communities-local-government` in 2024."
103
- ),
104
50
  "department-for-science-innovation-technology": (
105
51
  colour: #00f8f8,
106
52
  contrast-safe: #008180
@@ -112,37 +58,18 @@ $_govuk-organisation-colours: (
112
58
  colour: #00bcb5,
113
59
  contrast-safe: #00857e
114
60
  ),
115
- "department-of-energy-climate-change": (
116
- colour: #009ddb,
117
- contrast-safe: #007db3,
118
- deprecation-message:
119
- "`department-of-energy-climate-change` was merged into `department-for-business-energy-industrial-strategy` in 2016. As of 2023, it is equivalent to `department-for-energy-security-net-zero`."
120
- ),
121
- "department-of-health": (
122
- colour: #00ad93,
123
- contrast-safe: #008573,
124
- deprecation-message: "`department-of-health` became `department-of-health-social-care` in 2018."
125
- ),
126
61
  "department-of-health-social-care": (
127
62
  colour: #00a990,
128
63
  contrast-safe: #008674
129
64
  ),
130
- "foreign-commonwealth-office": (
131
- colour: #003e74,
132
- deprecation-message: "`foreign-commonwealth-office` became `foreign-commonwealth-development-office` in 2018."
133
- ),
134
65
  "foreign-commonwealth-development-office": (
135
66
  colour: #012069
136
67
  ),
137
- "government-equalities-office": (
138
- colour: #0056b8,
139
- deprecation-message: "`government-equalities-office` is deprecated. Use `cabinet-office` instead."
140
- ),
141
68
  "hm-government": (
142
69
  colour: #266ebc
143
70
  ),
144
71
  "hm-revenue-customs": (
145
- colour: #008476
72
+ colour: #008670
146
73
  ),
147
74
  "hm-treasury": (
148
75
  colour: #b2292e
@@ -171,14 +98,6 @@ $_govuk-organisation-colours: (
171
98
  "office-of-the-leader-of-the-house-of-lords": (
172
99
  colour: #9c182f
173
100
  ),
174
- "office-of-the-secretary-of-state-for-scotland": (
175
- colour: #00205c,
176
- deprecation-message: "`office-of-the-secretary-of-state-for-scotland` was renamed to `scotland-office` in 2024."
177
- ),
178
- "office-of-the-secretary-of-state-for-wales": (
179
- colour: #a8353a,
180
- deprecation-message: "`office-of-the-secretary-of-state-for-wales` was renamed to `wales-office` in 2024."
181
- ),
182
101
  "prime-ministers-office-10-downing-street": (
183
102
  colour: #0b0c0c
184
103
  ),
@@ -191,173 +110,10 @@ $_govuk-organisation-colours: (
191
110
  "uk-export-finance": (
192
111
  colour: #cf102d
193
112
  ),
194
- "uk-trade-investment": (
195
- colour: #c80651,
196
- deprecation-message:
197
- "`uk-trade-investment` became `department-for-international-trade` in 2016. As of 2023, it is equivalent to `department-for-business-trade`."
198
- ),
199
113
  "wales-office": (
200
114
  colour: #a33038
201
115
  )
202
- );
203
-
204
- /// Legacy organisation colours
205
- ///
206
- /// These are the colours included with Frontend prior to 5.3.0. They will be
207
- /// removed in a future major version of Frontend.
208
- ///
209
- /// @type Map
210
- ///
211
- /// @prop $organisation.colour - Colour for the given `$organisation`
212
- /// @prop $organisation.colour-websafe - Optional alternative shade of the
213
- /// organisation colour. Despite the name, is not guaranteed to be websafe
214
- /// nor provide better contrast than the base colour.
215
- ///
216
- /// @access private
217
- /// @deprecated Migrate to using the new organisation colour palette instead.
218
-
219
- $_govuk-legacy-organisation-colours: (
220
- "attorney-generals-office": (
221
- colour: #9f1888,
222
- colour-websafe: #a03a88
223
- ),
224
- "cabinet-office": (
225
- colour: #005abb,
226
- colour-websafe: #347da4
227
- ),
228
- "civil-service": (
229
- colour: #af292e
230
- ),
231
- "department-for-business-innovation-skills": (
232
- colour: #003479,
233
- colour-websafe: #347da4
234
- ),
235
- "department-for-communities-local-government": (
236
- colour: #009999,
237
- colour-websafe: #37836e
238
- ),
239
- "department-for-culture-media-sport": (
240
- colour: #d40072,
241
- colour-websafe: #a03155
242
- ),
243
- "department-for-education": (
244
- colour: #003a69,
245
- colour-websafe: #347ca9
246
- ),
247
- "department-for-environment-food-rural-affairs": (
248
- colour: #00a33b,
249
- colour-websafe: #008938
250
- ),
251
- "department-for-international-development": (
252
- colour: #002878,
253
- colour-websafe: #405e9a
254
- ),
255
- "department-for-international-trade": (
256
- colour: #cf102d,
257
- colour-websafe: #005ea5
258
- ),
259
- "department-for-business-trade": (
260
- colour: #cf102d,
261
- colour-websafe: #005ea5
262
- ),
263
- "department-for-levelling-up-housing-communities": (
264
- colour: #012169
265
- ),
266
- "department-for-transport": (
267
- colour: #006c56,
268
- colour-websafe: #398373
269
- ),
270
- "department-for-work-pensions": (
271
- colour: #00beb7,
272
- colour-websafe: #37807b
273
- ),
274
- "department-of-energy-climate-change": (
275
- colour: #009ddb,
276
- colour-websafe: #2b7cac
277
- ),
278
- "department-of-health": (
279
- colour: #00ad93,
280
- colour-websafe: #39836e
281
- ),
282
- "foreign-commonwealth-development-office": (
283
- colour: #012169
284
- ),
285
- "foreign-commonwealth-office": (
286
- colour: #003e74,
287
- colour-websafe: #406e97
288
- ),
289
- "government-equalities-office": (
290
- colour: #9325b2
291
- ),
292
- "hm-government": (
293
- colour: #0076c0,
294
- colour-websafe: #347da4
295
- ),
296
- "hm-revenue-customs": (
297
- colour: #009390,
298
- colour-websafe: #008670
299
- ),
300
- "hm-treasury": (
301
- colour: #af292e,
302
- colour-websafe: #832322
303
- ),
304
- "home-office": (
305
- colour: #9325b2,
306
- colour-websafe: #9440b2
307
- ),
308
- "ministry-of-defence": (
309
- colour: #4d2942,
310
- colour-websafe: #5a5c92
311
- ),
312
- "ministry-of-justice": (
313
- colour: #231f20,
314
- colour-websafe: #5a5c92
315
- ),
316
- "northern-ireland-office": (
317
- colour: #002663,
318
- colour-websafe: #3e598c
319
- ),
320
- "office-of-the-advocate-general-for-scotland": (
321
- colour: #002663,
322
- colour-websafe: #005ea5
323
- ),
324
- "office-of-the-leader-of-the-house-of-commons": (
325
- colour: #317023,
326
- colour-websafe: #005f8f
327
- ),
328
- "office-of-the-leader-of-the-house-of-lords": (
329
- colour: #9c132e,
330
- colour-websafe: #c2395d
331
- ),
332
- "scotland-office": (
333
- colour: #002663,
334
- colour-websafe: #405c8a
335
- ),
336
- "uk-export-finance": (
337
- colour: #005747,
338
- colour-websafe: #005ea5
339
- ),
340
- "uk-trade-investment": (
341
- colour: #c80651,
342
- colour-websafe: #005ea5
343
- ),
344
- "wales-office": (
345
- colour: #a33038,
346
- colour-websafe: #7a242a
347
- )
348
- );
349
-
350
- /// Set public organisation colours variable to one of the two maps.
351
- /// Users can also pass their own map to this to override it entirely.
352
- ///
353
- /// @type Map
354
- /// @access public
355
-
356
- $govuk-colours-organisations: $_govuk-legacy-organisation-colours !default;
357
-
358
- @if $govuk-new-organisation-colours and $govuk-colours-organisations == $_govuk-legacy-organisation-colours {
359
- $govuk-colours-organisations: $_govuk-organisation-colours;
360
- }
116
+ ) !default;
361
117
 
362
118
  /// Organisation colour aliases
363
119
  ///
@@ -374,9 +130,7 @@ $govuk-colours-organisations: $_govuk-legacy-organisation-colours !default;
374
130
  /// @access private
375
131
 
376
132
  $_govuk-colours-organisations-aliases: (
377
- "department-for-business-and-trade": "department-for-business-trade",
378
- "department-for-communities-and-local-government": "department-for-communities-local-government",
379
- "department-for-levelling-up-housing-and-communities": "department-for-levelling-up-housing-communities"
133
+ "department-for-business-and-trade": "department-for-business-trade"
380
134
  );
381
135
 
382
136
  /*# sourceMappingURL=_colours-organisations.scss.map */
@@ -6,32 +6,124 @@
6
6
  ///
7
7
  /// @type Map
8
8
  ///
9
- /// @prop $colour - Representation for the given $colour, where $colour is the
10
- /// friendly name for the colour (e.g. "red": #ff0000);
9
+ /// @prop {Map|Colour} $colour - Representation for the `$colour` or a map associating
10
+ /// name of `$variant`s of the colours to their representation
11
11
  ///
12
- /// @access public
12
+ /// @access private
13
13
 
14
- $govuk-colours: (
15
- "red": #d4351c,
16
- "yellow": #ffdd00,
17
- "green": #00703c,
18
- "blue": #1d70b8,
19
- "dark-blue": #003078,
20
- "light-blue": #5694ca,
21
- "purple": #4c2c92,
22
- "black": #0b0c0c,
23
- "dark-grey": #505a5f,
24
- "mid-grey": #b1b4b6,
25
- "light-grey": #f3f2f1,
26
- "white": #ffffff,
27
- "light-purple": #6f72af,
28
- "bright-purple": #912b88,
29
- "pink": #d53880,
30
- "light-pink": #f499be,
31
- "orange": #f47738,
32
- "brown": #b58840,
33
- "light-green": #85994b,
34
- "turquoise": #28a197
35
- ) !default;
14
+ $_govuk-palette: (
15
+ "blue": (
16
+ "primary": #1d70b8,
17
+ "tint-25": #5694ca,
18
+ "tint-50": #8eb8dc,
19
+ "tint-80": #d2e2f1,
20
+ "tint-95": #f4f8fb,
21
+ "shade-25": #16548a,
22
+ "shade-50": #0f385c,
23
+ // Listed last as tests expect colours to be in a given order
24
+ "shade-10": #1a65a6
25
+ ),
26
+ "green": (
27
+ "primary": #0f7a52,
28
+ "tint-25": #4b9b7d,
29
+ "tint-50": #87bca8,
30
+ "tint-80": #cfe4dc,
31
+ "tint-95": #f3f8f6,
32
+ "shade-25": #0b5c3e,
33
+ "shade-50": #083d29
34
+ ),
35
+ "teal": (
36
+ "primary": #158187,
37
+ "tint-25": #50a1a5,
38
+ "tint-50": #8ac0c3,
39
+ "tint-80": #d0e6e7,
40
+ "tint-95": #f3f9f9,
41
+ "shade-25": #106165,
42
+ "shade-50": #0b4144,
43
+ "accent": #00ffe0
44
+ ),
45
+ "purple": (
46
+ "primary": #54319f,
47
+ "tint-25": #7f65b7,
48
+ "tint-50": #aa98cf,
49
+ "tint-80": #ddd6ec,
50
+ "tint-95": #f6f5fa,
51
+ "shade-25": #3f2577,
52
+ "shade-50": #2a1950
53
+ ),
54
+ "magenta": (
55
+ "primary": #ca357c,
56
+ "tint-25": #d7689d,
57
+ "tint-50": #e59abe,
58
+ "tint-80": #f4d7e5,
59
+ "tint-95": #fcf5f8,
60
+ "shade-25": #98285d,
61
+ "shade-50": #651b3e
62
+ ),
63
+ "red": (
64
+ "primary": #ca3535,
65
+ "tint-25": #d76868,
66
+ "tint-50": #e59a9a,
67
+ "tint-80": #f4d7d7,
68
+ "tint-95": #fcf5f5,
69
+ "shade-25": #982828,
70
+ "shade-50": #651b1b
71
+ ),
72
+ "orange": (
73
+ "primary": #f47738,
74
+ "tint-25": #f7996a,
75
+ "tint-50": #fabb9c,
76
+ "tint-80": #fde4d7,
77
+ "tint-95": #fef8f5,
78
+ "shade-25": #b7592a,
79
+ "shade-50": #7a3c1c
80
+ ),
81
+ "yellow": (
82
+ "primary": #ffdd00,
83
+ "tint-25": #ffe640,
84
+ "tint-50": #ffee80,
85
+ "tint-80": #fff8cc,
86
+ "tint-95": #fffdf2,
87
+ "shade-25": #bfa600,
88
+ "shade-50": #806f00
89
+ ),
90
+ "brown": (
91
+ "primary": #99704a,
92
+ "tint-25": #b39477,
93
+ "tint-50": #ccb8a5,
94
+ "tint-95": #faf8f6
95
+ ),
96
+ "black": (
97
+ "primary": #0b0c0c,
98
+ "tint-25": #484949,
99
+ "tint-50": #858686,
100
+ "tint-80": #cecece,
101
+ "tint-95": #f3f3f3
102
+ ),
103
+ "white": #ffffff
104
+ );
105
+
106
+ /// Pre-brand colours correspondence table
107
+ ///
108
+ /// @type Map
109
+ ///
110
+ /// @prop {List} $colour - Colour name and variant in the brand colours
111
+ /// that correspond to the `$colour` in GOV.UK Frontend colours before
112
+ /// the brand colours were introduced
113
+ ///
114
+ /// @access private
115
+ $_govuk-pre-brand-colours: (
116
+ "light-pink": "magenta" "tint-50",
117
+ "pink": "magenta" "primary",
118
+ "light-green": "green" "tint-25",
119
+ "turquoise": "teal" "primary",
120
+ "light-blue": "blue" "tint-25",
121
+ "dark-blue": "blue" "shade-50",
122
+ "light-purple": "purple" "tint-25",
123
+ "bright-purple": "magenta" "shade-25",
124
+ "dark-grey": "black" "tint-25",
125
+ "mid-grey": "black" "tint-80",
126
+ "light-grey": "black" "tint-95"
127
+ );
36
128
 
37
129
  /*# sourceMappingURL=_colours-palette.scss.map */
@@ -0,0 +1,18 @@
1
+ ////
2
+ /// @group settings/custom-properties
3
+ ////
4
+
5
+ /// Output CSS custom properties
6
+ ///
7
+ /// Whether to output CSS Custom Properties in the compiled stylesheet.
8
+ ///
9
+ /// If you are compiling multiple stylesheets that will be used together on a
10
+ /// page, set this to false in any secondary stylesheets to avoid including the
11
+ /// Custom Properties multiple times.
12
+ ///
13
+ /// @type Boolean
14
+ /// @access public
15
+
16
+ $govuk-output-custom-properties: true !default;
17
+
18
+ /*# sourceMappingURL=_custom-properties.scss.map */
@@ -6,11 +6,13 @@
6
6
  @import "warnings";
7
7
  @import "global-styles";
8
8
 
9
+ @import "custom-properties";
10
+
9
11
  @import "media-queries";
10
12
 
11
13
  @import "colours-palette";
12
14
  @import "colours-organisations";
13
- @import "colours-applied";
15
+ @import "colours-functional";
14
16
 
15
17
  @import "spacing";
16
18
  @import "measurements";
@@ -20,17 +22,4 @@
20
22
 
21
23
  @import "links";
22
24
 
23
- // LibSass evaluates this as a single unquoted string, equivalent to
24
- // "true == false", whereas Dart Sass evaluates it as "true" == "false".
25
- // Because a string in Sass is truthy, LibSass will output the warning; Dart
26
- // Sass will not.
27
- @if #{true} == #{false} {
28
- @include _warning(
29
- "libsass",
30
- "It looks like you may be using LibSass to compile your Sass. LibSass is " +
31
- "deprecated and will not be supported by the next major version of " +
32
- "GOV.UK Frontend. See https://sass-lang.com/libsass/ for more information."
33
- );
34
- }
35
-
36
25
  /*# sourceMappingURL=_index.scss.map */
@@ -13,13 +13,4 @@ $govuk-breakpoints: (
13
13
  desktop: 769px
14
14
  ) !default;
15
15
 
16
- /// Show active breakpoint in top-right corner.
17
- ///
18
- /// Only use this during local development.
19
- ///
20
- /// @type Boolean
21
- /// @access public
22
-
23
- $govuk-show-breakpoints: false !default;
24
-
25
16
  /*# sourceMappingURL=_media-queries.scss.map */