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

Use of tailwind-merge #176

Closed
LockBlock-dev opened this issue Jul 28, 2023 · 2 comments · Fixed by #191
Closed

Use of tailwind-merge #176

LockBlock-dev opened this issue Jul 28, 2023 · 2 comments · Fixed by #191
Labels
🔧 enhancement New feature or request ❓ question Further information is requested

Comments

@LockBlock-dev
Copy link

The library currently lacks a way to customize the components classes.
It would be great to use tailwind-merge like flowbite-react and flowbite-svelte did in my opinion. What do you think?

@cogor cogor added the ❓ question Further information is requested label Aug 8, 2023
@cogor
Copy link
Collaborator

cogor commented Aug 8, 2023

I think it's a great idea, thanks

@cogor cogor added the 🔧 enhancement New feature or request label Aug 8, 2023
@cogor cogor linked a pull request Sep 13, 2023 that will close this issue
@cogor cogor moved this from Todo to In Progress in Flowbite Vue Library Development Sep 14, 2023
@Cry0nicS
Copy link

Cry0nicS commented Sep 29, 2023

@LockBlock-dev from what I could see, you can set all the tailwind utility classes you want to use to customize a component as !important.

Example

<Navbar class="!bg-pink-300 !text-yellow-300">
   // ... content
</Navbar>

Would give you what you'd expect:
image

It's not a great solution, there are drawbacks and you have to do it for all properties, but it would allow you customize the components until / without tailwind-merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔧 enhancement New feature or request ❓ question Further information is requested
Development

Successfully merging a pull request may close this issue.

3 participants