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

Review and consider new pre-made transforms #28

Open
d01000100 opened this issue Mar 3, 2023 · 0 comments
Open

Review and consider new pre-made transforms #28

d01000100 opened this issue Mar 3, 2023 · 0 comments
Labels
style-dictionary-3.0 Features involving including or using new features in Style Dictionary 3.0

Comments

@d01000100
Copy link
Owner

StyleDictionary 3.0 introduced more pre-made transforms.

The transform size/pxToRem is particularly interesting, because it does something similar to our custom transform transformToRem. It would be better for the maintenance of this project to use the pre-made one.

It also receives how many px's 1 rem converts to in the StyleDictionary options:

// config.json
{
    ...
    "platforms": {
        "scss": {
            ...
            "basePxFontSize": 16  // optional, defaults to 16
        }
    }
}
@d01000100 d01000100 added the style-dictionary-3.0 Features involving including or using new features in Style Dictionary 3.0 label Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style-dictionary-3.0 Features involving including or using new features in Style Dictionary 3.0
Projects
None yet
Development

No branches or pull requests

1 participant