Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to StyleDictionary 4 #780

Open
daneah opened this issue Jul 19, 2024 · 1 comment
Open

Upgrade to StyleDictionary 4 #780

daneah opened this issue Jul 19, 2024 · 1 comment

Comments

@daneah
Copy link
Member

daneah commented Jul 19, 2024

The problem
We want our dependencies to be up to date so we can continue to benefit from and evolve with the ecosystem around us.

The solution
Upgrade from StyleDictionary 3 to 4

Additional information
See the official migration guidelines.

There are quite a few relevant breaking changes, as much of the breaking change footprint is around fairly commonly-used pieces. We make use of these in at least:

  • packages/pharos/scripts/build-tokens.mjs
  • packages/pharos/scripts/build-styles.js
  • packages/pharos/style-dictionary.config.js
@Niznikr
Copy link
Collaborator

Niznikr commented Jul 23, 2024

Would also recommend the DTCG format as you can start using features like composite tokens. Example PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants