// theme1.scss
$palettes: (
(bg: red, text: pink)
(bg: blue, text: cyan)
(bg: green, text: lime)
);
@import 'ui';
// theme2.scss
$palettes: (
(bg: beige, text: gold)
(bg: mauve, text: purple)
(bg: tan, text: brown)
);
@import 'ui';
// _ui.scss
@for $i from 1 through 3 {
$palette: nth($palettes, $i);
body.palette-#{$i} {
background: map-get($palette, bg);
color: map-get($palette, text);
}
}