I have created an ecommerce platform with GatsbyJS and Snipcart, but I am struggling to override the default theme provided by Snipcart. When I try to change the main default CSS through gatsby-config.js
, it does not seem to work.
Does anyone have a solution for this issue? Thank you.
I noticed that when I add the styles option to the code below, Snipcart stops functioning:
{
resolve: 'gatsby-plugin-snipcartv3',
options: {
apiKey: 'API_IS_HIDDEN_FOR_A_REASON',
autopop: true,
styles: '.src/components/layout.css'
}
},
My question is how can I get Snipcart version 3 to accept custom styles when used with GatsbyJS
? I have already checked their documentation and looked on github
but didn't find much information.