-
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.
Answered by
saadeghi
Jun 21, 2024
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.
7 replies
Answer selected by
saadeghi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, CSS variables are in this file which you can access from node modules:
https://unpkg.com/browse/[email protected]/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.