sass - how to define grayscale out of pure white or black -
suppose have defined $color-white: #ffffff
and/or $color-black: #000000
in variables.sass
.
how can define different shades of grey scale using either sass or compass helpers?
use color functions: http://sass-lang.com/docs/yardoc/sass/script/functions.html#other_color_functions
color: darken($color-white, 25%);
or
color: lighten($color-black, 25%);
toy numeric value until heart content.
Comments
Post a Comment