0

I am exploring Astro to see if it would be a good fit to migrate a large Gatsby theme over as I am not fully satisfied with the toolings offered and particularly the Lighthouse results.

I'm not seeing though any opportunity for components shadowing and theme composition with Gatsby themes.

Is there any Astro expert that maybe knows a workaround for this?

I have tried searching the official docs and even asking AI tools and deeply searching SO and GitHub for an answer but I couldn't find anything similar.

Thanks for your kind help.

Mattia Rasulo
  • 1,236
  • 10
  • 15

1 Answers1

1

Are you looking to use an existing Gatsby theme with Astro? That wouldn’t work I don’t think as Gatsby themes are designed as plugins that mutate your Gatsby config, and there is no Gatsby config in an Astro project.

The idea of a theme in Astro that does something similar (a plugin in astro.config.mjs that sets up parts of your project for you), does exist but is relatively new — the official Starlight docs theme works like this for example — but most things advertised as an Astro “theme” today are in fact example projects you can fork and then override components as you wish as the components will be directly in your project directory.

swithinbank
  • 1,127
  • 1
  • 6
  • 15