Sass Deprecation Warning from _theme-colors.scss in older projects #80
evanwill
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Debugging note for older versions of CB templates, projects created before May 2022 (this does NOT apply to more recent projects)-->
you may get a warning while building the site saying:
Deprecation Warning: Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
This will not break your site (at this point)! If you want to fix the issue, open up the file "_sass/_theme-colors.scss". On line 15, look for:
$yiq: (($r * 299) + ($g * 587) + ($b * 114)) / 1000;
fix that line by adding
calc( )
around the function, like:$yiq: calc((($r * 299) + ($g * 587) + ($b * 114)) / 1000);
Alternatively, you can migrate your metadata and configurations to a newer version of the template which includes updated Bootstrap and color theming!
Beta Was this translation helpful? Give feedback.
All reactions