me-bootstrap
Version:
11 lines (8 loc) • 361 B
text/stylus
// monochrome( color )
// returns monochromatic variations of given color
me-monochrome( color )
baseLightness = lightness( color )
first = adjust( color, "lightness", baseLightness * 0.666666666666666 )
second = adjust( color, "lightness", baseLightness * 0.333333333333333 )
( first second )
monochrome = me-monochrome unless me-no-conflict