Need help with gatsby-theme-storefront-shopify?
Click the โ€œchatโ€ button below for chat support from the developer who created it, or find similar developers for support.

About the developer

209 Stars 46 Forks Mozilla Public License 2.0 138 Commits 1 Opened issues


Create a Shopify store with Gatsby JS ๐Ÿ›๏ธ ๐Ÿ›’

Services available


Need anything else?

Contributors list


Create a Shopify store with Gatsby JS

Gatsby JS theme to create a Shopify headless eCommerce PWA store.

GitHub package.json version GitHub

Please see our demo, speed test video and create a Gatsby JS based Shopify store with us.

If you like Gatsby Storefront please give us a star on GitHub โญ ๐Ÿ‘ ๐Ÿ˜€


Exceptional Lighthouse audit results:

Please, see the demo here:

How fast is Gatsby Storefront?

Please, see our speed test video:

The tests are made with puppeteer based test script that emulates a customer journey and counts time necessary to load the pages:


You can use the starter package for fatster setup process.

gatsby new store gatsbystorefront/gatsby-starter-storefront-shopify

This downloads the files and initializes the site by running npm install.

Setup guide

Install CLI

Install the Gatsby CLI:

npm install -g gatsby-cli

Create store site

Create new gatsby site for your web store:

gatsby new store

Install Gatsby Storefront

Install Gatsby Storefront NPM package:

npm install @gatsbystorefront/gatsby-theme-storefront-shopify



file in your store's root directory with your Shopify storename ( and access token (your token must have full permissions on Storefront API).

In case you are using Gatsby Storefront API to enable connections with external data sources (Contentful, Yotpo), please add additional configuration variables to your


Enable theme


plugin in your
require("dotenv").config({ path: `.env` })
const flattenMenu = require("@gatsbystorefront/gatsby-theme-storefront-shopify/src/utils/flattenMenu")

module.exports = { plugins: [ { resolve: '@gatsbystorefront/gatsby-theme-storefront-shopify', options: { shopify: { shopName: process.env.GATSBY_SHOPIFY_SHOP_NAME, accessToken: process.env.GATSBY_SHOPIFY_ACCESS_TOKEN, }, gatsbyStorefrontApi: { apiUrl: process.env.GATSBYSTOREFRONT_API_URL, accessToken: process.env.GATSBYSTOREFRONT_ACCESS_TOKEN, }, useGatsbyStorefrontApi: false, // Set to 'true' in case you are using Gatsby Storefront API to enable connections with external data sources basePath: '/', productImagesCarouselProps: { // See: naturalSlideWidth: 500, naturalSlideHeight: 500, }, product: { maxDescriptionSectionsNumber: 10, }, manifest: { // web app manifest options to be passed to 'gatsby-plugin-manifest' installed inside theme name: 'Gatsby Storefront Demo Store', short_name: 'Gatsby Storefront', start_url: '/', background_color: '#fff', theme_color: '#333', display: 'standalone', icon: 'src/images/shopping_bag.svg', icon_options: { purpose: 'any maskable', }, cache_busting_mode: 'none', }, }, }, ], siteMetadata: { siteUrl: '', gatsbyStorefrontConfig: { // Your Gatsby Storefront configuration // Copy exmaple from the starter: //



Shopify content requirement

Please make sure that your Shopify web store has at least one Collection, one Product (associated with Collection) and store Policies added before runing your Gatsby Storefront, as it is neccesary for correct API exposure.


Configuration file

Main theme configuration options are located in

object in
file. Use it to:
  • Configure main store parameters.
  • Set up main menu and footer links.

Theme shadowing

  • Use shadowing for making necessary changes in
  • Use shadowing of
    to change theme colors in accordance with theme-ui specification.

For code example please see our shadowing exmaple repo.

Note: In order to work in shadowed components GrapshQL queries have to be renamed.


gatsby develop

Will start a hot-reloading development environment accessible by default at localhost:8000.


gatsby build

Will perform an optimized production build for your site, generating static HTML and per-route JavaScript code bundles.


gatsby serve

Starts a local HTML server for testing your built site. Remember to build your site using

gatsby build
before using this command.


After making a build, upload

directory to your web host. See additional instructions here.

Thank you!

Thank you! And we would love to hear your feedback [๐Ÿ˜๐Ÿ˜œ๐Ÿ˜ฎ๐Ÿ˜๐Ÿ˜ค].

Expolore Gatsby Storefront


Thanks goes to these wonderful people (emoji key):


๐Ÿ’ป ๐ŸŽจ ๐Ÿ“– ๐Ÿ’ก ๐Ÿค” ๐Ÿ“† ๐Ÿ‘€


๐Ÿ› ๐Ÿ’ป

Adam Chilton


This project follows the all-contributors specification. Contributions of any kind welcome!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.