Spectrum is now read-only. Learn more about the decision in our official announcement.


Gatsby.js Theming Discussions


Introducing Gatsby Themes

November 6, 2018 at 10:55am

Introducing Gatsby Themes

November 6, 2018 at 10:55am
Welcome to the Gatsby Themes sub-community. This is a temporary extension to the Gatsby.js community focused on the recent addition and development of theming and the theming ecosystem.

November 13, 2018 at 7:26pm
The intro blog post on the gatsbyjs blog is
The example repo that will update as new theme functionality is merged is
I'm talking about themes at Gatsby Days which you can get a ticket for here
You can either file issues on the example repo or start new discussions here to participate in the evolution of theming :)

November 23, 2018 at 8:35pm
I love where this is going. btw.

December 14, 2018 at 2:51pm
Thank you for the community :)

December 18, 2018 at 5:12am
Really excited to start hacking around on the example theme! This is such a cool addition to Gatsby!

December 29, 2018 at 2:08pm
Hi, I tried following the steps in the blog post to enable themes but I get this error: error It looks like you were trying to add the config file? Please rename "gatsby-config.js" to "gatsby-config"

December 30, 2018 at 12:01am

February 1, 2019 at 5:47pm
I have a question -- will it be possible to share configuration like linting, or TS with Gatsby themes?
you can definitely put TS config in a theme (anything you can put in a gatsby-config works).

February 2, 2019 at 3:19am
Going to be converting a starter into a theme + npm package this weekend, wish me luck!

February 2, 2019 at 4:03pm
Good luck, and please share your results. Lots of people (me included) will learn from your example.
I'll post more details after my traveling this weekend! Usage instructions are in both repos however and the code is there for reference

February 10, 2019 at 5:41pm
@[talves] I just cloned and ran that repo successully

February 12, 2019 at 2:14pm
Just read about themes. This makes sense. Always heard people whining about Gatsby bcz of the same reason. Finally it will be solved :)

March 12, 2019 at 11:45pm
Gatsby themes are looking pretty great. Thanks Chris and everyone working on this. 💯

July 11, 2019 at 1:33am
Hi, how do I access options in the user's gatsby-config.js in my theme's components? The docs ( only mention being able to access the options in gatsby-node.js. Is this possible or do I need to figure out a workaround using component shadowing?

July 17, 2019 at 4:10pm
You can export a function in gatsby-config.js and the first argument it will receive is the options passed in by the end user. Here's an example: