
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@shopify/polaris-tokens
Advanced tools
Design tokens for Polaris, Shopify’s design system.
yarn add polaris-tokens --dev
const tokens = require('polaris-tokens');
console.log(tokens.colorBlueLighter) // rgb(235, 245, 250)
@import 'node_modules/polaris-tokens/dist/index';
p {
color: $color-blue-text;
}
Head to https://github.com/Shopify/polaris-tokens/releases/, where generated files are available.
dev clone polaris-tokens
dev up
yarn dist
Tokens are generated under the dist/
folder:
colors.color-map.scss
colors.common.js
colors.custom-properties.css
colors.json
colors.map.scss
colors.scss
index.common.js
index.custom-properties.css
index.json
index.map.scss
index.scss
Polaris.ase
Polaris.clr
Polaris.sketchpalette
spacing.common.js
spacing.custom-properties.css
spacing.json
spacing.map.scss
spacing.scss
typography.common.js
typography.custom-properties.css
typography.json
typography.map.scss
typography.scss
Colors are stored in Invision’s DSM.
Fetch the latest version:
yarn getTokensFromInvision
yarn dist
dev server
FAQs
[](https://www.npmjs.com/package/@shopify/polaris-tokens)
The npm package @shopify/polaris-tokens receives a total of 76,869 weekly downloads. As such, @shopify/polaris-tokens popularity was classified as popular.
We found that @shopify/polaris-tokens demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.