-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Doesn't preserve camel casing in export #197
Comments
Hey @SteveAtKlover, can you give me more details? So you are using the "standard" token format? |
@lukasoppermann yeah, i use the standard format, and tried default as well as camel case. when the file spits out, a figma token that is |
Hey, you are right and this is a bug. Currently the code just lowercases everything and merges words where you have spaces and uppercases the first letter. Another issue I ran across is that emojis like Would you be able to send a PR to address the issues? |
I can try. What file should I be working in? Thanks. |
Awesome, reach out any time if you have questions. The conversion happens here: https://github.com/lukasoppermann/design-tokens/blob/main/src/utilities/transformName.ts The module is than used here: https://github.com/lukasoppermann/design-tokens/blob/main/src/utilities/groupByName.ts I think there are two things:
|
Any update on this issue? Existing camelCase just needs to be passed through |
I have, for instance, a figma token called
brandPrimary
, but when it gets exported out to the file, it saves asbrandprimary
, lowercasing theP
. I messed with the casing option and it doesn't do it correctly in any case.The text was updated successfully, but these errors were encountered: