saadeghi / daisyui

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

[Docs] Reset theme generator values respectively #865

Open Infinitay opened 2 years ago

Infinitay commented 2 years ago

I wanted to view the default colors of the theme presets already available in DaisyUI so I went to the Theme Generator. When I hit reset I noticed that it did not reset the values with respect to the current theme I had selected for the Docs. Would it be possible to make it so that when a user resets the theme it will populate to the current theme's default colors? This also would be nice in cases where someone wants to modify only some colors but use the preset as a baseline.

arcanemachine commented 1 year ago

OK, so this actually works for me, but there's a bug: You have to navigate to the Theme Generator section after you select the theme.

It seems to detect the current theme when loading the section, but it doesn't update them when you change the theme.

On a side note, I'd like to thank you for suggesting the 'Reset' button to load the current theme's colors in the first place! I had assumed the colors would reset to the default theme.