Replies: 1 comment
-
Yep, absolutely! You can use the const { theme } = useThemeUI()
return <CustomIcon colorFill={theme.alertsIcons.success.fill} colorStroke={theme.alertsIcons.success.stroke} /> |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I need to pass a color variable as prop to a component:
Is there a way to get the color variable out of a theme in similar fashion?
Beta Was this translation helpful? Give feedback.
All reactions