silverstripe / silverstripe-admin

Silverstripe Admin Component
BSD 3-Clause "New" or "Revised" License
25 stars 92 forks source link

CMS dark mode or theme #1229

Open clarkepaul opened 3 years ago

clarkepaul commented 3 years ago

I'm creating this issue as a bit of a placeholder, so a case may be built up for, or against this enhancement.

The concept of dark mode for the CMS seems like a huge undertaking, specially considering the thousands of modules out there, but would be a great way to smarten up the UI. Also it has been stated to have accessibility benefits for those looking at the screen all day (although I can find arguments for and against it, see below). I am by no means an expert on the benefits here apart from what I read, but I do like making users have choices based on their own understandings.

Example for (more reading on this view):

The advantages of Dark Mode are, it enhances visual ergonomics by reducing eye strain, facilitating screens to adjust according to current light conditions and providing comfort of use at night or in dark environments.

Example against (more reading on this view):

Why dark mode causes more accessibility issues than it solves? Part of this has to do with light levels: with a bright display (white background) the iris closes a bit more, decreasing the effect of the “deformed” lens; with a dark display (black background) the iris opens to receive more light and the deformation of the lens creates a much fuzzier focus at the eye.

There has been one instance of this already being setup within the Login Forms module a few years ago.

This could be an opportunity to uplift the design of the CMS in general, also Silverstripe has new brand colours which could be a way to introduce them into the UI. Unfortunately this is an all or nothing type effort so all of the pattern library and more would need considering if we went down this path.

michalkleiner commented 3 years ago

If the dark mode was the last thing remaining to do in the CMS UI, then why not. At the moment I'd say there are bigger problems to solve first.

kevingroeger commented 1 year ago

Hey, sorry for digging up such an old Issue. Just a quick question; could this be implemented in SilverStripe 5? I would guess that you would have to adjust stylings anyways. Would be awesome if it could get added :)

michalkleiner commented 1 year ago

Hi @kevingroeger, CMS 5 will be released in the coming weeks and is in feature freeze at the moment. This has missed the cut off, CMS 5 didn't really need any major UI updates. I imagine this can be done as an opt-in enhancement in a minor version throughout the 5.x lifeline if someone picks it up. At the moment this is probably a lower priority.

sunnysideup commented 1 year ago

I have created a dark theme for the CMS: https://packagist.org/packages/sunnysideup/cms-dark-theme

elliot-sawyer commented 12 months ago

I came here to suggest @sunnysideup 's cms-dark-theme module only to find he's already linked to it here :+1: