-
Notifications
You must be signed in to change notification settings - Fork 264
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
Is It Possible To add a variable CSS Color as Color? #572
Comments
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
react-spinners/src/BarLoader.tsx Line 45 in fd4a93c
i'm not sure, I will need to see if this is possible. Currently it is just passed as a string |
Any news on this? I also need to have ability to apply color as CSS Custom Property |
I can confirm that works. Just pass your css variable color like this <SyncLoader color="var(--theme-primary-color)" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: