govuk_publishing_components 67.0.1 → 68.0.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.
Files changed (352) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +1 -1
  3. data/app/assets/stylesheets/component_guide/application.scss +12 -18
  4. data/app/assets/stylesheets/govuk_publishing_components/all-components.scss +2 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +6 -2
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_app-promo-banner.scss +3 -3
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment-link.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_attachment.scss +5 -5
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_breadcrumbs.scss +1 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_button.scss +2 -2
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +6 -6
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_checkboxes.scss +1 -1
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list-with-body.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-guidance.scss +2 -2
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_contextual-sidebar.scss +4 -4
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +14 -14
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +3 -3
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +6 -6
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_emergency-banner.scss +3 -6
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_error-alert.scss +3 -3
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_error-summary.scss +1 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_feedback.scss +7 -7
  23. data/app/assets/stylesheets/govuk_publishing_components/components/_figure.scss +1 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/_glance-metric.scss +3 -3
  25. data/app/assets/stylesheets/govuk_publishing_components/components/_govspeak-html-publication.scss +3 -3
  26. data/app/assets/stylesheets/govuk_publishing_components/components/_heading.scss +3 -3
  27. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +3 -3
  28. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +3 -3
  29. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +2 -2
  30. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +1 -1
  31. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +1 -1
  32. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +30 -51
  33. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +23 -23
  34. data/app/assets/stylesheets/govuk_publishing_components/components/_lead-paragraph.scss +1 -1
  35. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +2 -2
  36. data/app/assets/stylesheets/govuk_publishing_components/components/_modal-dialogue.scss +3 -3
  37. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +3 -3
  38. data/app/assets/stylesheets/govuk_publishing_components/components/_organisation-logo.scss +2 -2
  39. data/app/assets/stylesheets/govuk_publishing_components/components/_pagination.scss +1 -1
  40. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +3 -3
  41. data/app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss +6 -6
  42. data/app/assets/stylesheets/govuk_publishing_components/components/_published-dates.scss +1 -1
  43. data/app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss +1 -1
  44. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +3 -3
  45. data/app/assets/stylesheets/govuk_publishing_components/components/_search-with-autocomplete.scss +7 -7
  46. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +8 -8
  47. data/app/assets/stylesheets/govuk_publishing_components/components/_secondary-navigation.scss +6 -6
  48. data/app/assets/stylesheets/govuk_publishing_components/components/_select-with-search.scss +15 -15
  49. data/app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss +2 -2
  50. data/app/assets/stylesheets/govuk_publishing_components/components/_signup-link.scss +2 -2
  51. data/app/assets/stylesheets/govuk_publishing_components/components/_single-page-notification-button.scss +6 -6
  52. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +2 -2
  53. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
  54. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +11 -11
  55. data/app/assets/stylesheets/govuk_publishing_components/components/_sub-navigation-menu.scss +9 -9
  56. data/app/assets/stylesheets/govuk_publishing_components/components/_subscription-links.scss +5 -5
  57. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +3 -3
  58. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-banner.scss +1 -1
  59. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +15 -10
  60. data/app/assets/stylesheets/govuk_publishing_components/components/_tag.scss +1 -1
  61. data/app/assets/stylesheets/govuk_publishing_components/components/_translation-nav.scss +3 -3
  62. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +3 -3
  63. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +4 -4
  64. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_call-to-action.scss +2 -2
  65. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_contact.scss +1 -1
  66. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_example.scss +1 -1
  67. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_footnotes.scss +4 -4
  68. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +1 -1
  69. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_images.scss +1 -1
  70. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_information-callout.scss +1 -1
  71. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +2 -2
  72. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_place.scss +1 -1
  73. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_tables.scss +2 -2
  74. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_typography.scss +2 -2
  75. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_warning-callout.scss +1 -1
  76. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_colours.scss +9 -11
  77. data/app/assets/stylesheets/govuk_publishing_components/components/helpers/_markdown-typography.scss +3 -3
  78. data/app/assets/stylesheets/govuk_publishing_components/lib/_link.scss +3 -3
  79. data/app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss +2 -2
  80. data/app/assets/stylesheets/govuk_publishing_components/settings/_custom-properties.scss +9 -0
  81. data/app/assets/stylesheets/govuk_publishing_components/settings/_index.scss +1 -2
  82. data/app/assets/stylesheets/govuk_publishing_components/specific-components.scss +2 -0
  83. data/app/views/govuk_publishing_components/components/_cross_service_header.html.erb +2 -2
  84. data/app/views/govuk_publishing_components/components/_glance_metric.html.erb +1 -1
  85. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +1 -1
  86. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +20 -18
  87. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +14 -36
  88. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +2 -2
  89. data/app/views/govuk_publishing_components/components/_tag.html.erb +1 -1
  90. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb +1 -1
  91. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_pdf.html.erb +1 -1
  92. data/app/views/govuk_publishing_components/components/docs/cross_service_header.yml +0 -1
  93. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +24 -3
  94. data/app/views/govuk_publishing_components/components/docs/layout_header.yml +0 -15
  95. data/app/views/govuk_publishing_components/components/docs/layout_super_navigation_header.yml +1 -3
  96. data/app/views/govuk_publishing_components/components/docs/tag.yml +4 -8
  97. data/app/views/govuk_publishing_components/components/layout_header/_header_logo.html.erb +4 -13
  98. data/app/views/layouts/govuk_publishing_components/application.html.erb +1 -1
  99. data/config/initializers/assets.rb +1 -1
  100. data/config/locales/cy.yml +4 -4
  101. data/config/locales/en.yml +4 -4
  102. data/lib/govuk_publishing_components/presenters/devolved_nations_helper.rb +5 -4
  103. data/lib/govuk_publishing_components/version.rb +1 -1
  104. data/node_modules/govuk-frontend/README.md +1 -1
  105. data/node_modules/govuk-frontend/dist/govuk/_base.scss +1 -0
  106. data/node_modules/govuk-frontend/dist/govuk/_base.scss.map +1 -1
  107. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js +21 -95
  108. data/node_modules/govuk-frontend/dist/govuk/all.bundle.js.map +1 -1
  109. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs +22 -95
  110. data/node_modules/govuk-frontend/dist/govuk/all.bundle.mjs.map +1 -1
  111. data/node_modules/govuk-frontend/dist/govuk/all.mjs +0 -1
  112. data/node_modules/govuk-frontend/dist/govuk/all.mjs.map +1 -1
  113. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.ico +0 -0
  114. data/node_modules/govuk-frontend/dist/govuk/assets/images/favicon.svg +1 -1
  115. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png +0 -0
  116. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-192.png +0 -0
  117. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-icon-512.png +0 -0
  118. data/node_modules/govuk-frontend/dist/govuk/assets/images/govuk-opengraph-image.png +0 -0
  119. data/node_modules/govuk-frontend/dist/govuk/common/govuk-frontend-version.mjs +1 -1
  120. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss +14 -11
  121. data/node_modules/govuk-frontend/dist/govuk/components/accordion/_index.scss.map +1 -1
  122. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.js.map +1 -1
  123. data/node_modules/govuk-frontend/dist/govuk/components/accordion/accordion.bundle.mjs.map +1 -1
  124. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss +2 -2
  125. data/node_modules/govuk-frontend/dist/govuk/components/back-link/_index.scss.map +1 -1
  126. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss +1 -1
  127. data/node_modules/govuk-frontend/dist/govuk/components/breadcrumbs/_index.scss.map +1 -1
  128. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss +16 -19
  129. data/node_modules/govuk-frontend/dist/govuk/components/button/_index.scss.map +1 -1
  130. data/node_modules/govuk-frontend/dist/govuk/components/button/fixtures.json +7 -95
  131. data/node_modules/govuk-frontend/dist/govuk/components/button/macro-options.json +12 -19
  132. data/node_modules/govuk-frontend/dist/govuk/components/button/template.njk +8 -20
  133. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss +2 -2
  134. data/node_modules/govuk-frontend/dist/govuk/components/character-count/_index.scss.map +1 -1
  135. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js +19 -9
  136. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.js.map +1 -1
  137. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs +19 -9
  138. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.bundle.mjs.map +1 -1
  139. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs +19 -9
  140. data/node_modules/govuk-frontend/dist/govuk/components/character-count/character-count.mjs.map +1 -1
  141. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss +7 -6
  142. data/node_modules/govuk-frontend/dist/govuk/components/checkboxes/_index.scss.map +1 -1
  143. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss +2 -5
  144. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/_index.scss.map +1 -1
  145. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/fixtures.json +4 -40
  146. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-default.html +2 -2
  147. data/node_modules/govuk-frontend/dist/govuk/components/cookie-banner/template-with-html.html +2 -2
  148. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss +6 -4
  149. data/node_modules/govuk-frontend/dist/govuk/components/details/_index.scss.map +1 -1
  150. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss +1 -1
  151. data/node_modules/govuk-frontend/dist/govuk/components/error-message/_index.scss.map +1 -1
  152. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss +4 -2
  153. data/node_modules/govuk-frontend/dist/govuk/components/error-summary/_index.scss.map +1 -1
  154. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.js.map +1 -1
  155. data/node_modules/govuk-frontend/dist/govuk/components/exit-this-page/exit-this-page.bundle.mjs.map +1 -1
  156. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss +28 -37
  157. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/_index.scss.map +1 -1
  158. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.js.map +1 -1
  159. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/file-upload.bundle.mjs.map +1 -1
  160. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/fixtures.json +1 -1
  161. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/macro-options.json +0 -7
  162. data/node_modules/govuk-frontend/dist/govuk/components/file-upload/template.njk +0 -1
  163. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss +18 -23
  164. data/node_modules/govuk-frontend/dist/govuk/components/footer/_index.scss.map +1 -1
  165. data/node_modules/govuk-frontend/dist/govuk/components/footer/fixtures.json +25 -38
  166. data/node_modules/govuk-frontend/dist/govuk/components/footer/macro-options.json +0 -6
  167. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-default.html +23 -2
  168. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-full-gds-example.html +23 -2
  169. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-three-equal-columns.html +23 -2
  170. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-html-content-licence-and-copyright-notice.html +23 -2
  171. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-meta.html +23 -2
  172. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-custom-text-content-licence-and-copyright-notice.html +23 -2
  173. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-one-column.html +23 -2
  174. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-default-width-navigation-two-columns.html +23 -2
  175. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-meta-links-and-meta-content.html +23 -2
  176. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-navigation.html +23 -2
  177. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-no-content-licence.html +23 -2
  178. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-custom-meta.html +23 -2
  179. data/node_modules/govuk-frontend/dist/govuk/components/footer/template-with-only-meta-links.html +23 -2
  180. data/node_modules/govuk-frontend/dist/govuk/components/footer/template.njk +6 -11
  181. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss +85 -457
  182. data/node_modules/govuk-frontend/dist/govuk/components/header/_index.scss.map +1 -1
  183. data/node_modules/govuk-frontend/dist/govuk/components/header/fixtures.json +7 -536
  184. data/node_modules/govuk-frontend/dist/govuk/components/header/macro-options.json +2 -101
  185. data/node_modules/govuk-frontend/dist/govuk/components/header/template-default.html +7 -6
  186. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width.html +7 -6
  187. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-product-name.html +7 -6
  188. data/node_modules/govuk-frontend/dist/govuk/components/header/template.njk +4 -50
  189. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss +1 -1
  190. data/node_modules/govuk-frontend/dist/govuk/components/hint/_index.scss.map +1 -1
  191. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss +7 -5
  192. data/node_modules/govuk-frontend/dist/govuk/components/input/_index.scss.map +1 -1
  193. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss +2 -1
  194. data/node_modules/govuk-frontend/dist/govuk/components/inset-text/_index.scss.map +1 -1
  195. data/node_modules/govuk-frontend/dist/govuk/components/label/fixtures.json +2 -2
  196. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss +8 -6
  197. data/node_modules/govuk-frontend/dist/govuk/components/notification-banner/_index.scss.map +1 -1
  198. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss +9 -10
  199. data/node_modules/govuk-frontend/dist/govuk/components/pagination/_index.scss.map +1 -1
  200. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss +2 -2
  201. data/node_modules/govuk-frontend/dist/govuk/components/panel/_index.scss.map +1 -1
  202. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.js.map +1 -1
  203. data/node_modules/govuk-frontend/dist/govuk/components/password-input/password-input.bundle.mjs.map +1 -1
  204. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss +12 -6
  205. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/_index.scss.map +1 -1
  206. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/fixtures.json +7 -7
  207. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template-default.html +1 -1
  208. data/node_modules/govuk-frontend/dist/govuk/components/phase-banner/template.njk +1 -1
  209. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss +7 -6
  210. data/node_modules/govuk-frontend/dist/govuk/components/radios/_index.scss.map +1 -1
  211. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss +5 -4
  212. data/node_modules/govuk-frontend/dist/govuk/components/select/_index.scss.map +1 -1
  213. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss +50 -71
  214. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/_index.scss.map +1 -1
  215. data/node_modules/govuk-frontend/dist/govuk/components/service-navigation/fixtures.json +7 -32
  216. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss +3 -2
  217. data/node_modules/govuk-frontend/dist/govuk/components/skip-link/_index.scss.map +1 -1
  218. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss +9 -5
  219. data/node_modules/govuk-frontend/dist/govuk/components/summary-list/_index.scss.map +1 -1
  220. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss +7 -8
  221. data/node_modules/govuk-frontend/dist/govuk/components/table/_index.scss.map +1 -1
  222. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss +8 -5
  223. data/node_modules/govuk-frontend/dist/govuk/components/tabs/_index.scss.map +1 -1
  224. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss +66 -31
  225. data/node_modules/govuk-frontend/dist/govuk/components/tag/_index.scss.map +1 -1
  226. data/node_modules/govuk-frontend/dist/govuk/components/tag/fixtures.json +6 -18
  227. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-pink.html +2 -2
  228. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-turquoise.html +2 -2
  229. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss +7 -5
  230. data/node_modules/govuk-frontend/dist/govuk/components/task-list/_index.scss.map +1 -1
  231. data/node_modules/govuk-frontend/dist/govuk/components/task-list/fixtures.json +13 -25
  232. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-all-possible-colours.html +12 -24
  233. data/node_modules/govuk-frontend/dist/govuk/components/task-list/template-with-hint-text-and-additional-states.html +2 -2
  234. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss +4 -3
  235. data/node_modules/govuk-frontend/dist/govuk/components/textarea/_index.scss.map +1 -1
  236. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss +4 -3
  237. data/node_modules/govuk-frontend/dist/govuk/components/warning-text/_index.scss.map +1 -1
  238. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss +0 -1
  239. data/node_modules/govuk-frontend/dist/govuk/core/_index.scss.map +1 -1
  240. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss +2 -1
  241. data/node_modules/govuk-frontend/dist/govuk/core/_section-break.scss.map +1 -1
  242. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss +3 -17
  243. data/node_modules/govuk-frontend/dist/govuk/core/_typography.scss.map +1 -1
  244. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss +17 -0
  245. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_breakpoints.scss.map +1 -0
  246. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss +15 -0
  247. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_frontend-version.scss.map +1 -0
  248. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss +17 -0
  249. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_functional-colours.scss.map +1 -0
  250. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss +5 -0
  251. data/node_modules/govuk-frontend/dist/govuk/custom-properties/_index.scss.map +1 -0
  252. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css +2 -2
  253. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.css.map +1 -1
  254. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js +1 -1
  255. data/node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js.map +1 -1
  256. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss +168 -82
  257. data/node_modules/govuk-frontend/dist/govuk/helpers/_colour.scss.map +1 -1
  258. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss +8 -7
  259. data/node_modules/govuk-frontend/dist/govuk/helpers/_focused.scss.map +1 -1
  260. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss +23 -39
  261. data/node_modules/govuk-frontend/dist/govuk/helpers/_links.scss.map +1 -1
  262. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss +2 -26
  263. data/node_modules/govuk-frontend/dist/govuk/helpers/_typography.scss.map +1 -1
  264. data/node_modules/govuk-frontend/dist/govuk/i18n.mjs.map +1 -1
  265. data/node_modules/govuk-frontend/dist/govuk/init.mjs +1 -2
  266. data/node_modules/govuk-frontend/dist/govuk/init.mjs.map +1 -1
  267. data/node_modules/govuk-frontend/dist/govuk/macros/logo.njk +4 -26
  268. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss +2 -1
  269. data/node_modules/govuk-frontend/dist/govuk/objects/_form-group.scss.map +1 -1
  270. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss +2 -6
  271. data/node_modules/govuk-frontend/dist/govuk/objects/_template.scss.map +1 -1
  272. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss +0 -2
  273. data/node_modules/govuk-frontend/dist/govuk/overrides/_typography.scss.map +1 -1
  274. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss +3 -188
  275. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-applied.scss.map +1 -1
  276. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss +366 -0
  277. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-functional.scss.map +1 -0
  278. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss +8 -254
  279. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-organisations.scss.map +1 -1
  280. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss +117 -25
  281. data/node_modules/govuk-frontend/dist/govuk/settings/_colours-palette.scss.map +1 -1
  282. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss +18 -0
  283. data/node_modules/govuk-frontend/dist/govuk/settings/_custom-properties.scss.map +1 -0
  284. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss +3 -14
  285. data/node_modules/govuk-frontend/dist/govuk/settings/_index.scss.map +1 -1
  286. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss +0 -16
  287. data/node_modules/govuk-frontend/dist/govuk/settings/_media-queries.scss.map +1 -1
  288. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss +12 -189
  289. data/node_modules/govuk-frontend/dist/govuk/settings/_typography-responsive.scss.map +1 -1
  290. data/node_modules/govuk-frontend/dist/govuk/template.njk +61 -23
  291. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss +0 -1
  292. data/node_modules/govuk-frontend/dist/govuk/tools/_index.scss.map +1 -1
  293. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss +2 -0
  294. data/node_modules/govuk-frontend/dist/govuk/tools/_px-to-rem.scss.map +1 -1
  295. data/node_modules/govuk-frontend/govuk-prototype-kit.config.json +1 -4
  296. data/node_modules/govuk-frontend/package.json +13 -12
  297. metadata +14 -56
  298. data/app/assets/javascripts/govuk_publishing_components/components/layout-header.js +0 -3
  299. data/app/assets/stylesheets/govuk_publishing_components/settings/_colours.scss +0 -5
  300. data/app/assets/stylesheets/govuk_publishing_components/settings/_typography.scss +0 -1
  301. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +0 -34
  302. data/node_modules/govuk-frontend/dist/govuk/all.scss +0 -9
  303. data/node_modules/govuk-frontend/dist/govuk/all.scss.map +0 -1
  304. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.ico +0 -0
  305. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/favicon.svg +0 -1
  306. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-crest.svg +0 -1
  307. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-180.png +0 -0
  308. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-192.png +0 -0
  309. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-512.png +0 -0
  310. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-icon-mask.svg +0 -1
  311. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/images/govuk-opengraph-image.png +0 -0
  312. data/node_modules/govuk-frontend/dist/govuk/assets/rebrand/manifest.json +0 -39
  313. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss +0 -10
  314. data/node_modules/govuk-frontend/dist/govuk/components/_all.scss.map +0 -1
  315. data/node_modules/govuk-frontend/dist/govuk/components/button/template-input.html +0 -1
  316. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js +0 -238
  317. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.js.map +0 -1
  318. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs +0 -230
  319. data/node_modules/govuk-frontend/dist/govuk/components/header/header.bundle.mjs.map +0 -1
  320. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs +0 -89
  321. data/node_modules/govuk-frontend/dist/govuk/components/header/header.mjs.map +0 -1
  322. data/node_modules/govuk-frontend/dist/govuk/components/header/template-full-width-with-navigation.html +0 -54
  323. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-html.html +0 -54
  324. data/node_modules/govuk-frontend/dist/govuk/components/header/template-navigation-item-with-text-without-link.html +0 -48
  325. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-custom-menu-button-text.html +0 -59
  326. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-full-width-border.html +0 -29
  327. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-large-navigation.html +0 -119
  328. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-navigation.html +0 -59
  329. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-and-navigation.html +0 -62
  330. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name-but-no-service-url.html +0 -34
  331. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-service-name.html +0 -34
  332. data/node_modules/govuk-frontend/dist/govuk/components/header/template-with-st-edwards-crown.html +0 -19
  333. data/node_modules/govuk-frontend/dist/govuk/components/tag/template-light-blue.html +0 -3
  334. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss +0 -10
  335. data/node_modules/govuk-frontend/dist/govuk/core/_all.scss.map +0 -1
  336. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss +0 -15
  337. data/node_modules/govuk-frontend/dist/govuk/core/_govuk-frontend-properties.scss.map +0 -1
  338. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss +0 -10
  339. data/node_modules/govuk-frontend/dist/govuk/helpers/_all.scss.map +0 -1
  340. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss +0 -10
  341. data/node_modules/govuk-frontend/dist/govuk/objects/_all.scss.map +0 -1
  342. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss +0 -9
  343. data/node_modules/govuk-frontend/dist/govuk/overrides/_all.scss.map +0 -1
  344. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss +0 -10
  345. data/node_modules/govuk-frontend/dist/govuk/settings/_all.scss.map +0 -1
  346. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss +0 -10
  347. data/node_modules/govuk-frontend/dist/govuk/tools/_all.scss.map +0 -1
  348. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss +0 -65
  349. data/node_modules/govuk-frontend/dist/govuk/tools/_rebrand.scss.map +0 -1
  350. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss +0 -10
  351. data/node_modules/govuk-frontend/dist/govuk/utilities/_all.scss.map +0 -1
  352. data/node_modules/govuk-frontend/dist/govuk-prototype-kit/functions.js +0 -25
