F
Filament10mo ago
Hasith

Use custom tailwind css inside livewire component (resource edit page)?

I want to use a livewire component inside my edit page. My problem is i can not use tailwind css inside my livewire component. i'm using a package named Commentify. i do not know the issue related to the package or filament. i configured a custom theme in filament. Should i add resouces/supports/pages path to the tailwind config file? i want to change submit button color.
No description
No description
No description
9 Replies
Hasnayeen
Hasnayeen10mo ago
you've to add the package views directory to the content section of tailwind config in your case, resources/vendor/commentify/**/*.blade.php
Hasith
Hasith10mo ago
Why can not i use all colors? Should i need to mention colors inside the config file? 🤔
RickDB
RickDB10mo ago
Do you have a theme?
Hasith
Hasith10mo ago
Yes
RickDB
RickDB10mo ago
Did you run npm run build to recompile css? as it needs to generate the new color classes
Hasith
Hasith10mo ago
Should i insert colors here? 🫤
No description
RickDB
RickDB10mo ago
Nah so you do have vite installed?
Hasith
Hasith10mo ago
Yes primary colors working fine. when i add color my self it's not working