Since Seafile 13 there is no built-in switch to turn Dark Mode off server-wide. Here is a simple, upgrade-friendly way to force Light Mode for everyone and swap the default orange for your own brand color using only Seafile’s customization features, no code changes to the app itself.
What we do
- Force Light Mode via a small script
- Hide the Dark/Light toggle in the top bar
- Override the orange accent color
- Force Light Mode
Seafile stores the chosen color mode in localStorage under the key sf_color_mode. Using Seafile’s template customization, override base_for_react.html and add this right before :
<script>
// Force light mode
localStorage.setItem('sf_color_mode', 'light');
</script>
This ensures the app always loads in Light Mode, and also resets any user who had previously enabled Dark Mode.
- Hide the color-mode toggle
So users can’t switch back to Dark Mode, hide the sun/moon button in the top bar via Custom CSS:
/* Hide the color-mode switch in the top bar */
.sf-icon-color-mode {
display: none !important;
}
- Replace the orange accent color
Seafile’s default accent is orange. You can override it with your own color using this handy tool:
Main Color - Seafile Admin Manual
Pick your color, generate the CSS, and add it to your Custom CSS as well. In Light Mode it cleanly overrides the default orange.
Result
Dark Mode is effectively disabled for all users, the toggle is gone, and the UI uses your custom accent color instead of orange. All done through Seafile’s built-in customization — nothing to re-patch after an update (just re-check your template override after major upgrades).