Skip to content

Instantly share code, notes, and snippets.

@jonleopard
Created April 5, 2018 06:49
Show Gist options
  • Save jonleopard/59286e53d5f9bb1f1e8982d789102a90 to your computer and use it in GitHub Desktop.
Save jonleopard/59286e53d5f9bb1f1e8982d789102a90 to your computer and use it in GitHub Desktop.
Some examples for injectGlobal
// Normalize.css
import { injectGlobal } from 'styled-components'
import styledNormalize from 'styled-normalize'
injectGlobal`
${styledNormalize}
`
// Tachyons
import { injectGlobal } from 'styled-components'
import tachyons from 'tachyons/css/tachyons.min.css'
injectGlobal`
${tachyons}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment