Can I use Shadow DOM for Shopify theme?

leesiongchan
New Member
1 0 0

Hi, I am thinking of developing my first Shopify theme, however I glanced through the Shopify theme requirements (https://shopify.dev/themes/store/requirements) I see there is a requirement saying it has to be fully functional even with JavaScript disabled. I think Shadow DOM requires JS to function, so I pretty much I am out of luck. Just want to confirm is correct that I just need to include a "non-js" version then I am good to go?

0 Likes
Mircea_Piturca
Shopify Partner
1489 42 316

By fully functional I believe they refer to the basic functionality (add to cart, search, navigation, login). 

If you keep your code correct, use forms for those interactions you should be fine. Are you thinking in making the whole theme based on CustomElements?

Finally—Add variant descriptions to your products
0 Likes