chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Remove the "dark-mode" from the Settings UI

Open guisalva opened this issue 11 months ago • 3 comments

I want to hide the option dark-mode of the settings UI.

There is a way to hide the theme switch from the user ?

I know that I could hide using CSS, but I'd like to know if there is an official and correct way to do it.

guisalva avatar Mar 26 '24 16:03 guisalva

I like dark mode.

nestorcolt-clv avatar Mar 28 '24 17:03 nestorcolt-clv

It's not supported. CS injection would be the way to go unless you want to fork the FE and remove it entirely.

dahifi avatar Mar 29 '24 15:03 dahifi

@dahifi Any tips on CSS injection? It seems react creates random class names so I haven't been able to target specific elements.

hayescode avatar Mar 29 '24 22:03 hayescode

Hello, you can add custom css to hide the button, or overload the dark theme's palette with the light theme ones.

ModEnter avatar Sep 13 '24 12:09 ModEnter