menu
Channels
Team

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 :)
like-fill
6
  • reply
  • like

November 23, 2018 at 8:35pm
I love where this is going. btw.
like-fill
2
  • reply
  • like

December 14, 2018 at 2:51pm
Thank you for the community :)
like-fill
1
  • reply
  • like

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

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"
like-fill
1
  • reply
  • like

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?
  • reply
  • like
you can definitely put TS config in a theme (anything you can put in a gatsby-config works).
  • reply
  • like

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

February 2, 2019 at 4:03pm
Going to be converting a starter into a theme + npm package this weekend, wish me luck!
Good luck, and please share your results. Lots of people (me included) will learn from your example.
  • reply
  • like
Good luck, and please share your results. Lots of people (me included) will learn from your example.
  • reply
  • like
I'll post more details after my traveling this weekend! Usage instructions are in both repos however and the code is there for reference
  • reply
  • like

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

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 :)
  • reply
  • like

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

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 (https://www.gatsbyjs.org/docs/themes/api-reference/#configuration) 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?
Edited
  • reply
  • like

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: https://github.com/gatsbyjs/gatsby/blob/8f4408606a20e355ea29e8982abd62198a901592/themes/gatsby-theme-blog/gatsby-config.js#L1
  • reply
  • like