ibm-frontend/gatsby-starter-carbon--deprecated

Import Carbon components

Closed this issue · 2 comments

Once the Gatsby project has been created, Carbon React components and styles must be imported to be used in creating a Gatsby site.

This issue is complete when:

  • carbon-components-react is a dependency in this repo
  • Carbon's stylesheet are imported into the demo page
  • Importing Carbon React components is straight forward without having to dive deep into node_modules for import paths (Import path resolving)

Styles are here: https://github.com/ibm-frontend/gatsby-starter-carbon/blob/master/src/layouts/index.scss#L13-L17

We should probably import the Carbon styles from the package, not unpkg.

Each component imports the relevant MD components directly. We'll need to either drop examples (where irrelevant) or update to use Carbon.

https://github.com/ibm-frontend/gatsby-starter-carbon/blob/master/src/components/About/About.jsx#L2-L3