Open
Description
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:
- Create a new project that require
@primer/css
from NPM - Install the Dart Sass compiler (
npm i sass
) - Create a new SCSS file that imports
@primer/css
- Try to compile that file
- 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