title: Import CSS File to Styled Component
body: <p>Is there a way to import a CSS file into a styled component?</p>
  
  <p>One of my dependencies, <a href="https://github.com/zenoamaro/react-quill" rel="noreferrer">React Quill Editor</a>, is themeable by importing their CSS as a base and applying changes on top of it. All of my components are styled components, and I'd like to keep the CSS localized to the JS component rather than import the CSS as a 'global' style.</p>
  
  <p>Right now I've take to copying their CSS into my own file in the following form.</p>
  
  <p>I've written a brief example below.</p>
  
  <pre><code>/** editorCSS.js **/
  import { css } from 'styled-components';
  export default css`
  /* copied CSS here */
  
  .class-to-extend {
     color: green;
  }
  `
  
  
  /** EditorComponent.js **/ 
  import styled from 'styled-components';
  import ReactQuill from 'react-quill';
  import editorCSS from './editorCSS';
  
  const StyledReactQuill = styled(ReactQuill)`
      ${editorCSS}
      /** Additional customization if necessary (e.g. positioning) */
  `
  export default StyledReactQuill;
  `
  </code></pre>
  
  <p>I'd much rather import reference their css file in the scope of the styled component vs copying it.</p>
  
  <p>If I do <code>import ReactQuillCSS from 'react-quill/dist/quill.snow.css';</code> it will still apply my css globally due to the <code>css-loader</code> plugin.</p>
  
  <p>Best,
  Daniel</p>