Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Astro template for Shopify's Polaris Design System
Astro Shopify Polaris is an Astro template that integrates Shopify's Polaris design system and React components into an Astro project for building Shopify admin app interfaces. Created by getmarkus, it gives developers a starting point to experiment with Polaris inside the static-site Astro framework. The template can be installed with npm create astro@latest -- --template getmarkus/astro-shopify-polaris and includes a live demo at https://www.christophermarkus.com/astro-shopify-polaris/. The project is explicitly a work in progress and not yet functionally complete.
Astro Shopify Polaris is an Astro template that combines Shopify's Polaris design system and React components with the Astro framework, targeting the creation of Shopify admin interfaces. It takes as input an empty Astro project and produces a preconfigured site with Polaris components wired up, ready for experimentation. The template runs on Astro, which ships zero client-side JavaScript by default, and uses Shopify's official Polaris React component library for the UI layer.
npm install, npm run dev (local server at localhost:4321), npm run build (outputs to ./dist/), and npm run preview.npm create astro@latest -- --template getmarkus/astro-shopify-polaris.The project breaks down into three broad steps. First, it verifies that Polaris React components work inside Astro, which has succeeded so far; the key constraint is wrapping components in the Polaris AppProvider. Second, it explores integration with Shopify's system, which is still work in progress since Shopify recommends its official Remix and Node templates. Third, it aims to comply with Shopify's full App Design Guidelines, also not yet completed.
No. The README states the project is a work in progress and not functionally complete, so it should be treated as an experimental starting point rather than a production solution.
Run npm create astro@latest -- --template getmarkus/astro-shopify-polaris in your terminal, then follow the Astro CLI prompts to scaffold a new project.
Yes. The implementation requires that all Polaris components be wrapped in the AppProvider utility component, which is a Polaris requirement for context provisioning.
The template supports the standard Astro commands: npm run dev starts the local dev server on port 4321, npm run build generates a static build to ./dist/, npm run preview serves the built site locally, and npm run astro runs CLI utilities.
