Skip to content

Commit

Permalink
Update creating-global-styles.md (#7699)
Browse files Browse the repository at this point in the history
* Update creating-global-styles.md

Added new wording around importing global styles based on [this comment](#7413 (comment)) 

Closes #7447

* Update creating-global-styles.md
  • Loading branch information
erinfox authored and m-allanson committed Aug 28, 2018
1 parent 605759d commit 84959bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/docs/creating-global-styles.md
Expand Up @@ -25,6 +25,9 @@ a {

Then, include the stylesheet in your site's `gatsby-browser.js` file.

> _Note: This solution works when including css as those styles are extracted when building the js but not for css-in-js.
Including styles in a layout component or a global-styles.js is your best bet for that._

```javascript
import "./src/styles/global.css"

Expand Down

0 comments on commit 84959bd

Please sign in to comment.