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

[bug]: Design token build failure for pgn-typography-print-page-size #3389

Closed
PKulkoRaccoonGang opened this issue Jan 23, 2025 · 0 comments
Closed
Assignees

Comments

@PKulkoRaccoonGang
Copy link
Contributor

PKulkoRaccoonGang commented Jan 23, 2025

Description

During the attempt to build design tokens from the published npm package Paragon 23.0.0, an error occurs related to the design token pgn-typography-print-page-size. Since this token has the value a3 and the type dimension, Style Dictionary tries to add a unit of measurement (e.g., px or rem) to this value, but it cannot do so.

Image

This problem was not previously encountered when attempting to build design tokens locally in Paragon using the build-tokens command. However, it is present when installing Paragon as a dependency via NPM.

After some research, I discovered that when packages are installed in Paragon, Style Dictionary version 4.0.1 is used. However, if Paragon is installed as an NPM package, the latest published minor version of Style Dictionary (4.3.2) is added to the dependencies.

Local Paragon

Image

Paragon v23.0.0 (NPM package)

Image

Notes

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

No branches or pull requests

1 participant