This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
Releases: Shopify/polaris-tokens
Releases · Shopify/polaris-tokens
v4.0.0
v3.1.0
v3.0.0
v2.21.1
v2.21.0
- Added
mergeConfigs
andConfig
to the public API ofdist-modern/index.js
(#180) - Added esm support for legacy tokens. Doing
import {colorInk} from '@shopify/polaris-tokens';
shall load content fromdist/index.esm.js
which allows for better tree shaking. A default export so you can doimport tokens from '@shopify/polaris-tokens';
is provided for backwards compatability however this is just a stopgap, and will be removed in polaris-tokens v3.0.0. You should use either named imports (import {colorInk}
) or a namespace import (import * as tokens
) (#181)