starlette-admin
starlette-admin copied to clipboard
Enhancement: Tabler Theme: Light and Dark Mode
Is your feature request related to a problem? Please describe. Like some developers, I also feel like "dark mode" rules and light mode hurts...
Describe the solution you'd like Tabler offers great features like switching themes. Why wouldn't we integrate this one to the Starlette Admin?
Additional context I found this article on medium. I opened Starlette Admin Demo and checked out the console, tried to switch theme. It was easy but It doesn't work on some of the fields.
I searched a bit and found this issue on the tabler repo.
I added data-bs-theme="dark"
attribute to various body tags in the starlette-admin-demo.jowilf.com/admin/sqla/ page.
These are the results:
Home
Users List Page
Users Detail Page
Users Create Page
We should make all the pages compatible with this feature before implementing it.
I've done some progress on this feature but dark mode brakes Select2 based fields.
I think we can add ui
tag here. WDYT @jowilf?
Hi @hasansezertasan, I had a similar issue with select2 when when I was trying to integrate validation errors. I was able to fix it using this css code. Perhaps, you could try using a similar approach?