Skip to content
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

bug: Issue disabling background color #2890

Closed
benzon opened this issue Mar 7, 2024 · 6 comments
Closed

bug: Issue disabling background color #2890

benzon opened this issue Mar 7, 2024 · 6 comments

Comments

@benzon
Copy link

benzon commented Mar 7, 2024

What version of daisyUI are you using?

latest

Which browsers are you seeing the problem on?

All browsers

Reproduction URL

https://play.tailwindcss.com/IIWW8U8Zeq

Describe your issue

I have tried every possible solution I could come up with to get the background color removed, base: false, in tailwind settings, adding bg-transparet to html, and body, but nothing works.

Is there a viable solution to actually disable the background color, should not be this hard.

Copy link

github-actions bot commented Mar 7, 2024

Thank you @benzon 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
Copy link
Owner

saadeghi commented Mar 7, 2024

I have tried every possible solution I could come up with to get the background color removed, base: false, in tailwind settings

https://play.tailwindcss.com/DKSx32y4RT?file=config

adding bg-transparet to html, and body, but nothing works.

https://stackblitz.com/edit/daisyui-vite-lh5tai/?file=index.html

@saadeghi saadeghi closed this as completed Mar 7, 2024
@benzon
Copy link
Author

benzon commented Mar 7, 2024

I have tried every possible solution I could come up with to get the background color removed, base: false, in tailwind settings

https://play.tailwindcss.com/DKSx32y4RT?file=config

adding bg-transparet to html, and body, but nothing works.

https://stackblitz.com/edit/daisyui-vite-lh5tai/?file=index.html

Might be the dark theme then that got issues, since thats what from the css info i can find that im currently using, and that one refuses to change the background color.

Tested with the following: dracula, dark - with both your examples, dont work still got a dark background.

@saadeghi
Copy link
Owner

saadeghi commented Mar 8, 2024

Can you tell me what is the goal? Do you want to set a specific color for the background?
Dark themes have color-scheme: dark which sets enables the dark mode on the page including background color, text color, scrollbar color, select dropdowns etc.

It's not a color you can remove but you can set any color to the page using class names.

@benzon
Copy link
Author

benzon commented Mar 8, 2024

I'm doing a game specific ui, and the main design of the ui is based on dark colors, i would need a transparent background in general, since it's only the UI it self that should have colors, the background should be transparent, so you can actually see the game it self.

@ValdemarLarsen
Copy link

@benzon Kontakt mig på discord: valdemar._.

Min ven har fundet et fiks til det :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants