3 Automatic Sass Snippets(hmphry.com)

almost 6 years ago from Hmphry x, www.hmphry.com

  • Luke Whitehouse, almost 6 years ago (edited almost 6 years ago )

    Whats the benefit of using the $color-stack to just namespacing your variables? For example:

    $color-orange $color-orange-dark $color-orange-light
    2 points
    • Jono HerringtonJono Herrington, almost 6 years ago

      I have to admit ... I did wonder the same thing. That function did throw me for a loop when Sass already has the pre-built rgba function inside. If you just name your variables like Luke suggests and use that rgba function ... you don't have to go to the trouble of writing all the other code.

      Don't fix what ain't broke if you know what I'm saying :).

      2 points
    • Hmphry xHmphry x, almost 6 years ago

      Honestly? Some probably won't find any benefit. I find it beneficial because it fits a system I am accustomed to. Something about writing color(orange) is nicer to me than $color-orange.

      3 points