You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe alternatives you've considered
I know I can get the current color mode with the useThemeUI hook, but the above is terser and nicer in some cases. For instance, if I want to extract the function above for reuse, it would be easy to do:
Additional context
I am not sure if it’s possible/easy to add a second argument to the function. Perhaps instead it could be added as a property on the theme?
Thank you very much for your consideration!
The text was updated successfully, but these errors were encountered:
@hasparus I'm not sure if this is possible with how our packages are set up; since color-modes is an optional package, how would we override this line if that context exists?
Is your feature request related to a problem? Please describe.
I wouldn’t say it’s a problem, but something that could be improved.
Describe the solution you'd like
I would like to be able to do this:
Describe alternatives you've considered
I know I can get the current color mode with the
useThemeUI
hook, but the above is terser and nicer in some cases. For instance, if I want to extract the function above for reuse, it would be easy to do:vs what I have to do at the moment:
Additional context
I am not sure if it’s possible/easy to add a second argument to the function. Perhaps instead it could be added as a property on the
theme
?Thank you very much for your consideration!
The text was updated successfully, but these errors were encountered: