In dark mode my tables are still light

Maybe it is because of some css code I accidentally introduced in my pages but when I activate dark mode everything changes except tables.

Does this happen with you too or is it something I did wrong somewhere?

If you have a solid background colour for the table, then there will be no change when changing colour modes.

Only use transparent background colours for colour modes.

Hi Ben,

I haven't set any colour to the table.

The strange thing is that when I use: '' the table doesn't change:

And when I use data-bs-theme like this: '' only the table changes:

<html data-bs-theme="dark">

The above is correct.

I would need to see more info on why you are getting a white background for the containing div.

Ah, alright.
Thnx for checking/testing Ben!!

Then, the problem must be in the css file from a template I used to jump start my dashboard app with...

1 Like