Skip to content

Instantly share code, notes, and snippets.

@mdo
Created Sep 15, 2021
Embed
What would you like to do?
Generated by SassMeister.com.
@function map-diff($map1, $map2) {
$map1-keys: map.keys($map1);
@each $key in $map1-keys {
$map2: map.remove($map2, $key);
}
@return $map2;
}
$theme-colors: (
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"danger": "",
"light": "",
"dark": ""
);
$expected-theme-colors: (
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"danger": "",
"light": "",
"dark": "",
"custom": ""
);
@debug map-diff($theme-colors, $expected-theme-colors);
@map-diff ($theme-colors, $expected-theme-colors);
{
"sass": {
"compiler": "dart-sass/1.32.12",
"extensions": {},
"syntax": "SCSS",
"outputStyle": "expanded"
},
"autoprefixer": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment