© Alex Libby 2021
A. LibbyGatsby E-Commercehttps://doi.org/10.1007/978-1-4842-6692-2_3

3. Styling the Shop

Alex Libby1  
(1)
RUGBY, UK
 

In Chapter 2, we focused on creating the barebones of our shop – adding in pages for a blog, a product catalog, and the like. The trouble is if we were to run our code now in a browser, I can pretty much guarantee two things: 1) it wouldn’t look that great – if indeed it ran – and 2) it wouldn’t show anything as we don’t yet have any data!

It’s time to fix the first problem – we can do that by adding in some styling across our shop. However, the sharp-eyed among you will have noticed that we’ve already added some styles into the code!

Yes, it’s one of those things we indeed have to bear in mind when using Gatsby: there ...

Get Gatsby E-Commerce: A Practical Introduction to Creating E-Commerce Sites with the Gatsby Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.