Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sass lighten() and darken() is now deprecated #5109

Open
Fallup opened this issue Sep 23, 2024 · 0 comments
Open

sass lighten() and darken() is now deprecated #5109

Fallup opened this issue Sep 23, 2024 · 0 comments

Comments

@Fallup
Copy link

Fallup commented Sep 23, 2024

Using Vite v5.4.7 we started to get these errors during build time:
Deprecation Warning: darken() is deprecated.
Deprecation Warning: lighten() is deprecated.

This is due to Dart Sass 1.79.0. starting emitting these warnings as a heads up since the legacy JS API is now deprecated and will be removed in Dart Sass 2.0.0.

What to do
darken() and lighten() should be replaced by color.adjust

Read more at https://sass-lang.com/documentation/breaking-changes/legacy-js-api/

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

No branches or pull requests

1 participant