F
Filament16mo 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
Hasnayeen16mo 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
HasithOP16mo ago
Why can not i use all colors? Should i need to mention colors inside the config file? 🤔
RickDB
RickDB16mo ago
Do you have a theme?
Hasith
HasithOP16mo ago
Yes
RickDB
RickDB16mo ago
Did you run npm run build to recompile css? as it needs to generate the new color classes
Hasith
HasithOP16mo ago
Should i insert colors here? 🫤
No description
RickDB
RickDB16mo ago
Nah so you do have vite installed?
Hasith
HasithOP16mo ago
Yes primary colors working fine. when i add color my self it's not working

Did you find this page helpful?