Skip to content

Instantly share code, notes, and snippets.

@spazione
Created March 9, 2022 15:05
Show Gist options
  • Save spazione/c8c51d1f58822d3c29ed5a8c0af76606 to your computer and use it in GitHub Desktop.
Save spazione/c8c51d1f58822d3c29ed5a8c0af76606 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$colorsmap: (
1: a,
2: b,
3: c
);
.colors {
@each $key, $value in $colorsmap {
--#{$key}: --#{$value};
}
}
@mixin themes($themes...) {
@each $theme in $themes {
theme: #{$theme};
}
}
.themes {
@include themes(dark, light);
}
.colors {
--1: --a;
--2: --b;
--3: --c;
}
.themes {
theme: dark;
theme: light;
}
{
"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