@@ -2,194 +2,9 @@
2
2
  /// @group settings/colours
3
3
  ////
4
4
 
5
- @import "../helpers/colour";
5
+ @warn "The '_colours-applied' file is deprecated. Please import '_colours-functional' instead. "
6
+ + "See https://github.com/alphagov/govuk-frontend/releases/tag/v6.0.0 for more details.";
6
7
 
7
- // =========================================================
8
- // Generic
9
- // =========================================================
10
-
11
- /// Brand colour
12
- ///
13
- /// @type Colour
14
- /// @access public
15
-
16
- $govuk-brand-colour: govuk-colour("blue") !default;
17
-
18
- /// Text colour
19
- ///
20
- /// @type Colour
21
- /// @access public
22
-
23
- $govuk-text-colour: govuk-colour("black") !default;
24
-
25
- /// Canvas background colour
26
- ///
27
- /// Used by the footer component and template to give the illusion of a long
28
- /// footer.
29
- ///
30
- /// @type Colour
31
- /// @access public
32
- /// @deprecated "$govuk-canvas-background-colour has been deprecated and will be removed in the next major
33
- /// version. Use `$govuk-template-background-colour` if you want to change the background of
34
- /// the `<html>` element and background colour of elements that need to match for visual
35
- /// continuity.
36
- $govuk-canvas-background-colour: govuk-colour("light-grey") !default;
37
-
38
- // Output a deprecation warning if $govuk-canvas-background-colour is being overridden
39
- // Remove in next major version.
40
- @if $govuk-canvas-background-colour != govuk-colour("light-grey") {
41
- @include _warning(
42
- "$govuk-canvas-background-colour",
43
- "$govuk-canvas-background-colour has been deprecated and will be removed in the next major version."
44
- );
45
- }
46
-
47
- /// Template background colour
48
- ///
49
- /// Used by components that want to give the illusion of extending
50
- /// the template background (such as the footer and cookie banner).
51
- ///
52
- /// @type Colour
53
- /// @access public
54
-
55
- $govuk-template-background-colour: govuk-colour("light-grey") !default;
56
-
57
- /// Body background colour
58
- ///
59
- /// @type Colour
60
- /// @access public
61
-
62
- $govuk-body-background-colour: govuk-colour("white") !default;
63
-
64
- /// Text colour for print media
65
- ///
66
- /// Use 'true black' to avoid printers using colour ink to print body text
67
- ///
68
- /// @type Colour
69
- /// @access public
70
-
71
- $govuk-print-text-colour: #000000 !default;
72
-
73
- /// Secondary text colour
74
- ///
75
- /// Used in for example 'muted' text and help text.
76
- ///
77
- /// @type Colour
78
- /// @access public
79
-
80
- $govuk-secondary-text-colour: govuk-colour("dark-grey") !default;
81
-
82
- /// Focus colour
83
- ///
84
- /// Used for outline (and background, where appropriate) when interactive
85
- /// elements (links, form controls) have keyboard focus.
86
- ///
87
- /// @type Colour
88
- /// @access public
89
-
90
- $govuk-focus-colour: govuk-colour("yellow") !default;
91
-
92
- /// Focused text colour
93
- ///
94
- /// Ensure that the contrast between the text and background colour passes
95
- /// WCAG Level AA contrast requirements.
96
- ///
97
- /// @type Colour
98
- /// @access public
99
-
100
- $govuk-focus-text-colour: govuk-colour("black") !default;
101
-
102
- /// Error colour
103
- ///
104
- /// Used to highlight error messages and form controls in an error state
105
- ///
106
- /// @type Colour
107
- /// @access public
108
-
109
- $govuk-error-colour: govuk-colour("red") !default;
110
-
111
- /// Success colour
112
- ///
113
- /// Used to highlight success messages and banners
114
- ///
115
- /// @type Colour
116
- /// @access public
117
-
118
- $govuk-success-colour: govuk-colour("green") !default;
119
-
120
- /// Border colour
121
- ///
122
- /// Used in for example borders, separators, rules and keylines.
123
- ///
124
- /// @type Colour
125
- /// @access public
126
-
127
- $govuk-border-colour: govuk-colour("mid-grey") !default;
128
-
129
- /// Input border colour
130
- ///
131
- /// Used for form inputs and controls
132
- ///
133
- /// @type Colour
134
- /// @access public
135
-
136
- $govuk-input-border-colour: govuk-colour("black") !default;
137
-
138
- /// Input hover colour
139
- ///
140
- /// Used for hover states on form controls
141
- ///
142
- /// @type Colour
143
- /// @access public
144
-
145
- $govuk-hover-colour: govuk-colour("mid-grey") !default;
146
-
147
- // =============================================================================
148
- // Links
149
- // =============================================================================
150
-
151
- /// Link colour
152
- ///
153
- /// @type Colour
154
- /// @access public
155
-
156
- $govuk-link-colour: govuk-colour("blue") !default;
157
-
158
- /// Visited link colour
159
- ///
160
- /// @type Colour
161
- /// @access public
162
-
163
- $govuk-link-visited-colour: govuk-colour("purple") !default;
164
-
165
- /// Link hover colour
166
- ///
167
- /// @type Colour
168
- /// @access public
169
-
170
- $govuk-link-hover-colour: govuk-colour("dark-blue") !default;
171
-
172
- /// Active link colour
173
- ///
174
- /// @type Colour
175
- /// @access public
176
-
177
- $govuk-link-active-colour: govuk-colour("black") !default;
178
-
179
- // =============================================================================
180
- // Brand refresh
181
- // =============================================================================
182
-
183
- /// Updated template background colour
184
- ///
185
- /// @type Colour
186
- /// @access private
187
- $_govuk-rebrand-template-background-colour: govuk-tint($govuk-brand-colour, 95%);
188
-
189
- /// Border colour for areas on a light-blue background
190
- ///
191
- /// @type Colour
192
- /// @access private
193
- $_govuk-rebrand-border-colour-on-blue-tint-95: govuk-tint($govuk-brand-colour, 50%);
8
+ @import "./colours-functional";
194
9
 
