-
Notifications
You must be signed in to change notification settings - Fork 29
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
Transforms for multi-platform (android, ios) #59
Comments
Hi, Android and iOS are supported in the sense that you can use Style-Dictionary formats to export your tokens to Android / iOS. I'm guessing you might be referring to the fact that some of our transforms, transform the tokens to a format that is specific to Web / CSS? E.g. transformShadow takes a shadow object and transforms it to Perhaps it would be good also to create a simple API for this, e.g. registerTransforms(StyleDictionary, {
platform: 'web', // 'web' | 'ios' | 'android'
groupName: 'tokens-studio-web', // to override the name of the transformGroup, since you might do multiple platforms
}); Where we use CSS as a reference for web, android/compose for android, and iOS Swift for ios? Since I am not a mobile app developer, I need some input from mobile app developers on this though, on which of our transforms are too Web / CSS specific, and what the Android / iOS equivalents would be like. |
Hi @jorenbroekema , Just like to add some of the challenges we encounter for android in terms of the Token Studio and Styledictionary integration.
|
Similar to @jaylumba we are trying to use as much of Style Dictionary out of the box. Right now we make extensive use of typography and composite tokens and are using
|
FYI, this package now supports expanding shadow, border, typography and composition tokens, similar to how token-transformer does it. Check out the README.md -> options section to see how to use it :) This should help a bunch already! |
Closing as duplicate of #134 |
如果可以支持ios 和安卓是非常棒的一件事
The text was updated successfully, but these errors were encountered: