Skip to content

Commit 0caea8b

Browse files
gurpreet-hanjraDSchau
authored andcommitted
chore(docs): reword CSS in JS docs for clarity (#11439)
<!-- Have any questions? Check out the contributing docs at https://gatsby.app/contribute, or ask in this Pull Request and a Gatsby maintainer will be happy to help :) --> ## Description Gives clear info about installation of libraries, helpers and gatsby plugins. Adds review comments from emotion docs. ## Related Issues <!-- Link to the issue that is fixed by this PR (if there is one) e.g. Fixes #1234, Addresses #1234, Related to #1234, etc. -->
1 parent 67daa2d commit 0caea8b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/docs/emotion.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
title: Emotion
33
---
44

5-
In this guide, we'll walk through setting up a site with the CSS-in-JS library [Emotion](https://emotion.sh).
5+
In this guide, you will learn how to set up a site with the CSS-in-JS library [Emotion](https://emotion.sh).
66

77
Emotion is a performant and flexible CSS-in-JS library. Building on many other CSS-in-JS libraries, it allows you to style apps quickly with string or object styles. It has predictable composition to avoid specificity issues with CSS. With source maps and labels, Emotion has a great developer experience and great performance with heavy caching in production.
88

9-
[Server side rendering](https://emotion.sh/docs/ssr) works out of the box in Emotion. We can use React’s `renderToString` or `renderToNodeStream` methods directly without any extra configuration. `extractCritical` feature removes unused rules that were created with emotion and helps loading pages faster.
9+
[Server side rendering](https://emotion.sh/docs/ssr) works out of the box in Emotion. You can use React’s `renderToString` or `renderToNodeStream` methods directly without any extra configuration. `extractCritical` feature removes unused rules that were created with emotion and helps loading pages faster.
1010

1111
First, open a new terminal window and run the following to create a new site:
1212

1313
```shell
1414
npx gatsby new emotion-tutorial https://github.com/gatsbyjs/gatsby-starter-hello-world
1515
```
1616

17-
Second, we'll install the necessary dependencies for Emotion and Gatsby.
17+
Second, install the necessary dependencies for Emotion and Gatsby.
1818

1919
```shell
2020
npm install --save gatsby-plugin-emotion @emotion/core @emotion/styled

docs/docs/glamor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Glamor
33
---
44

5-
In this guide, we'll walk through setting up a site with the CSS-in-JS library [Glamor](https://github.com/threepointone/glamor).
5+
In this guide, you will learn setting up a site with the CSS-in-JS library [Glamor](https://github.com/threepointone/glamor).
66

77
Glamor is not actively maintained, the maintainer recommends using [Emotion](/docs/emotion).
88

@@ -19,7 +19,7 @@ First, open a new terminal window and run the following to create a new site:
1919
npx gatsby new glamor-tutorial https://github.com/gatsbyjs/gatsby-starter-hello-world
2020
```
2121

22-
Second, install the Gatsby plugin for Glamor.
22+
Second, install the necessary dependencies for Glamor and Gatsby.
2323

2424
```shell
2525
npm install --save gatsby-plugin-glamor glamor

docs/docs/styled-components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Styled Components
33
---
44

5-
In this guide, we'll walk through setting up a site with the CSS-in-JS library [Styled Components](https://www.styled-components.com/).
5+
In this guide, you will learn setting up a site with the CSS-in-JS library [Styled Components](https://www.styled-components.com/).
66

77
Styled Components lets you use actual CSS syntax inside your components. Styled Components is a variant on "CSS-in-JS"—which solves many of the problems with traditional CSS.
88

@@ -20,7 +20,7 @@ First, open a new terminal window and run the following to create a new site:
2020
npx gatsby new styled-components-tutorial https://github.com/gatsbyjs/gatsby-starter-hello-world
2121
```
2222
23-
Next, we'll install the necessary dependencies for `styled-components`, including the Gatsby plugin.
23+
Second, install the necessary dependencies for `styled-components`, including the Gatsby plugin.
2424
2525
```shell
2626
npm install --save gatsby-plugin-styled-components styled-components babel-plugin-styled-components

0 commit comments

Comments
 (0)