As an example could have !bgcol = rhsl(23,50,50) ( a green say)
.lightbg = !bgcol + rhsl(0,0,20) ( for light green) .darkbg = !bgcol - rhsl(0,0,20) (for dark green) The advantage is now that i can define a websites colour scheme by just changing one colour. One could go further and define rcomp() or other colour functions to calculate a complementary colour for instance. On Jun 13, 4:33 pm, rebo <[EMAIL PROTECTED]> wrote: > Just wondering if you could add a SASS command so that colours can be > defined in HSL (hue,saturation, lightness) format, which then gets > converted to rgb for the css (so it works in all browsers). This > would be useful so that one could define a colour with a range of > lightness's using the colour arithmetic in SASS. > > thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
