Skip to content

Instantly share code, notes, and snippets.

@slothelle
Created November 20, 2014 19:47
Show Gist options
  • Save slothelle/614748d84772ececa7ed to your computer and use it in GitHub Desktop.
Save slothelle/614748d84772ececa7ed to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$colors: (
_0: rgb(48,61,69),
_1: rgb(210,158,105),
_2: rgb(93,188,174),
_3: rgb(242,101,51),
_4: rgb(242,69,51),
_5: rgb(245,69,69),
_6: rgb(246,140,6),
_7: rgb(0,174,219)
);
$complementaryColors: ();
@for $i from 8 through 15 {
$pos: $i;
$newPos: $pos - 8;
$newMap: (_#{$i}: complement(map_get($colors, _#{$newPos})));
map_merge($complementaryColors, $newMap);
}
Invalid CSS after "...olors, $newMap)": expected "{", was ";"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment