Skip to content

@import and global built-in functions are deprecated in Sass #2781

Open
@wolfy1339

Description

@wolfy1339

Describe the bug
Sass is deprecating the @import and global built-in functions
https://sass-lang.com/documentation/breaking-changes/import/
https://sass-lang.com/documentation/breaking-changes/color-functions/

To Reproduce
Steps to reproduce the behavior:

  1. Create a new project that require @primer/css from NPM
  2. Install the Dart Sass compiler (npm i sass)
  3. Create a new SCSS file that imports @primer/css
  4. Try to compile that file
  5. See deprecation notices

There is an automatic migration tool

$ npm install -g sass-migrator
$ sass-migrator module --migrate-deps your-entrypoint.scss

See sass/sass#3513
See also other affected projects, twbs/bootstrap#40962

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions