Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to overwrite global variables in Sass.
// Use `!global` when assigning it.
$day: "Monday :(";
@mixin update-day() {
$day: "Friday!" !global;
};
.today {
@include update-day();
day: $day;
}
.today {
day: "Friday!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.