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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -