Skip to content

Instantly share code, notes, and snippets.

Vlad Akilov vladakilov

View GitHub Profile
@vladakilov
vladakilov / color.scss
Created Nov 1, 2016
Sass color organization
View color.scss
@function vp-color($name, $variant: 'base', $alpha: 1) {
$color-spectrum: map-get($vp-colors, $name);
@if $color-spectrum {
$color: map-get($color-spectrum, $variant);
}
@if $alpha {
$color: rgba($color, $alpha);
You can’t perform that action at this time.