Introducing Gatsby Themes
summary
Gatsby Themes let you package a full Gatsby site as an npm module so teams reuse config, transformers and components instead of copy/paste. A theme is just a Gatsby config you require with three lines of code and optional options, and you can override any file by placing it at src/components/gatsby-theme-blog/bio.js using component shadowing. Themes expose lifecycles like onCreatePage and preBootstrap to create dirs or alter queries. Feature is experimental but works in the Gatsby theme blog example.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 1:53What themes mean in different systems
- 3:18How a Gatsby site works
- 9:08Limitations of Gatsby Starters
- 12:23Moving beyond Starters with themes
- 15:18How to use a Gatsby theme
- 17:05Themes are plugins too
- 17:46Component Shadowing explained
- 23:28Benefits of component shadowing
- 24:33Progressive disclosure with themes
- 25:58Gatsby lifecycles and themes
- 28:51Call to action for theme creators
- 29:14Resources and community links
- 30:02Live demo of theme usage
- 33:42Q&A and closing
