GatsbyImage specificity issue with Tailwind aspect-ratio GatsbyImage css classes are overriding Tailwind classes when deployed/built for prod. It works as expected in development. To reproduce: npm install gatsby build Or visit this example: https://inspiring-hamilton-bd685d.netlify.app/ To see it work normally in development npm install gatsby develop Screenshots Develop Build