Skip to content

SassError: $color: null is not a color #12259

Answered by katzmo
mikaeldiener asked this question in Q&A
Discussion options

You must be logged in to vote

For me this issue is caused by those new lines in "foundation-sites/scss/util/_color.scss" (see #12080):

////
/// Patch to fix issue #12080

$primary-color: null;
$secondary-color: null;
$warning-color: null;
$alert-color: null;
$success-color:null;
////

I import "foundation-sites/scss/util/color" in files loaded after my "settings.scss" and "foundation-sites/scss/global" (which also includes add-foundation-colors). Now the import overrides my colors and sets them all to null.

This could probably be fixed by changing null to null !default.

Replies: 16 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@joeworkman
Comment options

@soniCaH
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joeworkman
Comment options

Comment options

You must be logged in to vote
4 replies
@joeworkman
Comment options

@joeworkman
Comment options

@kgrammer
Comment options

@joeworkman
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@joeworkman
Comment options

@joeworkman
Comment options

Answer selected by joeworkman
Comment options

You must be logged in to vote
1 reply
@katzmo
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #12257 on September 01, 2021 23:05.