livewire-datatables icon indicating copy to clipboard operation
livewire-datatables copied to clipboard

Dark mode

Open dimdam opened this issue 3 years ago • 1 comments

Is it possible to enable dark mode?

dimdam avatar Mar 18 '22 11:03 dimdam

Yes, it is possible to enable dark mode. But within the package itself, natively, it is not possible. You have to at least publish the configuration file and edit the config/livewire-datatables.php.

If you somehow used the DaisyUI as your TailwindCSS plugin, you can add these classes I used:

'default_classes' => [
    'row' => [
        'even' => 'divide-x divide-base-300 text-sm text-base-content bg-base-200',
        'odd' => 'divide-x divide-base-300 text-sm text-base-content bg-base-100',
        'selected' => 'divide-x divide-base-300 text-sm text-base-content bg-yellow-100',
    ],
    'cell' => 'text-sm text-base-content',
],

NikarashiHatsu avatar Mar 25 '22 09:03 NikarashiHatsu