Skip to content

Fix Dart Sass Deprecations#71

Merged
mkasberg merged 1 commit intomasterfrom
sass-fix
Apr 27, 2026
Merged

Fix Dart Sass Deprecations#71
mkasberg merged 1 commit intomasterfrom
sass-fix

Conversation

@mkasberg
Copy link
Copy Markdown
Collaborator

Upgrading Jekyll pulled in a newer version of Dart Sass, and we have deprecation warnings in some of our sass files. Most of them are an easy fix with an equivalent, newer syntax.

Deprecation Warning [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
22 │ $grey-color-dark:  darken($grey-color, 25%);
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    /home/mkasberg/code/opensourcecatholic.github.io/css/main.scss 22:20  root stylesheet
Deprecation Warning [color-functions]: darken() is deprecated. Suggestions:

color.scale($color, $lightness: -49.0384615385%)
color.adjust($color, $lightness: -25%)

More info: https://sass-lang.com/d/color-functions

   ╷
22 │ $grey-color-dark:  darken($grey-color, 25%);
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵

Upgrading Jekyll pulled in a newer version of Dart Sass, and we have
deprecation warnings in some of our sass files. Most of them are an easy
fix with an equivalent, newer syntax.

```
Deprecation Warning [global-builtin]: Global built-in functions are deprecated and will be removed in Dart Sass 3.0.0.
Use color.adjust instead.

More info and automated migrator: https://sass-lang.com/d/import

   ╷
22 │ $grey-color-dark:  darken($grey-color, 25%);
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
    /home/mkasberg/code/opensourcecatholic.github.io/css/main.scss 22:20  root stylesheet
Deprecation Warning [color-functions]: darken() is deprecated. Suggestions:

color.scale($color, $lightness: -49.0384615385%)
color.adjust($color, $lightness: -25%)

More info: https://sass-lang.com/d/color-functions

   ╷
22 │ $grey-color-dark:  darken($grey-color, 25%);
   │                    ^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
```
@mkasberg mkasberg marked this pull request as ready for review April 27, 2026 01:06
@mkasberg mkasberg merged commit dd9c12d into master Apr 27, 2026
1 check passed
@mkasberg mkasberg deleted the sass-fix branch April 27, 2026 01:06
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.

1 participant