polaris-fundamentals

Explain Polaris Web Components fundamentals for Shopify app UI development.

4|1|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/sarojpunde/shopify-dev-toolkit-claude-plugins --skill polaris-fundamentals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polaris-fundamentals
Source: https://github.com/sarojpunde/shopify-dev-toolkit-claude-plugins/tree/main/shopify-polaris/skills/polaris-fundamentals
Command: npx skills add https://github.com/sarojpunde/shopify-dev-toolkit-claude-plugins --skill polaris-fundamentals

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill delivers foundational knowledge of Polaris Web Components, covering the library structure, design tokens, responsive patterns, and SSR compatibility to help you build consistent, accessible Shopify app UIs with confidence.

Core Features & Use Cases

  • Component Categories: Understand Polaris grouping (Actions, Forms, Feedback, Media, Structure, Titles and Text) with recommended usage.
  • Design Tokens: Learn spacing, colors, borders, radii, and typography to ensure a unified design system across your app.
  • SSR & Accessibility Best Practices: Guidelines for server-side rendering and accessible components.

Quick Start

Use this skill when starting a Polaris-based UI to align on tokens, components, and SSR setup; reference Polaris docs to begin assembling a cohesive UI.

Frequently Asked Questions about polaris-fundamentals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Shopify app UI with Polaris web components?

Polaris web components organize UI elements into six categories—Actions, Forms, Feedback, Media, Structure, Titles and Text—that you select and combine to build consistent Shopify app interfaces. Start by understanding each category's purpose, apply design tokens for spacing and colors, and follow SSR compatibility rules for server-side rendering.

What are design tokens and how do I use them in Polaris?

Design tokens are predefined values for spacing, colors, borders, radii, and typography that ensure visual consistency across your app. Apply them to components instead of hardcoding styles so your UI aligns with Shopify's design system and scales reliably across responsive breakpoints.

Do Polaris components support server-side rendering?

Yes, Polaris components are SSR-compatible and follow hydration rules for server-side rendering. Check the SSR guidelines in the Polaris documentation to ensure your component setup works correctly when rendering on the server and rehydrating on the client.

How do I make a Polaris-based UI responsive across devices?

Polaris provides responsive breakpoints and patterns you apply to components to adapt layout and spacing across screen sizes. Reference the responsive pattern guidelines alongside your design tokens to ensure your app works on mobile, tablet, and desktop without manual breakpoint management.

What's the difference between the six Polaris component categories?

Polaris groups components by function: Actions handle user interactions, Forms capture input, Feedback communicates status, Media displays images and video, Structure provides layout containers, and Titles and Text display content. Choose categories based on your UI need to maintain consistent patterns.

Do I need prior knowledge of web components to use Polaris?

You should understand web component fundamentals before using Polaris, but this Skill covers the Polaris-specific knowledge you need—component categories, design tokens, responsive patterns, and SSR requirements—to build Shopify app UIs confidently.