Skip to content

Instantly share code, notes, and snippets.

@mdo
Created September 15, 2021 06:08
Show Gist options
  • Save mdo/b4c8d7e8078672ce36a59ebb9904fe36 to your computer and use it in GitHub Desktop.
Save mdo/b4c8d7e8078672ce36a59ebb9904fe36 to your computer and use it in GitHub Desktop.
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