Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

The background becomes black when I add DaisyUI in my SvelteJS+Tailwindcss Project

$
0
0

I was configuring with my SvelteJS and Tailwindcss project with DaisyUI. But every time I add DaisyUI to a Project the background color becomes black. Maybe it's a default color that's not the problem. but how will I change it?
After a lot of searches, I found if I add data-theme="corporate" default HTML tag it's gone. But I don't think it's a good idea to change the default HTML file.

<!DOCTYPE html><html lang="en" data-theme="corporate"><head><meta charset="utf-8" /><meta name="description" content="" /><link rel="icon" href="%svelte.assets%/favicon.png" /><meta name="viewport" content="width=device-width, initial-scale=1" />        %svelte.head%</head><body><div>%svelte.body%</div></body></html>

Please show me the correct way to change these colors in DaisyUI?


Viewing all articles
Browse latest Browse all 1541

Trending Articles