title: How to get access to CSS values from a styled component (React)?
body: <p>I want to access the CSS values I assigned to a styled component in a function. How would I do so?</p>
  
  <p>For example:</p>
  
  <pre><code>const Hello = styled.p `
     font-size: 10px;
  `;
  
  
  getFontSize = () =&gt; {
  
  }
  </code></pre>
  
  <p>I want to log the font size of the component Hello in the function getFontSize(). I have tried using refs and InnerRefs but no luck. </p>