ComputerMinds Shares Quick Guide to Fixing Sass @import Deprecation Warnings

Coding Screen
Sebastian Willius / Unsplash

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.

Reference: Fixing Sass @import deprecation warnings, ComputerMinds (17 September 2025)

Disclosure: This content is produced with the assistance of AI.

Disclaimer: The opinions expressed in this story do not necessarily represent that of TheDropTimes. We regularly share third-party blog posts that feature Drupal in good faith. TDT recommends Reader's discretion while consuming such content, as the veracity/authenticity of the story depends on the blogger and their motives. 

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Upcoming Events

Latest Opportunities