-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
docs: DaisyUI V5 themes color extraction #3312
Comments
Thank you @J4gQBqqR
for reporting issues. It helps daisyUI a lot 💚
|
Yes. There's Also you can use JS object of a specific theme individually: Color names are now exactly same as the CSS variables now, to make it easier to use. And unlike the previous file, it includes all values of all themes, not just the seed values. Let me know if you have any questions. |
Just another question, I found that the way that I was setting theme using JavaScript is no longer working in v5: Is there an equivalent with DaisyUI v5 that I can programming change theme? |
Is data-theme being added to Also make sure you enabled all themes form CSS: @plugin "daisyui" {
themes: all;
} Docs will be ready soon. Let me know if you have any questions |
Yes, I added them by using this block in app.css: @import "tailwindcss";
@plugin "daisyui" {
themes:
nord --default,
dim --prefersdark;
} Although this is added, the |
When Is it null or something? Are there any errors in devtools console? Can you share a minimal reproduction example where I can run this script and see the issue? |
I will open another ticket on this issue. |
On which page do you see this issue?
https://v5.daisyui.com/docs/themes/
Describe the issue
I am using DaisyUI v4 with the
daisyui/src/theming/themes.js
code to extract color:Now I am trying out DaisyUI v5. After upgrade all related packages, I started to realize that the
daisyui/src/theming/themes.js
file is removed with TailwindCSS v4 plugins. So now there is no such convenient utility for us to use. Is there a replacement method and can this method be documented in documentation here "https://v5.daisyui.com/docs/themes/"?What browsers are you seeing the problem on?
All browsers
The text was updated successfully, but these errors were encountered: