title: SASS output multiple different files by variables
body: <p>I am working on a project that involves different themes for each subpage. Each subpage has the exact same HTML markup as a frame, but on every subpage, the same elements - such as headings - must have different colors.</p>
  
  <p>The way I am tackling this problem is to have every single declaration that differs on subpages in their corresponding CSS files, such as red.css or blue.css. These files contain only the color declarations of the selectors that must be different, so font-sizes and everything else is in the global CSS file.</p>
  
  <p>What I am hoping to accomplish is to have the color variables declared in a file and create a SCSS frame for the theme CSS files that include the corresponding variables for the CSS declarations. In a more clear way:</p>
  
  <p>Example of the variable declarations:</p>
  
  <pre><code>$red: red;
  $blue: blue;
  </code></pre>
  
  <p>And the theme frame SCSS file should look something like this:</p>
  
  <pre><code>h1 {
     color: $heading-color;
  }
  </code></pre>
  
  <p>And the goal is to make SASS loop through the variables and create an X number of different CSS files that have the same frame, but each of them should have their corresponding values at the right places, so blue.css should have the blue values, red should have the red values, etc.</p>
  
  <p>Is this possible to do? What I'm trying to avoid is to make X SCSS files with the exact frame in it, but with different values for their values, as this means X number of editing every time something changes.</p>