New hook to get theme object by theme name #1863
quocluongha
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
According to document: here, the only way I can access theme specific tokens is to use
styled
wrapper function. It would be nice if the library export a hook to retrieve theme object by name.For example:
Problem Statement
I think this feature will save a lot of time for styling components that have deeply nested style props like:
I also try to use Property Resolver, but the resolver is only support one token type like
colors
orfonts
.Beta Was this translation helpful? Give feedback.
All reactions