-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Ability to choose a theme color from theme array of specific color range #38
Comments
yairEO
changed the title
Ability to choose a theme item from theme array
Ability to choose a theme color from theme array of specific color range
Jul 9, 2019
Hello @yairEO, you have to use the "dot syntax": background: grays.3; |
Just came here with the same question. I didn't see this in the docs -- I'd suggest adding it! |
Feel free to submit a PR to update the doc! |
Not working 😞:
Working:
|
|
See #45 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My theme code follows the standards:
Theme:
I would like to access a specific "blue" color from xstyled:
Basic use-case:
I cannot possibly give alias names to all my color, in reality I have many and naming them will be more confusing than accessing an Array index, since colors arrays are sorted by darker to lighter, and it's obvious to developers in the team which
gray
is lighter or darker by using an index, instead of creating alias names such as:The text was updated successfully, but these errors were encountered: