ComputerMinds Shares Quick Guide to Fixing Sass @import Deprecation Warnings
In a new blog post, ComputerMinds developer Nathan Page offers Drupal themers a quick fix for the deprecation of @import rules in Sass. These rules will be removed entirely in Dart Sass 3.0.0, and projects running Sass 1.80 or newer already show warnings.
Page recommends using the official Sass migrator tool, which automates the shift from @import to @use. Developers can install it via npm and run the sass-migrator module command against each top-level .scss file. Flags like --migrate-deps and --verbose ensure child stylesheets are handled and errors are clear.
The guide highlights special cases, such as the Susy grid system, which requires manual updates. Page stresses careful validation, testing compilation outputs, and reviewing git diff results to confirm expected changes. While most updates are trivial, thorough checks help avoid regressions.
Page’s walkthrough emphasizes that the process takes minutes, not hours, and leaves Drupal themes ready for Sass 3.0. Full details are available on ComputerMinds’ blog and in the Sass documentation.
