tauri-controls icon indicating copy to clipboard operation
tauri-controls copied to clipboard

This library destroys my tailwind V4 & CSS styling

Open AnicetNgrt opened this issue 6 months ago • 3 comments

With import { <whatever> } from 'tauri-controls' or even import('tauri-controls').then(...) anywhere in my code

Image

Without (normal styles):

Image

I'm not sure what changes and I have no time to dig but some notable differences in the chrome debugger:

With controls:

Image

(tailwind classes often overridden by other)

And some more CSS than what I have normally:

Image

Without controls:

Image

Obviously we can't have a library override our global styles.

I might have to go without tauri-controls for the foreseeable future because of this but I'd love to use it if this wasn't an issue.

By the way if someone has a quick and dirty workaraound it would save my day.

I normally 0% of the time write issues so please take it as a sign I badly need this haha.

Thanks for maintaining tauri-controls it would be very useful

AnicetNgrt avatar Aug 13 '25 14:08 AnicetNgrt

For anyone ending here, this repository is no longer maintained and target outdated Tauri version. I don't blame contributors for this, Tauri did a lot of breaking change with v1 <> v2 transition, which probably burn out a lot of them.

You'll have to find another library, or rewrite it yourself. To be honest, tauri-controls should have been an official Tauri plugin from the start, and it's never to late. Fork, update to latest Tauri, try a minimalistic version - it may work, it may break.

arialpew avatar Sep 24 '25 18:09 arialpew

@AnicetNgrt nothing to do with your bug report, but UI looking clean! 💯 🎊

tance77 avatar Nov 06 '25 16:11 tance77

Image

I copied his code and deleted any unnecessary files. After modifying the method, it's fine

752337625 avatar Nov 13 '25 03:11 752337625