Skip to content

Conversation

@adebiyial
Copy link
Contributor

This PR goes through the scss warnings and deprecations from the syntax and updates them.

  • Migrated the codebase from Sass @import to the module system (@use and @forward) to align with Sass deprecation and prepare for Dart Sass 3.0.0.

  • Updated index files (variables/index.scss and mixins/index.scss) to use @forward for re-exporting partials.

  • Mixin files that import variables (_typography.scss, _responsive.scss, _container.scss, _shadows.scss, _border-radius.scss, _images.scss) now use @use with namespaced variables (e.g., typography.$font-size-xl, spacing.$grid-spacing-mobile). Updated next.config.js to use @use ... as * in prependData to maintain global variable/mixin availability.

  • Removed redundant @import statements from component files that were already covered by prependData. Fixed files loaded via @use (_container.scss and _typography.scss) to explicitly import their dependencies.

  • Also resolved mixed declarations warnings by wrapping declarations that appear after mixins or nested rules in & {} blocks. This preserves the intended CSS cascade order (mixins first, then overrides) and follows Sass recommendations.

  • This also fixes the scss console errors!

Updates the Next.js dependency from version 15.3.7 to 15.3.8.

This resolves potential issues and incorporates improvements introduced in the newer version.
@adebiyial
Copy link
Contributor Author

@fgyimah 👋.

This PR has quite a number of changes. But, it's basically resolving the SCSS issues in the console

Copy link
Contributor

@fgyimah fgyimah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! 👍🏾

@adebiyial
Copy link
Contributor Author

@fgyimah I sync'd this branch with main and fixed the conflict. This is good to merge now 💪

@fgyimah fgyimah merged commit 40b5645 into prezly:main Jan 8, 2026
1 check passed
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