|
| 1 | +--- |
| 2 | +title: Changes in GOV.UK Frontend v6.0.0 |
| 3 | +weight: 95 |
| 4 | +--- |
| 5 | + |
| 6 | +# Changes in GOV.UK Frontend v6.0.0 |
| 7 | + |
| 8 | +GOV.UK Frontend v6.0.0 includes changes to: |
| 9 | + |
| 10 | +- improve our Sass architecture |
| 11 | +- use an updated type scale to improve accessibility for small screens |
| 12 | +- update colours to use the GOV.UK web palette in the GOV.UK brand guidelines |
| 13 | +- improve the page template layout |
| 14 | + |
| 15 | +We’ve also removed a number of deprecated APIs, Sass variables and component options. |
| 16 | + |
| 17 | +## Migrating from v5 to v6.0.0 |
| 18 | + |
| 19 | +Follow the guidance about [staying up to date with GOV.UK Frontend](https://frontend.design-system.service.gov.uk/staying-up-to-date/). |
| 20 | + |
| 21 | +When making the decision to migrate, consider your service’s requirements and your ability to update Sass tooling and templates. In particular, you must update to [Dart Sass v1.79.0 or later](https://sass-lang.com/dart-sass/) before upgrading to v6.0.0. |
| 22 | + |
| 23 | +## Benefits of updating to v6.0.0 |
| 24 | + |
| 25 | +By updating to v6.0.0 you’ll: |
| 26 | + |
| 27 | +- stay aligned with the GOV.UK look and feel: we’ve updated GOV.UK Frontend to use the GOV.UK web palette from the GOV.UK brand guidelines |
| 28 | +- benefit from a more consistent colour system in certain components |
| 29 | +- get the latest accessibility improvements, based on ongoing testing and feedback from services across government |
| 30 | +- benefit from a smaller CSS payload |
| 31 | +- be able to customise the page template further than before |
| 32 | + |
| 33 | +## Updating to v6.0.0 |
| 34 | + |
| 35 | +Read the [GOV.UK Frontend v6.0.0 release notes](https://github.com/alphagov/govuk-frontend/releases/v6.0.0) to see the full list of breaking and recommended changes. |
| 36 | + |
| 37 | +You might need to update some items to update to v6.0.0, including: |
| 38 | + |
| 39 | +- updating your Sass compiler to [Dart Sass v1.79.0 or later](https://sass-lang.com/dart-sass/) |
| 40 | +- using the latest GOV.UK web palette |
| 41 | +- using the new colour functions and replacing colours to follow the new naming convention |
| 42 | + |
| 43 | +You'll need to check some items still work as expected, including: |
| 44 | + |
| 45 | +- making sure any custom use of functional colours still follows best accessibility practice for contrast and legibility |
| 46 | +- updating any custom header or footer content, as we've changed how you can use and customise these components |
| 47 | +- testing the new type scale in your service to see if you need to make any adjustments |
| 48 | + |
| 49 | +You’ll also need to remove references to any APIs, Sass variables and component options that we’ve removed. |
0 commit comments