195
10
  /*# sourceMappingURL=_colours-applied.scss.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/govuk/settings/_colours-applied.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,0BAA0B;AAC1B,GAAG;;AAEH,2BAA2B;;AAE3B,2DAA2D;AAC3D,SAAS;AACT,2DAA2D;;AAE3D,eAAe;AACf,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,kDAAkD;;AAElD,cAAc;AACd,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,kDAAkD;;AAElD,2BAA2B;AAC3B,EAAE;AACF,2EAA2E;AAC3E,UAAU;AACV,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,yGAAyG;AACzG,2FAA2F;AAC3F,uFAAuF;AACvF,cAAc;AACd,oEAAoE;;AAEpE,qFAAqF;AACrF,+BAA+B;AAC/B;EACE;;;GAGC;AACH;;AAEA,6BAA6B;AAC7B,EAAE;AACF,iEAAiE;AACjE,kEAAkE;AAClE,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,sEAAsE;;AAEtE,yBAAyB;AACzB,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,6DAA6D;;AAE7D,8BAA8B;AAC9B,EAAE;AACF,yEAAyE;AACzE,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,0CAA0C;;AAE1C,wBAAwB;AACxB,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,gEAAgE;;AAEhE,eAAe;AACf,EAAE;AACF,wEAAwE;AACxE,uDAAuD;AACvD,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,oDAAoD;;AAEpD,sBAAsB;AACtB,EAAE;AACF,yEAAyE;AACzE,uCAAuC;AACvC,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,wDAAwD;;AAExD,eAAe;AACf,EAAE;AACF,uEAAuE;AACvE,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,iDAAiD;;AAEjD,iBAAiB;AACjB,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,qDAAqD;;AAErD,gBAAgB;AAChB,EAAE;AACF,+DAA+D;AAC/D,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,uDAAuD;;AAEvD,sBAAsB;AACtB,EAAE;AACF,oCAAoC;AACpC,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,0DAA0D;;AAE1D,qBAAqB;AACrB,EAAE;AACF,yCAAyC;AACzC,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,sDAAsD;;AAEtD,+EAA+E;AAC/E,OAAO;AACP,+EAA+E;;AAE/E,cAAc;AACd,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,iDAAiD;;AAEjD,sBAAsB;AACtB,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,2DAA2D;;AAE3D,oBAAoB;AACpB,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,4DAA4D;;AAE5D,qBAAqB;AACrB,EAAE;AACF,eAAe;AACf,iBAAiB;;AAEjB,yDAAyD;;AAEzD,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;;AAE/E,qCAAqC;AACrC,EAAE;AACF,eAAe;AACf,kBAAkB;AAClB,gFAAgF;;AAEhF,qDAAqD;AACrD,EAAE;AACF,eAAe;AACf,kBAAkB;AAClB,mFAAmF","file":"_colours-applied.scss","sourcesContent":["////\n/// @group settings/colours\n////\n\n@import \"../helpers/colour\";\n\n// =========================================================\n// Generic\n// =========================================================\n\n/// Brand colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-brand-colour: govuk-colour(\"blue\") !default;\n\n/// Text colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-text-colour: govuk-colour(\"black\") !default;\n\n/// Canvas background colour\n///\n/// Used by the footer component and template to give the illusion of a long\n/// footer.\n///\n/// @type Colour\n/// @access public\n/// @deprecated \"$govuk-canvas-background-colour has been deprecated and will be removed in the next major\n/// version. Use `$govuk-template-background-colour` if you want to change the background of\n/// the `<html>` element and background colour of elements that need to match for visual\n/// continuity.\n$govuk-canvas-background-colour: govuk-colour(\"light-grey\") !default;\n\n// Output a deprecation warning if $govuk-canvas-background-colour is being overridden\n// Remove in next major version.\n@if $govuk-canvas-background-colour != govuk-colour(\"light-grey\") {\n @include _warning(\n \"$govuk-canvas-background-colour\",\n \"$govuk-canvas-background-colour has been deprecated and will be removed in the next major version.\"\n );\n}\n\n/// Template background colour\n///\n/// Used by components that want to give the illusion of extending\n/// the template background (such as the footer and cookie banner).\n///\n/// @type Colour\n/// @access public\n\n$govuk-template-background-colour: govuk-colour(\"light-grey\") !default;\n\n/// Body background colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-body-background-colour: govuk-colour(\"white\") !default;\n\n/// Text colour for print media\n///\n/// Use 'true black' to avoid printers using colour ink to print body text\n///\n/// @type Colour\n/// @access public\n\n$govuk-print-text-colour: #000000 !default;\n\n/// Secondary text colour\n///\n/// Used in for example 'muted' text and help text.\n///\n/// @type Colour\n/// @access public\n\n$govuk-secondary-text-colour: govuk-colour(\"dark-grey\") !default;\n\n/// Focus colour\n///\n/// Used for outline (and background, where appropriate) when interactive\n/// elements (links, form controls) have keyboard focus.\n///\n/// @type Colour\n/// @access public\n\n$govuk-focus-colour: govuk-colour(\"yellow\") !default;\n\n/// Focused text colour\n///\n/// Ensure that the contrast between the text and background colour passes\n/// WCAG Level AA contrast requirements.\n///\n/// @type Colour\n/// @access public\n\n$govuk-focus-text-colour: govuk-colour(\"black\") !default;\n\n/// Error colour\n///\n/// Used to highlight error messages and form controls in an error state\n///\n/// @type Colour\n/// @access public\n\n$govuk-error-colour: govuk-colour(\"red\") !default;\n\n/// Success colour\n///\n/// Used to highlight success messages and banners\n///\n/// @type Colour\n/// @access public\n\n$govuk-success-colour: govuk-colour(\"green\") !default;\n\n/// Border colour\n///\n/// Used in for example borders, separators, rules and keylines.\n///\n/// @type Colour\n/// @access public\n\n$govuk-border-colour: govuk-colour(\"mid-grey\") !default;\n\n/// Input border colour\n///\n/// Used for form inputs and controls\n///\n/// @type Colour\n/// @access public\n\n$govuk-input-border-colour: govuk-colour(\"black\") !default;\n\n/// Input hover colour\n///\n/// Used for hover states on form controls\n///\n/// @type Colour\n/// @access public\n\n$govuk-hover-colour: govuk-colour(\"mid-grey\") !default;\n\n// =============================================================================\n// Links\n// =============================================================================\n\n/// Link colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-link-colour: govuk-colour(\"blue\") !default;\n\n/// Visited link colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-link-visited-colour: govuk-colour(\"purple\") !default;\n\n/// Link hover colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-link-hover-colour: govuk-colour(\"dark-blue\") !default;\n\n/// Active link colour\n///\n/// @type Colour\n/// @access public\n\n$govuk-link-active-colour: govuk-colour(\"black\") !default;\n\n// =============================================================================\n// Brand refresh\n// =============================================================================\n\n/// Updated template background colour\n///\n/// @type Colour\n/// @access private\n$_govuk-rebrand-template-background-colour: govuk-tint($govuk-brand-colour, 95%);\n\n/// Border colour for areas on a light-blue background\n///\n/// @type Colour\n/// @access private\n$_govuk-rebrand-border-colour-on-blue-tint-95: govuk-tint($govuk-brand-colour, 50%);\n"]}
1
+ {"version":3,"sources":["../../../src/govuk/settings/_colours-applied.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,0BAA0B;AAC1B,GAAG;;AAEH;0FAC0F;;AAE1F,8BAA8B","file":"_colours-applied.scss","sourcesContent":["////\n/// @group settings/colours\n////\n\n@warn \"The '_colours-applied' file is deprecated. Please import '_colours-functional' instead. \"\n + \"See https://github.com/alphagov/govuk-frontend/releases/tag/v6.0.0 for more details.\";\n\n@import \"./colours-functional\";\n"]}
@@ -0,0 +1,366 @@
1
+ ////
2
+ /// @group settings/colours
3
+ ////
4
+
5
+ @import "../helpers/colour";
6
+
7
+ /// Default definitions of the functional colours
8
+ ///
9
+ /// @type Map
10
+ ///
11
+ /// @see {variable} $govuk-functional-colours
12
+ ///
13
+ /// @access public
14
+ $govuk-default-functional-colours: (
15
+ (
16
+ "brand": (
17
+ name: "blue"
18
+ ),
19
+ "text": (
20
+ name: "black"
21
+ ),
22
+ // The background colour of the template. This is intended to be the same
23
+ // as `surface-background` for the purposes of making the Footer and Cookie
24
+ // banner components merge seamlessly with the template.
25
+ "template-background": (
26
+ name: "blue",
27
+ variant: "tint-95"
28
+ ),
29
+ "body-background": (
30
+ name: "white"
31
+ ),
32
+ // Use 'true black' to avoid printers using colour ink to print body text
33
+ "print-text": #000000,
34
+ // Used in for example 'muted' text and help text.
35
+ "secondary-text": (
36
+ name: "black",
37
+ variant: "tint-25"
38
+ ),
39
+ // Used for outline (and background, where appropriate) when interactive
40
+ // elements (links, form controls) have keyboard focus.
41
+ "focus": (
42
+ name: "yellow"
43
+ ),
44
+ // Ensure that the contrast between the text and background colour passes
45
+ // WCAG Level AA contrast requirements.
46
+ "focus-text": (
47
+ name: "black"
48
+ ),
49
+ // Used to highlight error messages and form controls in an error state
50
+ "error": (
51
+ name: "red"
52
+ ),
53
+ // Used to highlight success messages and banners
54
+ "success": (
55
+ name: "green"
56
+ ),
57
+ // Used in for example borders, separators, rules and keylines.
58
+ "border": (
59
+ name: "black",
60
+ variant: "tint-80"
61
+ ),
62
+ // Used for form inputs and controls
63
+ "input-border": (
64
+ name: "black"
65
+ ),
66
+ // Used for hover states on form controls
67
+ "hover": (
68
+ name: "black",
69
+ variant: "tint-80"
70
+ ),
71
+ // Standard links (on white)
72
+ "link": (
73
+ name: "blue",
74
+ variant: "shade-10"
75
+ ),
76
+ "link-visited": (
77
+ name: "purple"
78
+ ),
79
+ "link-hover": (
80
+ name: "blue",
81
+ variant: "shade-50"
82
+ ),
83
+ "link-active": (
84
+ name: "black"
85
+ ),
86
+ // 'Surfaces' are our name for components that have different colour
87
+ // palettes to typical page content. This is the generic surface.
88
+ "surface-background": (
89
+ name: "blue",
90
+ variant: "tint-95"
91
+ ),
92
+ "surface-text": (
93
+ name: "black"
94
+ ),
95
+ "surface-border": (
96
+ name: "blue",
97
+ variant: "tint-50"
98
+ )
99
+ )
100
+ );
101
+
102
+ /// Functional colours for the GOV.UK palette.
103
+ ///
104
+ /// Each functional colour is represented by a name (for example `'brand'`) to
105
+ /// which the map associates either:
106
+ ///
107
+ /// - a Sass colour (like `#1d70b8`)
108
+ /// - a Sass map with a `name` and an optional `variant` properties, referring
109
+ /// to one of the colours in the colour palette (like `(name: 'blue',
110
+ /// variant: 'primary')`). `variant` defaults to `'primary'` if omitted.
111
+ ///
112
+ /// Use the `govuk-functional-colour` function to access these colours.
113
+ ///
114
+ /// Customise functional colours by defining $govuk-functional-colours with a
115
+ /// map of the colours that you want to change before importing GOV.UK Frontend.
116
+ /// These will then be merged with the default colours. You can only redefine
117
+ /// existing colours.
118
+ ///
119
+ /// @example scss – Redefining functional colours by setting them before import
120
+ ///
121
+ /// // These will be merged with the default functional colours
122
+ /// $govuk-functional-colours: (
123
+ /// // set the 'brand' colour to the 'primary' variant of 'purple'
124
+ /// brand: (name: 'purple'),
125
+ /// // set the 'template-background' colour to the 'tint-95' variant of 'purple'
126
+ /// template-background: (name: 'purple', variant: 'tint-95'),
127
+ /// // set the 'text' colour to an arbitrary colour `#221133`
128
+ /// text: #221133
129
+ /// );
130
+ ///
131
+ /// @see {function} govuk-functional-colour
132
+ ///
133
+ /// @type Map
134
+ ///
135
+ /// @access public
136
+ $govuk-functional-colours: $govuk-default-functional-colours !default;
137
+ $govuk-functional-colours: _govuk-define-functional-colours(
138
+ $govuk-functional-colours,
139
+ $defaults: $govuk-default-functional-colours
140
+ );
141
+
142
+ // =============================================================================
143
+ // Legacy variables
144
+ //
145
+ // To help migrate to `govuk-functional-colour`, we're keeping the variables
146
+ // which were previously storing the functional colours. This should reduce
147
+ // breakage as teams upgrade
148
+ // =============================================================================
149
+
150
+ // Because the file may be imported multiple times, subsequent imports will see
151
+ // the legacy variable and warn when they shouldn't so we need to track those
152
+ $_govuk-deprecated-applied-colour-variables: () !default;
153
+
154
+ /// Warn if a given legacy applied colour variable is set
155
+ ///
156
+ /// @param {String} Name of variable to check
157
+ /// @access private
158
+ @mixin _warn-if-applied-colour-variable-set($functional-colour-name) {
159
+ @if not index($_govuk-deprecated-applied-colour-variables, $functional-colour-name) {
160
+ @if variable-exists("govuk-#{$functional-colour-name}-colour") {
161
+ $deprecation-message: "Setting \`$govuk-#{$functional-colour-name}-colour\` no longer has any effect. Use \`$govuk-functional-colours: (#{$functional-colour-name}: <NEW_COLOUR_VALUE>);\` instead.";
162
+
163
+ @include _warning("applied-colour-variables", $deprecation-message);
164
+ }
165
+
166
+ $_govuk-deprecated-applied-colour-variables: append(
167
+ $_govuk-deprecated-applied-colour-variables,
168
+ $functional-colour-name
169
+ ) !global;
170
+ }
171
+ }
172
+
173
+ @include _warn-if-applied-colour-variable-set(brand);
174
+ /// Brand colour
175
+ ///
176
+ /// @type Colour
177
+ /// @access public
178
+ /// @deprecated
179
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
180
+ /// function instead: `govuk-functional-colour(brand)`.
181
+ $govuk-brand-colour: govuk-functional-colour(brand);
182
+
183
+ @include _warn-if-applied-colour-variable-set(text);
184
+ /// Text colour
185
+ ///
186
+ /// @type Colour
187
+ /// @access public
188
+ /// @deprecated
189
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
190
+ /// function instead: `govuk-functional-colour(text)`.
191
+ $govuk-text-colour: govuk-functional-colour(text);
192
+
193
+ @include _warn-if-applied-colour-variable-set(template-background);
194
+ /// Template background colour
195
+ ///
196
+ /// Used by components that want to give the illusion of extending
197
+ /// the template background (such as the footer and cookie banner).
198
+ ///
199
+ /// @type Colour
200
+ /// @access public
201
+ /// @deprecated
202
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
203
+ /// function instead: `govuk-functional-colour(template-background)`.
204
+ $govuk-template-background-colour: govuk-functional-colour(template-background);
205
+
206
+ @include _warn-if-applied-colour-variable-set(body-background);
207
+ /// Body background colour
208
+ ///
209
+ /// @type Colour
210
+ /// @access public
211
+ /// @deprecated
212
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
213
+ /// function instead: `govuk-functional-colour(body-background)`.
214
+ $govuk-body-background-colour: govuk-functional-colour(body-background);
215
+
216
+ @include _warn-if-applied-colour-variable-set(print-text);
217
+ /// Text colour for print media
218
+ ///
219
+ /// Use 'true black' to avoid printers using colour ink to print body text
220
+ ///
221
+ /// @type Colour
222
+ /// @access public
223
+ /// @deprecated
224
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
225
+ /// function instead: `govuk-functional-colour(print-text)`.
226
+ $govuk-print-text-colour: govuk-functional-colour(print-text);
227
+
228
+ @include _warn-if-applied-colour-variable-set(secondary-text);
229
+ /// Secondary text colour
230
+ ///
231
+ /// Used in for example 'muted' text and help text.
232
+ ///
233
+ /// @type Colour
234
+ /// @access public
235
+ /// @deprecated
236
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
237
+ /// function instead: `govuk-functional-colour(secondary-text)`.
238
+ $govuk-secondary-text-colour: govuk-functional-colour(secondary-text);
239
+
240
+ @include _warn-if-applied-colour-variable-set(focus);
241
+ /// Focus colour
242
+ ///
243
+ /// Used for outline (and background, where appropriate) when interactive
244
+ /// elements (links, form controls) have keyboard focus.
245
+ ///
246
+ /// @type Colour
247
+ /// @access public
248
+ /// @deprecated
249
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
250
+ /// function instead: `govuk-functional-colour(focus)`.
251
+ $govuk-focus-colour: govuk-functional-colour(focus);
252
+
253
+ @include _warn-if-applied-colour-variable-set(focus-text);
254
+ /// Focused text colour
255
+ ///
256
+ /// Ensure that the contrast between the text and background colour passes
257
+ /// WCAG Level AA contrast requirements.
258
+ ///
259
+ /// @type Colour
260
+ /// @access public
261
+ /// @deprecated
262
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
263
+ /// function instead: `govuk-functional-colour(focus-text)`.
264
+ $govuk-focus-text-colour: govuk-functional-colour(focus-text);
265
+
266
+ @include _warn-if-applied-colour-variable-set(error);
267
+ /// Error colour
268
+ ///
269
+ /// Used to highlight error messages and form controls in an error state
270
+ ///
271
+ /// @type Colour
272
+ /// @access public
273
+ /// @deprecated
274
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
275
+ /// function instead: `govuk-functional-colour(error)`.
276
+ $govuk-error-colour: govuk-functional-colour(error);
277
+
278
+ @include _warn-if-applied-colour-variable-set(success);
279
+ /// Success colour
280
+ ///
281
+ /// Used to highlight success messages and banners
282
+ ///
283
+ /// @type Colour
284
+ /// @access public
285
+ /// @deprecated
286
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
287
+ /// function instead: `govuk-functional-colour(error)`.
288
+ $govuk-success-colour: govuk-functional-colour(success);
289
+
290
+ @include _warn-if-applied-colour-variable-set(border);
291
+ /// Border colour
292
+ ///
293
+ /// Used in for example borders, separators, rules and keylines.
294
+ ///
295
+ /// @type Colour
296
+ /// @access public
297
+ /// @deprecated
298
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
299
+ /// function instead: `govuk-functional-colour(border)`.
300
+ $govuk-border-colour: govuk-functional-colour(border);
301
+
302
+ @include _warn-if-applied-colour-variable-set(input-border);
303
+ /// Input border colour
304
+ ///
305
+ /// Used for form inputs and controls
306
+ ///
307
+ /// @type Colour
308
+ /// @access public
309
+ /// @deprecated
310
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
311
+ /// function instead: `govuk-functional-colour(input-border)`.
312
+ $govuk-input-border-colour: govuk-functional-colour(input-border);
313
+
314
+ @include _warn-if-applied-colour-variable-set(hover);
315
+ /// Input hover colour
316
+ ///
317
+ /// Used for hover states on form controls
318
+ ///
319
+ /// @type Colour
320
+ /// @access public
321
+ /// @deprecated
322
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
323
+ /// function instead: `govuk-functional-colour(hover)`.
324
+ $govuk-hover-colour: govuk-functional-colour(hover);
325
+
326
+ @include _warn-if-applied-colour-variable-set(link);
327
+ /// Link colour
328
+ ///
329
+ /// @type Colour
330
+ /// @access public
331
+ /// @deprecated
332
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
333
+ /// function instead: `govuk-functional-colour(link)`.
334
+ $govuk-link-colour: govuk-functional-colour(link);
335
+
336
+ @include _warn-if-applied-colour-variable-set(link-visited);
337
+ /// Visited link colour
338
+ ///
339
+ /// @type Colour
340
+ /// @access public
341
+ /// @deprecated
342
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
343
+ /// function instead: `govuk-functional-colour(link-visited)`.
344
+ $govuk-link-visited-colour: govuk-functional-colour(link-visited);
345
+
346
+ @include _warn-if-applied-colour-variable-set(link-hover);
347
+ /// Link hover colour
348
+ ///
349
+ /// @type Colour
350
+ /// @access public
351
+ /// @deprecated
352
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
353
+ /// function instead: `govuk-functional-colour(link-hover)`.
354
+ $govuk-link-hover-colour: govuk-functional-colour(link-hover);
355
+
356
+ @include _warn-if-applied-colour-variable-set(link-active);
357
+ /// Active link colour
358
+ ///
359
+ /// @type Colour
360
+ /// @access public
361
+ /// @deprecated
362
+ /// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`
363
+ /// function instead: `govuk-functional-colour(link-active)`.
364
+ $govuk-link-active-colour: govuk-functional-colour(link-active);
365
+
366
+ /*# sourceMappingURL=_colours-functional.scss.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/govuk/settings/_colours-functional.scss"],"names":[],"mappings":"AAAA,GAAG;AACH,0BAA0B;AAC1B,GAAG;;AAEH,2BAA2B;;AAE3B,gDAAgD;AAChD,EAAE;AACF,YAAY;AACZ,EAAE;AACF,4CAA4C;AAC5C,EAAE;AACF,iBAAiB;AACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFC;;AAED,6CAA6C;AAC7C,EAAE;AACF,6EAA6E;AAC7E,mCAAmC;AACnC,EAAE;AACF,qCAAqC;AACrC,+EAA+E;AAC/E,wEAAwE;AACxE,2EAA2E;AAC3E,EAAE;AACF,sEAAsE;AACtE,EAAE;AACF,4EAA4E;AAC5E,+EAA+E;AAC/E,4EAA4E;AAC5E,oBAAoB;AACpB,EAAE;AACF,8EAA8E;AAC9E,EAAE;AACF,gEAAgE;AAChE,iCAAiC;AACjC,qEAAqE;AACrE,+BAA+B;AAC/B,mFAAmF;AACnF,iEAAiE;AACjE,gEAAgE;AAChE,oBAAoB;AACpB,OAAO;AACP,EAAE;AACF,0CAA0C;AAC1C,EAAE;AACF,YAAY;AACZ,EAAE;AACF,iBAAiB;AACjB,qEAAqE;AACrE;;;CAGC;;AAED,+EAA+E;AAC/E,kBAAkB;AAClB,CAAC;AACD,2EAA2E;AAC3E,0EAA0E;AAC1E,2BAA2B;AAC3B,+EAA+E;;AAE/E,8EAA8E;AAC9E,4EAA4E;AAC5E,wDAAwD;;AAExD,wDAAwD;AACxD,EAAE;AACF,4CAA4C;AAC5C,kBAAkB;AAClB;EACE;IACE;MACE,oMAAoM;;MAEpM,mEAAmE;IACrE;;IAEA;;;aAGS;EACX;AACF;;AAEA,oDAAoD;AACpD,eAAe;AACf,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,wDAAwD;AACxD,mDAAmD;;AAEnD,mDAAmD;AACnD,cAAc;AACd,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,uDAAuD;AACvD,iDAAiD;;AAEjD,kEAAkE;AAClE,6BAA6B;AAC7B,EAAE;AACF,iEAAiE;AACjE,kEAAkE;AAClE,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,sEAAsE;AACtE,+EAA+E;;AAE/E,8DAA8D;AAC9D,yBAAyB;AACzB,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,kEAAkE;AAClE,uEAAuE;;AAEvE,yDAAyD;AACzD,8BAA8B;AAC9B,EAAE;AACF,yEAAyE;AACzE,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,6DAA6D;AAC7D,6DAA6D;;AAE7D,6DAA6D;AAC7D,wBAAwB;AACxB,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,iEAAiE;AACjE,qEAAqE;;AAErE,oDAAoD;AACpD,eAAe;AACf,EAAE;AACF,wEAAwE;AACxE,uDAAuD;AACvD,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,wDAAwD;AACxD,mDAAmD;;AAEnD,yDAAyD;AACzD,sBAAsB;AACtB,EAAE;AACF,yEAAyE;AACzE,uCAAuC;AACvC,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,6DAA6D;AAC7D,6DAA6D;;AAE7D,oDAAoD;AACpD,eAAe;AACf,EAAE;AACF,uEAAuE;AACvE,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,wDAAwD;AACxD,mDAAmD;;AAEnD,sDAAsD;AACtD,iBAAiB;AACjB,EAAE;AACF,iDAAiD;AACjD,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,wDAAwD;AACxD,uDAAuD;;AAEvD,qDAAqD;AACrD,gBAAgB;AAChB,EAAE;AACF,+DAA+D;AAC/D,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,yDAAyD;AACzD,qDAAqD;;AAErD,2DAA2D;AAC3D,sBAAsB;AACtB,EAAE;AACF,oCAAoC;AACpC,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,+DAA+D;AAC/D,iEAAiE;;AAEjE,oDAAoD;AACpD,qBAAqB;AACrB,EAAE;AACF,yCAAyC;AACzC,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,wDAAwD;AACxD,mDAAmD;;AAEnD,mDAAmD;AACnD,cAAc;AACd,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,uDAAuD;AACvD,iDAAiD;;AAEjD,2DAA2D;AAC3D,sBAAsB;AACtB,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,+DAA+D;AAC/D,iEAAiE;;AAEjE,yDAAyD;AACzD,oBAAoB;AACpB,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,6DAA6D;AAC7D,6DAA6D;;AAE7D,0DAA0D;AAC1D,qBAAqB;AACrB,EAAE;AACF,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,2FAA2F;AAC3F,8DAA8D;AAC9D,+DAA+D","file":"_colours-functional.scss","sourcesContent":["////\n/// @group settings/colours\n////\n\n@import \"../helpers/colour\";\n\n/// Default definitions of the functional colours\n///\n/// @type Map\n///\n/// @see {variable} $govuk-functional-colours\n///\n/// @access public\n$govuk-default-functional-colours: (\n (\n \"brand\": (\n name: \"blue\"\n ),\n \"text\": (\n name: \"black\"\n ),\n // The background colour of the template. This is intended to be the same\n // as `surface-background` for the purposes of making the Footer and Cookie\n // banner components merge seamlessly with the template.\n \"template-background\": (\n name: \"blue\",\n variant: \"tint-95\"\n ),\n \"body-background\": (\n name: \"white\"\n ),\n // Use 'true black' to avoid printers using colour ink to print body text\n \"print-text\": #000000,\n // Used in for example 'muted' text and help text.\n \"secondary-text\": (\n name: \"black\",\n variant: \"tint-25\"\n ),\n // Used for outline (and background, where appropriate) when interactive\n // elements (links, form controls) have keyboard focus.\n \"focus\": (\n name: \"yellow\"\n ),\n // Ensure that the contrast between the text and background colour passes\n // WCAG Level AA contrast requirements.\n \"focus-text\": (\n name: \"black\"\n ),\n // Used to highlight error messages and form controls in an error state\n \"error\": (\n name: \"red\"\n ),\n // Used to highlight success messages and banners\n \"success\": (\n name: \"green\"\n ),\n // Used in for example borders, separators, rules and keylines.\n \"border\": (\n name: \"black\",\n variant: \"tint-80\"\n ),\n // Used for form inputs and controls\n \"input-border\": (\n name: \"black\"\n ),\n // Used for hover states on form controls\n \"hover\": (\n name: \"black\",\n variant: \"tint-80\"\n ),\n // Standard links (on white)\n \"link\": (\n name: \"blue\",\n variant: \"shade-10\"\n ),\n \"link-visited\": (\n name: \"purple\"\n ),\n \"link-hover\": (\n name: \"blue\",\n variant: \"shade-50\"\n ),\n \"link-active\": (\n name: \"black\"\n ),\n // 'Surfaces' are our name for components that have different colour\n // palettes to typical page content. This is the generic surface.\n \"surface-background\": (\n name: \"blue\",\n variant: \"tint-95\"\n ),\n \"surface-text\": (\n name: \"black\"\n ),\n \"surface-border\": (\n name: \"blue\",\n variant: \"tint-50\"\n )\n )\n);\n\n/// Functional colours for the GOV.UK palette.\n///\n/// Each functional colour is represented by a name (for example `'brand'`) to\n/// which the map associates either:\n///\n/// - a Sass colour (like `#1d70b8`)\n/// - a Sass map with a `name` and an optional `variant` properties, referring\n/// to one of the colours in the colour palette (like `(name: 'blue',\n/// variant: 'primary')`). `variant` defaults to `'primary'` if omitted.\n///\n/// Use the `govuk-functional-colour` function to access these colours.\n///\n/// Customise functional colours by defining $govuk-functional-colours with a\n/// map of the colours that you want to change before importing GOV.UK Frontend.\n/// These will then be merged with the default colours. You can only redefine\n/// existing colours.\n///\n/// @example scss – Redefining functional colours by setting them before import\n///\n/// // These will be merged with the default functional colours\n/// $govuk-functional-colours: (\n/// // set the 'brand' colour to the 'primary' variant of 'purple'\n/// brand: (name: 'purple'),\n/// // set the 'template-background' colour to the 'tint-95' variant of 'purple'\n/// template-background: (name: 'purple', variant: 'tint-95'),\n/// // set the 'text' colour to an arbitrary colour `#221133`\n/// text: #221133\n/// );\n///\n/// @see {function} govuk-functional-colour\n///\n/// @type Map\n///\n/// @access public\n$govuk-functional-colours: $govuk-default-functional-colours !default;\n$govuk-functional-colours: _govuk-define-functional-colours(\n $govuk-functional-colours,\n $defaults: $govuk-default-functional-colours\n);\n\n// =============================================================================\n// Legacy variables\n//\n// To help migrate to `govuk-functional-colour`, we're keeping the variables\n// which were previously storing the functional colours. This should reduce\n// breakage as teams upgrade\n// =============================================================================\n\n// Because the file may be imported multiple times, subsequent imports will see\n// the legacy variable and warn when they shouldn't so we need to track those\n$_govuk-deprecated-applied-colour-variables: () !default;\n\n/// Warn if a given legacy applied colour variable is set\n///\n/// @param {String} Name of variable to check\n/// @access private\n@mixin _warn-if-applied-colour-variable-set($functional-colour-name) {\n @if not index($_govuk-deprecated-applied-colour-variables, $functional-colour-name) {\n @if variable-exists(\"govuk-#{$functional-colour-name}-colour\") {\n $deprecation-message: \"Setting \\`$govuk-#{$functional-colour-name}-colour\\` no longer has any effect. Use \\`$govuk-functional-colours: (#{$functional-colour-name}: <NEW_COLOUR_VALUE>);\\` instead.\";\n\n @include _warning(\"applied-colour-variables\", $deprecation-message);\n }\n\n $_govuk-deprecated-applied-colour-variables: append(\n $_govuk-deprecated-applied-colour-variables,\n $functional-colour-name\n ) !global;\n }\n}\n\n@include _warn-if-applied-colour-variable-set(brand);\n/// Brand colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(brand)`.\n$govuk-brand-colour: govuk-functional-colour(brand);\n\n@include _warn-if-applied-colour-variable-set(text);\n/// Text colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(text)`.\n$govuk-text-colour: govuk-functional-colour(text);\n\n@include _warn-if-applied-colour-variable-set(template-background);\n/// Template background colour\n///\n/// Used by components that want to give the illusion of extending\n/// the template background (such as the footer and cookie banner).\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(template-background)`.\n$govuk-template-background-colour: govuk-functional-colour(template-background);\n\n@include _warn-if-applied-colour-variable-set(body-background);\n/// Body background colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(body-background)`.\n$govuk-body-background-colour: govuk-functional-colour(body-background);\n\n@include _warn-if-applied-colour-variable-set(print-text);\n/// Text colour for print media\n///\n/// Use 'true black' to avoid printers using colour ink to print body text\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(print-text)`.\n$govuk-print-text-colour: govuk-functional-colour(print-text);\n\n@include _warn-if-applied-colour-variable-set(secondary-text);\n/// Secondary text colour\n///\n/// Used in for example 'muted' text and help text.\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(secondary-text)`.\n$govuk-secondary-text-colour: govuk-functional-colour(secondary-text);\n\n@include _warn-if-applied-colour-variable-set(focus);\n/// Focus colour\n///\n/// Used for outline (and background, where appropriate) when interactive\n/// elements (links, form controls) have keyboard focus.\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(focus)`.\n$govuk-focus-colour: govuk-functional-colour(focus);\n\n@include _warn-if-applied-colour-variable-set(focus-text);\n/// Focused text colour\n///\n/// Ensure that the contrast between the text and background colour passes\n/// WCAG Level AA contrast requirements.\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(focus-text)`.\n$govuk-focus-text-colour: govuk-functional-colour(focus-text);\n\n@include _warn-if-applied-colour-variable-set(error);\n/// Error colour\n///\n/// Used to highlight error messages and form controls in an error state\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(error)`.\n$govuk-error-colour: govuk-functional-colour(error);\n\n@include _warn-if-applied-colour-variable-set(success);\n/// Success colour\n///\n/// Used to highlight success messages and banners\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(error)`.\n$govuk-success-colour: govuk-functional-colour(success);\n\n@include _warn-if-applied-colour-variable-set(border);\n/// Border colour\n///\n/// Used in for example borders, separators, rules and keylines.\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(border)`.\n$govuk-border-colour: govuk-functional-colour(border);\n\n@include _warn-if-applied-colour-variable-set(input-border);\n/// Input border colour\n///\n/// Used for form inputs and controls\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(input-border)`.\n$govuk-input-border-colour: govuk-functional-colour(input-border);\n\n@include _warn-if-applied-colour-variable-set(hover);\n/// Input hover colour\n///\n/// Used for hover states on form controls\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(hover)`.\n$govuk-hover-colour: govuk-functional-colour(hover);\n\n@include _warn-if-applied-colour-variable-set(link);\n/// Link colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(link)`.\n$govuk-link-colour: govuk-functional-colour(link);\n\n@include _warn-if-applied-colour-variable-set(link-visited);\n/// Visited link colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(link-visited)`.\n$govuk-link-visited-colour: govuk-functional-colour(link-visited);\n\n@include _warn-if-applied-colour-variable-set(link-hover);\n/// Link hover colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(link-hover)`.\n$govuk-link-hover-colour: govuk-functional-colour(link-hover);\n\n@include _warn-if-applied-colour-variable-set(link-active);\n/// Active link colour\n///\n/// @type Colour\n/// @access public\n/// @deprecated\n/// Variables for applied colours are deprecated. Please use the `govuk-functional-colour`\n/// function instead: `govuk-functional-colour(link-active)`.\n$govuk-link-active-colour: govuk-functional-colour(link-active);\n"]}