Replies: 2 comments 1 reply
-
Your colors already seem to be hexadecimal. You can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
@wongjn thank you for your answer. I even had a better solution. This is what I did in my barrel file:
Now in my components, I can:
|
Beta Was this translation helpful? Give feedback.
1 reply
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'm using Chart.js and I want to apply a harmonious color theme on all of my UI elements. This includes charting.
I have this config in my
tailwind.config.js
:And I use them like
text-custom-color-4
orbg-custom-color-12
in my code.Now I need to use them inside my Chart.js configuration scripts:
As you can see, right now I have hardcoded some hexadecimal values there. How can I convert my custom colors to hexadecimal to be used there?
Beta Was this translation helpful? Give feedback.
All reactions