reagent-project / reagent-template

A Leiningen template for projects using Reagent.
MIT License
394 stars 55 forks source link

Issues with scss maps #114

Closed andreortiz82 closed 8 years ago

andreortiz82 commented 8 years ago

Not sure why but SCSS maps don't seem to be working. Maybe try it on your side to ensure I'm not crazy.

$colors: (
  "red": $red,
  "orange": $orange,
  "yellow": $yellow,
  "green": $green,
  "blue": $blue,
  "indigo": $indigo,
  "violet": $violet,
  "white": $white,
  "light": $light,
  "ccc": $ccc,
  "black": $black,
  "halfblack": $halfblack,
  "halfwhite": $halfwhite,
  "navy": $navy,
  "highlight": $highlight
);

@each $class, $color in $colors {
  .bg-#{$class} { background: $color; }
  .#{$class} { color: $color; }
}

The error is: Sass::SyntaxError: Invalid CSS after " "red"": expected ")", was ": $red," expected at /Users/andreortiz/.m2/repository/org/rubygems/sass/3.2.14/sass-3.2.14.jar!/gems/sass-3.2.14/lib/sass/scss/parser.rb:1148.... Compilation failed:org.jruby.embed.InvokeFailedException: (SyntaxError) Invalid CSS after " "red"": expected ")", was ": $red,"

I also had similar issues when trying to use Bower to import 3rd party SCSS files like bourbon and neat.

Just curious if anyone else are having these issues. Thanks!

andreortiz82 commented 8 years ago

The version of SASS being used doesn't support maps.