title: Ruby on Rails - SLIM - SCSS - inject ruby variable
body: <p>How do I set a SCSS variable based on ruby variable value?</p>
  
  <p>Following code is working for CSS but not for SCSS:</p>
  
  <pre><code>- primaryColor = app.theme_variables['primary-color'];
  = content_for(:after_head_script) do
    css:
     .primaryColor {
       color: #{primaryColor};
     }
  </code></pre>
  
  <p>If I do same thing with SCSS: </p>
  
  <pre><code>- primaryColor = app.theme_variables['primary-color'];
  = content_for(:after_head_script) do
    scss:
      $color = #{primaryColor}
  
      .primaryColor {
        color: $color;
      }
  </code></pre>
  
  <p>output is as follows:</p>
  
  <pre><code>.primaryColor{color:primaryColor}
  </code></pre>
  
  <p>So any idea on how to inject variable into SCSS?</p>