Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): change gatsby-config mention for global CSS import #23245

Merged
merged 2 commits into from
Apr 20, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix gatsby-config mention
  • Loading branch information
Js-Brecht committed Apr 17, 2020
commit 1c7031a034b8558a4a3a76d1801146776c8e9d29
8 changes: 4 additions & 4 deletions docs/docs/recipes/styling-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ p {
import "./src/styles/global.css"
```

> **Note:** You can also make use of `require('./src/styles/global.css')` to import the global CSS file in your `gatsby-config.js` file.
> **Note:** You can also make use of `require('./src/styles/global.css')` to import the global CSS file in your `gatsby-browser.js` file.

3. Run `gatsby-develop` to observe the global styling being applied across your site.

Expand Down Expand Up @@ -100,7 +100,7 @@ export default () => <Layout>Hello world!</Layout>

```javascript:title=gatsby-config.js
module.exports = {
plugins: [`gatsby-plugin-styled-components`],
plugins: [`gatsby-plugin-styled-components`]
}
```

Expand Down Expand Up @@ -326,7 +326,7 @@ npm install --save gatsby-plugin-emotion @emotion/core @emotion/styled

```javascript:title=gatsby-config.js
module.exports = {
plugins: [`gatsby-plugin-emotion`],
plugins: [`gatsby-plugin-emotion`]
}
```

Expand All @@ -343,7 +343,7 @@ export default () => (
<p
css={{
background: "pink",
color: "blue",
color: "blue"
}}
>
This page is using Emotion.
Expand Down