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
I would like to be able to change the color of my loaders from a Css var. If for example I have a dark/white theme, controlled by a css variable, I would like to be able to edit my bar loader directly when the css variable change.
This code works a little bit but the background behind the bar loader disappear :/ the color bar change well
Result:
What I would like to have:
Thanks a lot
The text was updated successfully, but these errors were encountered:
ljs19923
changed the title
Is It Possible To variable CSS Color as Color?
Is It Possible To add a variable CSS Color as Color?
Sep 9, 2023
Hi, I would like to know if it's possible to do this? and if not, how
<BarLoader width={"70%"} height={2} color={"var(--textColor)"} />
I would like to be able to change the color of my loaders from a Css var. If for example I have a dark/white theme, controlled by a css variable, I would like to be able to edit my bar loader directly when the css variable change.
This code works a little bit but the background behind the bar loader disappear :/ the color bar change well
Result:
What I would like to have:
Thanks a lot
The text was updated successfully, but these errors were encountered: