Fork me on GitHub

_tools.colors.scss

Source code

View source

Package Name

a73-inuit-colors-tools

Version

0.1.0

Dependences

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;
    }
};