Open
Description
Related documentation
Content at https://frontend.design-system.service.gov.uk/importing-css-assets-and-javascript/#if-you-have-your-own-folder-structure regarding overriding default variables in SASS.
Suggestion
@use
wants you to explicitly show which default variables you are overriding; @import
is much less strict. I found in order to change the assets path, our team’s code needed to use the new syntax:
@use '../../../node_modules/govuk-frontend/govuk/all' with (
$govuk-assets-path: '/public/'
);
I would imagine this pattern would be used for any default
variables you’d want to override.