Themes and Plugins
Get familiar with the concept of themes and plugins in Gatsby.
Themes in Gatsby
Traditionally, when we create a site with or without starters, all our configuration—site logic, data source, styling, and UI elements—resides within the project code. We may create multiple sites with the same starter. However, while this makes it easy and fast to get a new site running, we still have to write configurations, logic, UI styling, etc., for each site. These codes are usually very similar or may end up being slightly different versions of each other.
This poses a few issues:
-
It makes it difficult to reuse shared configurations across multiple sites.
-
Sites created with the same starter are difficult to maintain parallelly. If we decide to make UI changes, for instance, we have to make this change for each site.
-
Time and energy are spent writing common logic that can easily be plugged in ...