When using SASS how can I import a file from a different directory?

UPDATE: Please consider Mikka’s answer first – it should work without flaw if you’re only interested in including subdirectories. My answer is specific to including directories other than subdirectories, but works for those, too. But: It’s not the idiomatic way to do it. Looks like some changes to SASS have made possible what you’ve initially … Read more

Is it possible to import a whole directory in sass using @import?

If you are using Sass in a Rails project, the sass-rails gem, https://github.com/rails/sass-rails, features glob importing. @import “foo/*” // import all the files in the foo folder @import “bar/**/*” // import all the files in the bar tree To answer the concern in another answer “If you import a directory, how can you determine import … Read more