Skip to content

Custom theme: styles not applying #1477

Answered by marineusde
keH1 asked this question in Q&A
Discussion options

You must be logged in to vote

I cant reproduce it. I've created a custom theme:

class CustomTheme extends Tailwind
{
    public function searchBox(): \PowerComponents\LivewirePowerGrid\Themes\Components\SearchBox
    {
        return Theme::searchBox()
            ->input('fancy_input')
            ->iconClose('fancy_icon_close')
            ->iconSearch('fancy_search');
    }
}

configure it in the livewire-powergrid.php:

  'theme' => \App\PowergridThemes\CustomTheme::class,

Result:

I tryed it with bootstrap, works too.

Maybe you can try to delete all caches:

composer dumpautoload --optimize
php artisan optimize
php artisan cache:clear
php artisan route:clear
php artisan config:clear
php artisan view:clear
php arti…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@keH1
Comment options

Answer selected by keH1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants