how can i use dark mode when using table as component?

basically i have a custom route
Route::get('seeds', ListSeeds::class);
Route::get('seeds', ListSeeds::class);
<x-filament::section>
<x-slot name="heading">
User details
</x-slot>

<div>
{{ $this->table }}
</div>

{{-- Content --}}
</x-filament::section>
<x-filament::section>
<x-slot name="heading">
User details
</x-slot>

<div>
{{ $this->table }}
</div>

{{-- Content --}}
</x-filament::section>
am i only able to use the theme when using a panel?
No description
1 Reply
awcodes
awcodes6mo ago
If you’re not in the panel then you need to have a class on “dark” on the html element. How you handle that is up to you.
Want results from more Discord servers?
Add your server