0

I have something like this

$theme: "default";
@import "styles/themes/#{$theme}/main";

But it does not work, maybe in import sass have problem?

Miomir Dancevic
  • 6,726
  • 15
  • 74
  • 142

1 Answers1

2

It's not working according to the Sass @import docs: "Imports may contain #{} interpolation, but only with certain restrictions. It’s not possible to dynamically import a Sass file based on a variable; interpolation is only for CSS imports. As such, it only works with url() imports."

anderssonola
  • 2,195
  • 16
  • 29