-
I really wonder if there is a way to access the daisy ui colors(aka primary, secondary, accent ...) as variables inside of style tags or post css files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Yes, CSS variables are in this file which you can access from node modules: And the CSS variables for the themes you enabled are also available on your CSS file in the browser, set to the root element. Use this table to see which CSS variable is for which color name: Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
Yes, CSS variables are in this file which you can access from node modules:
https://unpkg.com/browse/daisyui@4.12.2/dist/themes.css
And the CSS variables for the themes you enabled are also available on your CSS file in the browser, set to the root element.
Use this table to see which CSS variable is for which color name:
https://daisyui.com/docs/colors/
Let me know if you have any questions.