title: Using Javascript Variables with styled-components
body: <p>I'm using <a href="https://github.com/styled-components/styled-components" rel="noreferrer">styled-components</a> to build my components. All style properties which accept custom values are reused throughout my components (as it should be). With that in mind, I'd like to use some sort of global variables so that updates will propagate to all components without needing to update each style individually.</p>
  
  <p>Something like this:</p>
  
  <pre><code>// Variables.js
  
  var fontSizeMedium = 16px;
  
  // Section.js
  
  const Section = styled.section`
    font-size: ${fontSizeMedium};
  `;
  
  // Button.js
  
  const Button = styled.button`
    font-size: ${fontSizeMedium};
  `;
  
  // Label.js
  
  const Label = styled.span`
    font-size: ${fontSizeMedium};
  `;
  </code></pre>
  
  <p>I guess I'm getting the syntax wrong though? Also, I know global variables are not recommended in Javascript land, but in design land reusing styles across components is an absolute must. What are the trade-offs here?</p>