saadeghi / daisyui

๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ ๐ŸŒผ โ€ƒThe most popular, free and open-source Tailwind CSS component library
https://daisyui.com
MIT License
34.24k stars 1.31k forks source link

bug: tooltip crashes when theme is an empty array #2962

Closed this-oliver closed 7 months ago

this-oliver commented 7 months ago

What version of daisyUI are you using?

4.7.2

Which browsers are you seeing the problem on?

Safari, Safari iOS, Firefox

Reproduction URL

https://play.tailwindcss.com/TQ3VC9hEFg

Describe your issue

The tool tip crashes when the theme config in tailwind.config.ts is empty:

{
 "daisyui": {
  "themes": []
 }
}
github-actions[bot] commented 7 months ago

Thank you @this-oliver for reporting issues. It helps daisyUI a lot ๐Ÿ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

saadeghi commented 7 months ago

Crash?
It just loses all the colors, like other components. You can add colors to it manually, or by defining a daisyUI theme using color variables.
https://play.tailwindcss.com/xLYmX24vEW

Let me know if you have a question.

this-oliver commented 7 months ago

I see.

Apologies for the misunderstanding and thanks for explaining. Have a nice day!

On 9 Apr 2024, at 10:32, Pouya Saadeghi @.***> wrote:

Crash? It just loses all the colors, like other components. You can add colors to it manually, or by defining a daisyUI theme using color variables. https://play.tailwindcss.com/xLYmX24vEW

Let me know if you have a question.

โ€” Reply to this email directly, view it on GitHub https://github.com/saadeghi/daisyui/issues/2962#issuecomment-2044442219, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYCJANDYP5WF63SMFKYHVLY4ORQHAVCNFSM6AAAAABFZXKU3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBUGQ2DEMRRHE. You are receiving this because you were mentioned.