handy function to setup color by name and optionally give a color schema map and setup opacity
If no color schema Map is defined on the functions params then it will use the one setup on color settings
Also you can set color opacity (IE > 8 compatible)
@function color($name, $opacity:1, $schema:$color-map) { @if map-has-key($schema, $name) { @return rgba(map-get($schema, $name),$opacity); } @else { @warn "The value #{$name} is not in the map '$schema'"; @return null; } };