-
Notifications
You must be signed in to change notification settings - Fork 501
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
[Doc] How to access theme values #121
Comments
The const value = themeGet('colors.blue')(props) With styled-components it looks like this: const Box = styled.div`
color: ${themeGet('colors.blue')};
` It's mostly a shortcut to avoid color: ${themeGet('colors.blue', '#07c')}; |
const value = themeGet('colors.blue')(props) what is this props? I want to use theme value in component by myself |
Same thing here, I would like to access theme values outside of styled-components, and even if I call the themeGet('')(props) with this props, its doing nothing :/ |
Hey guys, if you still face this problem. Make sure you use
It works for me :) |
Surprised to find there is no easy way to get a theme variable without so much fuss! |
Hey,
I'm seeing that is possible access to theming values, such as:
how do that, for example, for array elements?
I'm trying different approach but looks it doesn't works
The text was updated successfully, but these errors were encountered: