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

Add core typography tokens for Android #3

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

janogarcia
Copy link
Contributor

Core typography tokens for Android. Most useful for generating Figma Styles.

Please note that it doesn't include composite tokens for monospace fonts and uppercase text yet.

Copy link
Contributor

@germain-gg germain-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good to me

Comment on lines +121 to +136
"value": "0.5px",
"type": "letterSpacing"
},
"sm": {
"value": "0.4px",
"type": "letterSpacing"
},
"md": {
"value": "0.25px",
"type": "letterSpacing"
},
"lg": {
"value": "0.25px",
"type": "letterSpacing"
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both iOS and Web use percentages for letter spacing. Is that expected to have pixel values here?

And for my own understanding, what's the rationale behind that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the rationale to the internal doc on transforming typography tokens, but just realized I haven't pushed it yet. Let me do it now.

Copy link
Contributor Author

@janogarcia janogarcia Feb 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -162,6 +162,35 @@ object DarkDesignTokens {
val cpdColorGray300 = Color(0xffe2e6ea)
val cpdColorGray200 = Color(0xffeef1f3)
val cpdColorGray100 = Color(0xfff7f8f9)
val cpdFontLetterSpacingHeadingXl = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output, once again looks wrong. I'll do the same exercise with the Android team

@germain-gg germain-gg merged commit dcb3400 into develop Feb 14, 2023
@germain-gg germain-gg deleted the janogarcia/android-typography branch February 14, 2023 09:37
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

Successfully merging this pull request may close these issues.

2 participants