|
1 | 1 | # Setup Gatsby with Chakra UI
|
2 | 2 |
|
3 |
| -[Chakra UI](https://chakra-ui.com/) provides a set of accessible, reusable, and composable React components that make it super easy to create websites and apps. |
| 3 | +[Chakra UI](https://chakra-ui.com/) is a simple, modular and accessible component library that gives you the building blocks you need to build your React applications. |
4 | 4 |
|
5 |
| -This recipes sets up and configures [gatsby-plugin-chakra-ui](https://www.gatsbyjs.com/plugins/gatsby-plugin-chakra-ui/) by installing it's dependencies and shadowing `theme.js` file to create a custom theme. |
| 5 | +This recipes sets up and configures [@chakra-ui/gatsby-plugin](https://www.gatsbyjs.com/plugins/@chakra-ui/gatsby-plugin/) by installing it's dependencies and shadowing `theme.js` file to create a custom theme. |
6 | 6 |
|
7 | 7 | ---
|
8 | 8 |
|
9 | 9 | ## Installs necessary NPM packages
|
10 | 10 |
|
11 |
| -<NPMPackage name="@emotion/react" /> |
| 11 | +<NPMPackage name="framer-motion" /> |
12 | 12 | <NPMPackage name="@emotion/styled" />
|
13 |
| -<NPMPackage name="@chakra-ui/core" /> |
14 |
| -<NPMPackage name="gatsby-plugin-chakra-ui" /> |
| 13 | +<NPMPackage name="@emotion/react" /> |
| 14 | +<NPMPackage name="@chakra-ui/react" /> |
| 15 | +<NPMPackage name="@chakra-ui/gatsby-plugin" /> |
15 | 16 |
|
16 | 17 | ---
|
17 | 18 |
|
18 |
| -## Installs `gatsby-plugin-chakra-ui` in `gatsby-config.js` |
| 19 | +## Installs `@chakra-ui/gatsby-plugin` in `gatsby-config.js` |
19 | 20 |
|
20 |
| -<GatsbyPlugin name="gatsby-plugin-chakra-ui" /> |
| 21 | +<GatsbyPlugin name="@chakra-ui/gatsby-plugin" /> |
21 | 22 |
|
22 | 23 | ---
|
23 | 24 |
|
24 |
| -## Creates gatsby-plugin-chakra-ui `theme.js` file so you can customize your own global styles |
| 25 | +## Creates @chakra-ui/gatsby-plugin `theme.js` file so you can customize your own global styles |
25 | 26 |
|
26 |
| -<GatsbyShadowFile theme="gatsby-plugin-chakra-ui" path="src/theme.js" /> |
| 27 | +<GatsbyShadowFile theme="@chakra-ui/gatsby-plugin" path="src/theme.js" /> |
27 | 28 |
|
28 | 29 | ---
|
29 | 30 |
|
30 | 31 | ## Once you've installed this recipe, you're ready to get started!
|
31 | 32 |
|
32 |
| -- [Learn more about plugin options](https://github.com/chakra-ui/chakra-ui/tree/develop/tooling/gatsby-plugin-chakra-ui#plugin-options) |
33 |
| -- [Read more about Chakra UI on the official Chakra docs site](https://chakra-ui.com/getting-started) |
| 33 | +- [Learn more about plugin options](https://github.com/chakra-ui/chakra-ui/tree/develop/tooling/gatsby-plugin#plugin-options) |
| 34 | +- [Read more about Chakra UI on the official Chakra docs site](https://chakra-ui.com/docs/getting-started) |
0 commit comments