Skip to content

Support the Sass module system (@use) #1791

@36degrees

Description

@36degrees

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

Metadata

Metadata

Labels

epicEpics are used in planning project boards to group related storiessass / css

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions