Is it possible to define CSS variables as the value of theme colors? #3020
Replies: 1 comment
-
I would use another name… I would suggest using daisyUI color names for everything. they are enough for almost any design system. Let me know if you have a question. |
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
-
This is my
tailwind.config.js
:As you can see, I have already my own custom 'primary', 'accent', 'neutral', etc, Tailwindcss theme colors...
Now how can I tell my custom theme Daisyui to read its colors (required colors at least) from the already defined Tailwindcss theme colors.
Currently, Daisyui breaks my UI! How? Well, as an example, before using it, when I was using
from-primary
CSS class, it meant:Now it means:
And because the Daisyui primary theme color is something else (from what I originally had), I am not getting the results that I'm expecting! Even if I don't define any themes:
themes: []
, because there's no theme, I am not seeing any colors applied on my UI.How can I fix this?
Any help is so appreciated. Thanks a lot ❤️
Beta Was this translation helpful? Give feedback.
All reactions