-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add color tokens in the demo app #158
base: develop
Are you sure you want to change the base?
Conversation
… of TokenProperty
Factorize token properties illustrations
🟢 Netlify deploy for commit 8efbd48 succeededDeploy preview: https://671bec779dee50bf73ea51d3--ouds-android.netlify.app |
f459074
to
089e844
Compare
089e844
to
63b6900
Compare
70d2941
to
8efbd48
Compare
@@ -160,6 +161,8 @@ private fun TokenIllustration(tokenProperty: TokenProperty, token: Token<Any>) = | |||
is TokenProperty.BorderWidth -> BorderIllustrationBox(width = token.value as Dp) | |||
is TokenProperty.BorderRadius -> BorderIllustrationBox(shape = RoundedCornerShape(token.value as Dp)) | |||
is TokenProperty.BorderStyle -> BorderIllustrationBox(style = token.value as OudsBorderStyle) | |||
is TokenProperty.ColorAction, TokenProperty.ColorAlways, TokenProperty.ColorBackground, TokenProperty.ColorBorder, TokenProperty.ColorBrand, TokenProperty.ColorContent, | |||
TokenProperty.ColorElevation, TokenProperty.ColorGradient, TokenProperty.ColorDecorative -> IllustrationBox(backgroundColor = token.value as Color) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As described in Figma, we should add a black border when color is white in light mode, and a white border when color is black in dark mode.
tokens = { OudsColorKeyToken.Gradient.entries.map { Token(it.name, it.value) } } | ||
) | ||
|
||
data object ColorDecorative : TokenProperty( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global colors are missing. I know it only contains the transparent color, but should we add it anyway?
@@ -0,0 +1,10 @@ | |||
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copyright is missing and file should be added in NOTICE.txt (#168 will be our savior 🙏)
No description provided.