Skip to content

Instantly share code, notes, and snippets.

@michaek
michaek / Readme.md
Last active August 29, 2015 14:07 — forked from nex3/use.scss
A new syntax to improve @import in Sass.

@import is one of the most useful features of Sass, but it has some shortcomings. For one, newcomers are often confused that it uses the same syntax as CSS's import, and think it does the same thing. It doesn't!

An improved import utility might:

  • Avoid overloading an existing name
  • Provide variable/mixin scoping
  • Allow importing of only some elements of an included file

Simplicity should be valued above features and options.