Polaris for VS Code

Official VS Code extension for building with the Shopify Polaris design system.

Demo of Polaris for VS Code tokens autocomplete

Features

Design Token Autocomplete

Get code autocomplete suggestions for the Polaris Design Tokens

  • πŸ—„οΈ Automatically works for CSS and Sass files
  • πŸ” Preview design token values in autocomplete description
  • 🎨 Color previews for all color tokens
  • πŸ₯‡ Relevant code completions based on the current line of code

How to use

Install the Polaris for VS Code extension. Once enabled, the extension will automatically run in any CSS and Sass files.

To trigger the token autocomplete feature:

  1. Open a CSS or Sass file from your project
  2. Start typing the CSS property you want to set, for example: color:
  3. Type the extension trigger characters: --. This will bring up the relevant autocomplete tokens associated with the CSS property typed.