alphagov / alphagov/tech-docs-gem

[Enhancement]: Migrate from @import to @use

Open
#523 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
16
Forks
47
Avg merge
1d 21h
Merged PRs (30d)
14

Description

What should change?

Gov.uk frontend is planning to remove support for the @import syntax. We need to make sure we are ready ahead of time otherwise future.

  1. Run dart sass
  2. do the migration
User need

No response

Proposed solution

switch @import to be @use .... as *
add with keyword

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by running Dart Sass and locate the project's uses of @import; migrate them to @use, including the proposed as * form and any required with configuration. Done means the Sass build succeeds without the deprecated syntax and the existing frontend output remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
sass
Domain
frontend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.