Shopify · Storefront

Storefront Web Components

Shopify Storefront Web Components is a new library that lets merchants and developers integrate Shopify's commerce capabilities into any website with just a few lines of embedded HTML, without writing complex JavaScript or GraphQL code. Joining the project midway, my focus was on the playground experience itself: making it a polished, approachable tool with well-executed examples that anyone could reference and build from.

Try the Playground
RoleProduct Designer
TimelineFeb 2025 – Apr 2025
TeamEngineering, Product Manager, Marketing
ToolsFigma · Stackblitz · Visual Studio Code
Shopify storefront web components library showing component playground and embed examples
Zero setup
Embed Shopify commerce into any site with a few lines of HTML
Any stack
Works with React, Vue, plain HTML, or no framework.
Challenge

For years, the Buy Button app was Shopify's main way to sell on external websites, but it was built for an earlier web. Developers who wanted to sell on their own sites had no good option:

  • The Buy Button was locked down. It rendered inside an iframe, so developers couldn't apply their own CSS, combine it with other elements, or fit it into a design system without !important overrides.
  • Headless commerce was too heavy. Building a custom storefront required deep GraphQL knowledge and a lot of infrastructure, which was too much for developers who just wanted to sell on an existing site.
  • Component libraries still imposed a look. Even flexible web component libraries set a baseline design through their structure and shadow DOM, so brands ended up fighting the library.
Opportunity

A brand new library that lets anyone embed Shopify commerce into any website with a few lines of HTML. The playground was where we could prove it, showing developers and non-developers alike how easy and flexible the components were:

  • A polished, approachable playground anyone could tinker in
  • Well-executed examples people could reference and build from
  • Templates merchants could copy directly into their own projects
What I Did

I joined the project midway through development, focused on the experience of the playground and the production-ready templates. I lead the final polish and execution of the playground, working closely with engineers and the product manager.

  • Getting up to speed hands-on. I reviewed Buy Button feedback, developer forum threads, and stakeholder feedback.
  • Designing and coding production-ready templates. Drawing on my front-end background, I designed and coded ready-to-use templates for product cards, collection grids, and cart drawers, pairing closely with engineers. I gave each one a different visual style to show that the library imposes no design of its own.
  • Polishing the playground. I fixed interaction and UX issues, like lack of code wrapping in the editor and responsive behaviour across screen sizes. Because the examples had no documentation embedded, I also added a new feature: a description for each one.
  • QA and catching a race condition. I handled much of the pre-launch QA so engineering could stay focused on the library. While building full template examples, I found critical race condition bugs where nested components didn't load properly, which the team fixed before launch.
Outcome

By providing a polished playground with live-code examples, we transformed the merchant workflow from struggling with rigid app constraints to building high-fidelity, custom commerce experiences on any site. The project was featured on Hacker News to strong reception, with praise particularly for the playground experience.

  • Zero setup: Shopify commerce embeds into any site with a few lines of HTML
  • Any stack: works with React, Vue, plain HTML, or no framework at all

Now this is what Web Components are great for. The playground is very well done btw, worth checking out IMO

Hacker News comment
Shopify Storefront Web Components playground showing a live code editor with a product card component and real-time preview
Shopify Storefront Web Components template examples showing a product grid and cart drawer embedded in an external site
Shopify Storefront Web Components component examples showing customizable product and collection layouts
Shopify Storefront Web Components additional template example with code view
Shopify Storefront Web Components mobile view of the playground with code and preview

For a closer look at this project or my full process behind it

Contact me