const css = require('../../styles/style')

const template = `
  <style>
  ${css}
  </style>
`

const injectStyles = () => {
  document.head.insertAdjacentHTML( 'afterbegin', template)
}

export default injectStyles

const css = require('../../styles/style')

const injectStyles = () => {
  const styleEl = document.createElement('style')
  styleEl.innerText = css
  document.head.appendChild(styleEl)
}

export default injectStyles

change style injection