title: Embed CSS attribute in HTML
body: <p>I have the color theme of a website I'm working on change on refresh and would like to display the css background color attribute in my HTML. Is that possible?</p>
  
  <p>i.e.</p>
  
  <pre><code>&lt;footer&gt;The color of the moment is &lt;insert the background color attribute&gt;. Refresh for a makeover&lt;/footer&gt;
  </code></pre>
  
  <p>would display something like</p>
  
  <p>"The color of the moment is #DB0C0C. Refresh for a makeover"</p>
  
  <p>Since the hex color changes based on the style sheet loaded, I don't want to hardcode it. If I had a ruby variable @color which = #ff0000 and wanted to display it in html I could do something like </p>
  
  <pre><code>&lt;%= @color%&gt;
  </code></pre>
  
  <p>I'm wondering if there is any way to do something similar to access a CSS attribute.</p>