Skip to content

refactor: replace @import with @use/@forward to remove Sass deprecation warnings - #398

Open
mohamad4j wants to merge 1 commit into
Maronato:nextfrom
mohamad4j:next
Open

refactor: replace @import with @use/@forward to remove Sass deprecation warnings#398
mohamad4j wants to merge 1 commit into
Maronato:nextfrom
mohamad4j:next

Conversation

@mohamad4j

Copy link
Copy Markdown

Summary

This PR replaces all deprecated @import statements with the new @use and @forward syntax introduced in Dart Sass.
The change removes deprecation warnings during build and aligns the codebase with the current Sass best practices.

Changes

  • Replaced @import statements with @use or @forward.
  • Namespaced variables and mixins where necessary.
  • Resolved duplicate variable conflicts (e.g., $trans-cubic-bezier) by making global mixins.
  • Verified that all styles compile correctly without warnings.

Why

  • @import is officially deprecated and will be removed in future Sass versions. Also there were many warning errors in build project
  • @use/@forward provide better scoping, prevent global leaks, and improve maintainability.

Notes

  • All tests and style builds pass successfully.
  • No breaking changes for consumers of the package.

@guhweb

guhweb commented Sep 16, 2025

Copy link
Copy Markdown

@Maronato approve this pr plz?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants