bensmithett/style

Scope variables to mixins instead of using globals

bensmithett opened this issue · 1 comments

Global variables are kinda the Sass way. I'd like to try scoping every single variable with mixins, then explicitly include them where required.

=colors
  $green: #0f0

.some-module
  +colors
  color: $green

I wonder if there needs to be some distinction in the project structure between mixins that just import variables and those that actually generate CSS.

Nah, this will be done better in #6