Skip to content

maint: replace deprecated Sass @import with @use#210

Merged
mmcky merged 1 commit into
mainfrom
maint/sass-use-directives
Jun 10, 2026
Merged

maint: replace deprecated Sass @import with @use#210
mmcky merged 1 commit into
mainfrom
maint/sass-use-directives

Conversation

@mmcky

@mmcky mmcky commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #205 — completes the Sass follow-up from #199. Now that production builds with the Gemfile's Jekyll 4.4 / Dart Sass toolchain (instead of the legacy Pages sandbox), the modern module directives can be used.

Changes

assets/main.scss: @import 'misc' / @import 'timeline'@use 'misc' / @use 'timeline'. The plain-CSS @import url(...) for Google Fonts is untouched — that form is not deprecated, and Dart Sass hoists it to the top of the compiled output where browsers require it.

Both partials are pure CSS rules — they define no Sass variables and reference none from main.scss — so @use namespacing changes nothing.

Verified

  • Compiled _site/assets/main.css is byte-identical before and after the change.
  • The build log drops all DEPRECATION WARNING [import] noise (previously one per @import per build).

Note on the other #199 follow-up

"Drop the github-pages gem" turned out to be already done — the Gemfile has run plain jekyll ~> 4.4 since the redesign. With this PR, all #199 follow-ups are complete.

🤖 Generated with Claude Code

Note: #205 also mentions restoring @forward and converting @import rules inside assets/sass/ — neither applies: the original pre-workaround code (65163f9) never used @forward, and the partials contain no @import rules. This PR reverts exactly what the workaround changed.

Sass @import is deprecated and will be removed in Dart Sass 3.0. The
two partials define no variables and share none with main.scss, so
@use is a drop-in: compiled main.css is byte-identical and the build
log loses all deprecation warnings.

Completes the Sass follow-up from #199, now that production builds
with the Gemfile's Jekyll 4.4 / Dart Sass toolchain.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 10, 2026 02:50
@netlify

netlify Bot commented Jun 10, 2026

Copy link
Copy Markdown

Deploy Preview for grand-swan-ca5201 ready!

Name Link
🔨 Latest commit e2ead89
🔍 Latest deploy log https://app.netlify.com/projects/grand-swan-ca5201/deploys/6a28d101ae1cd50008d4dcc7
😎 Deploy Preview https://deploy-preview-210--grand-swan-ca5201.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates the site’s main Sass entrypoint to use modern Dart Sass module directives now that the production build runs with the repo’s Jekyll 4.4 toolchain, removing deprecated Sass @import usage.

Changes:

  • Replaced Sass @import 'misc' and @import 'timeline' with @use equivalents in assets/main.scss.
  • Left the plain-CSS @import url(...) (Google Fonts) untouched.

@mmcky mmcky merged commit 034aba1 into main Jun 10, 2026
6 checks passed
@mmcky mmcky deleted the maint/sass-use-directives branch June 10, 2026 02:59
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.

Modernise SCSS: restore Dart Sass @use/@forward after GH Actions deploy migration

2 participants