What
Update GOV.UK Frontend to use the new @use syntax internally to import dependencies, and to be consumed using @use.
Why
The Sass module system has been introduced, aiming to address some of the issues with the @import rule.
The @import rule, and most global functions will eventually be deprecated, and then removed from Sass.
Moving to @use will allow us to revisit and simplify the way that GOV.UK Frontend is implemented, without the limitations of @import – for example namespacing, and the govuk-exports mixin.
We're planning to only support @use in the next major release of GOV.UK Frontend.
Resources
What
Update GOV.UK Frontend to use the new
@usesyntax internally to import dependencies, and to be consumed using@use.Why
The Sass module system has been introduced, aiming to address some of the issues with the
@importrule.The
@importrule, and most global functions will eventually be deprecated, and then removed from Sass.Moving to
@usewill allow us to revisit and simplify the way that GOV.UK Frontend is implemented, without the limitations of@import– for example namespacing, and the govuk-exports mixin.We're planning to only support
@usein the next major release of GOV.UK Frontend.Resources