MetaMask / design-tokens

Design tokens to be used throughout MetaMask products
https://metamask.github.io/design-tokens/?path=/docs/getting-started-introduction--docs
27 stars 15 forks source link

automate tokens with style dictionary #615

Closed garrettbear closed 4 months ago

garrettbear commented 7 months ago

Description

To run: node style-dictionary-build.js

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

socket-security[bot] commented 7 months ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@bundled-es-modules/deepmerge@4.3.1 None +1 37.8 kB jorenbroekema
npm/@bundled-es-modules/glob@10.3.13 Transitive: environment, eval, filesystem, shell +92 5.36 MB jorenbroekema
npm/@bundled-es-modules/memfs@4.2.3 environment, eval +42 10.8 MB jorenbroekema
npm/@tokens-studio/sd-transforms@0.14.2 Transitive: environment, eval, filesystem, shell +131 23.4 MB andrewattokensstudio, jorenbroekema, lukefinch, ...2 more
npm/@tokens-studio/types@0.4.0 None 0 42.3 kB andrewattokensstudio, jorenbroekema, lukefinch, ...2 more
npm/@yarnpkg/lockfile@1.1.0 environment, eval, filesystem 0 280 kB arcanis
npm/arg@5.0.2 None 0 13.7 kB leerobinson
npm/at-least-node@1.0.0 None 0 2.63 kB ryanzim
npm/buffer@6.0.3 None +2 108 kB feross
npm/capital-case@1.0.4 None +4 147 kB blakeembrey
npm/change-case@5.4.2 None 0 35.2 kB blakeembrey
npm/color2k@2.0.3 None 0 293 kB ricokahler
npm/colorjs.io@0.4.5 None 0 1.93 MB leaverou
npm/constant-case@3.0.4 None +4 153 kB blakeembrey
npm/emitter-component@1.1.2 None 0 10.5 kB sindresorhus
npm/expr-eval-fork@2.0.2 None 0 146 kB jorenbroekema
npm/find-yarn-workspace-root@2.0.0 filesystem +6 261 kB bmishkin
npm/header-case@2.0.4 None +5 158 kB blakeembrey
npm/hyperdyperid@1.2.0 None 0 861 kB streamich
npm/is-mergeable-object@1.1.1 None 0 2.25 kB tehshrike
npm/isarray@2.0.5 None 0 3.43 kB juliangruber
npm/json-joy@11.28.0 None +4 8.52 MB streamich
npm/json-stable-stringify@1.1.1 Transitive: eval +13 280 kB ljharb
npm/jsonc-parser@3.2.1 None 0 210 kB vscode-bot
npm/jsonify@0.0.1 None 0 19.4 kB ljharb
npm/klaw-sync@6.0.0 Transitive: environment, filesystem +1 43 kB manidlou
npm/memfs@4.7.0 None +5 9.43 MB streamich
npm/open@7.4.2 environment, filesystem, shell +2 48.7 kB sindresorhus
npm/os-tmpdir@1.0.2 None 0 3.06 kB sindresorhus
npm/patch-package@8.0.0 environment, filesystem Transitive: eval, shell +52 1.72 MB ds300
npm/path-case@3.0.4 None +4 147 kB blakeembrey
npm/path-unified@0.1.0 environment 0 64.3 kB jorenbroekema
npm/path@0.12.7 environment +3 56.1 kB jinder
npm/postcss-calc-ast-parser@0.1.4 None +1 94.7 kB ota-meshi
npm/sentence-case@3.0.4 None +4 148 kB blakeembrey
npm/snake-case@3.0.4 None +4 148 kB blakeembrey
npm/stream@0.0.2 None +1 22.5 kB juliangruber
npm/style-dictionary@3.9.2 filesystem Transitive: environment, shell +53 9.32 MB dbanksdesign
npm/thingies@1.16.0 None +1 174 kB streamich
npm/tinycolor2@1.6.0 None 0 285 kB bgrins
npm/tmp@0.0.33 filesystem +1 29.1 kB raszi
npm/upper-case-first@2.0.2 None +1 92.8 kB blakeembrey
npm/upper-case@2.0.2 None +1 99.6 kB blakeembrey

View full report↗︎

socket-security[bot] commented 7 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
New author npm/find-yarn-workspace-root@2.0.0
New author npm/jsonify@0.0.1
  • New Author: ljharb
  • Previous Author:
New author npm/postcss-value-parser@3.3.1
New author npm/util@0.10.4
New author npm/emitter-component@1.1.2
Install scripts npm/@bundled-es-modules/glob@10.3.13
New author npm/jsonc-parser@3.2.1
Install scripts npm/style-dictionary@4.0.0-prerelease.13

View full report↗︎

Next steps

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/find-yarn-workspace-root@2.0.0
  • @SocketSecurity ignore npm/jsonify@0.0.1
  • @SocketSecurity ignore npm/postcss-value-parser@3.3.1
  • @SocketSecurity ignore npm/util@0.10.4
  • @SocketSecurity ignore npm/emitter-component@1.1.2
  • @SocketSecurity ignore npm/@bundled-es-modules/glob@10.3.13
  • @SocketSecurity ignore npm/jsonc-parser@3.2.1
  • @SocketSecurity ignore npm/style-dictionary@4.0.0-prerelease.13
georgewrmarshall commented 4 months ago

Closing for now