@additionapps/polaris-colors

Polaris color variables

Usage no npm install needed!

<script type="module">
  import additionappsPolarisColors from 'https://cdn.skypack.dev/@additionapps/polaris-colors';
</script>

README

Polaris Colors

This module is a functional helper to bring Shopify Polaris color variables into a Javascript scope.

The primary usage case being CSS in JS with libraries such as Styled Components

Installation

To install the module, run:

npm install @additionapps/polaris-colors --save

Getting Started

import { Colors } from "@additionapps/polaris-colors";

const BlueDiv = styled.div`
    background-color: ${Colors.blue.base};
`

Addition

Addition develops apps for Shopify. We are a small, remotely distributed team.

Visit us at addition.app