fbpx
Wikipedia

Light-on-dark color scheme

A light-on-dark color scheme —also called black mode, dark mode, dark theme, night mode, or lights-out (mode)— is a color scheme that uses light-colored text, icons, and graphical user interface elements on a dark background. It is often discussed in terms of computer user interface design and web design. Many modern websites and operating systems offer the user an optional light-on-dark display mode.

Dark theme for GNOME
Versions of a web site in normal display mode (left) and dark mode (right)

Some users find dark mode displays more visually appealing, and claim that it can reduce eye strain.[1] Displaying white on full brightness uses roughly six times as much power as pure black on a 2016 Google Pixel, which has an OLED display.[2] However conventional LED displays cannot benefit from reduced power consumption.[3] Most modern operating systems support an optional light-on-dark color scheme.[4]

History

 
The video game Zork running on a green-on-black CRT display

Predecessors of modern computer screens, such as cathode-ray oscillographs, oscilloscopes, etc., tended to plot graphs and introduce other content as glowing traces on a black background.

With the introduction of computer screens, originally user interfaces were formed on CRTs like those used for oscillographs or oscilloscopes. The phosphor was normally a very dark color, and lit up brightly when the electron beam hit it, appearing to be white, green, blue, or amber on a black background, depending on phosphors applied on a monochrome screen. RGB screens continued to operate similarly, using all the beams set to "on" to form white.

With the advent of teletext, research was done into which primary and secondary light colors and combinations worked best for this new medium.[5] Cyan or yellow on black was typically found to be optimal from a palette of black, red, green, yellow, blue, magenta, cyan and white.

The opposite color set, a dark-on-light color scheme, was originally introduced in WYSIWYG word processors to simulate ink on paper, and became the norm.

In 2018, Apple followed in macOS 10.14.[6] In September 2019, iOS 13 and Android 10 both introduced dark modes.[7][8]

Firefox and Chromium have optional dark theme for all internal screens. It will also be possible for third-party developers to implement their own dark themes.[9]

In 2019, a "prefers-color-scheme" option was created for front-end web developers, being a CSS property that signals a user's choice for their system to use a light or dark color theme.[10]

Energy usage

Light on dark color schemes require less energy to display on OLED displays. This positively impacts battery life and energy consumption.[11]

While an OLED will consume around 40% of the power of an LCD displaying an image that is primarily black, it can use more than three times as much power to display an image with a white background, such as a document or web site.[12] This can lead to reduced battery life and energy usage unless a light-on-dark color scheme is used. The long-term reduced power usage may also prolong battery life or the useful life of the display and battery.

The energy savings that can be achieved using a light-on-dark color scheme are because of how OLED screens work: in an OLED screen, each subpixel generates its own light and it only consumes power when generating light. This is in contrast to how an LCD works: in an LCD, subpixels either block or allow light from an always-on (lit) LED backlight to pass through.

"AMOLED Black" color schemes (that use pure black instead of dark gray) do not necessarily save more energy than other light-on-dark color schemes that use dark gray instead of black, as the power consumption on an AMOLED screen decreases proportionately to the average brightness of the displayed pixels. Although it is true that AMOLED black does save more energy than dark gray, the additional energy savings are often negligible; AMOLED black will only give an additional energy saving of less than 1%, for instance, over the dark gray that's used in the dark theme for Google's official Android apps.[13] In November 2018, Google confirmed that dark mode on Android saved battery life.[14]

Issues with the web

Some argue that a color scheme with light text on a dark background is easier to read on the screen, because the lower overall brightness causes less eyestrain. Others[15][16][17] argue to the contrary. The caveat is that most pages on the web are designed for white backgrounds; GIF and PNG images with a transparency bit instead of alpha channels tend to show up with choppy outlines, as well as causing problems with other graphical elements.

There is a prefers-color-scheme media feature on CSS, to detect if the user has requested light or dark color scheme and serve the requested color scheme. It can be indicated from the user's operating system preference or a user agent.[10][18]

CSS example:

@media (prefers-color-scheme: dark) {  body {  color: #ccc;  background: #222;  } } 

JavaScript example:[19]

if (window.matchMedia('(prefers-color-scheme: dark)').matches) { dark(); } 

See also

References

  1. ^ "Dark mode is easier on your eyes and battery". November 21, 2018.
  2. ^ Emily Price (November 11, 2018). "Use Dark Mode to Conserve Your Phone's Battery Power". Lifehacker. Retrieved March 20, 2021.
  3. ^ Eisfeld, Henriette; Kristallovich, Felix (2020). The Rise of Dark Mode : A qualitative study of an emerging user interface design trend.
  4. ^ David Murphy. "Embrace Evil by Enabling Dark Mode in Every App". Lifehacker. Retrieved November 15, 2020.
  5. ^ Petterson, Rune (March 1985). "Use of Colors in Teletext and Videotex". ResearchGate.{{cite web}}: CS1 maint: url-status (link)
  6. ^ "macOS Mojave: Dark Mode, Stacks, & More". MacRumors. Retrieved August 8, 2022.
  7. ^ "How to Enable Dark Mode in iOS 13". MacRumors. Retrieved August 8, 2022.
  8. ^ "Here's how to enable the Android 10 dark theme mode". Android Authority. September 3, 2019. Retrieved August 8, 2022.
  9. ^ Porter, Jon (June 3, 2019). "Dark mode is coming to iOS 13". The Verge. Retrieved June 5, 2019.
  10. ^ a b "prefers-color-scheme - CSS: Cascading Style Sheets | MDN". MDN Web Docs. Retrieved March 18, 2021.{{cite web}}: CS1 maint: url-status (link)
  11. ^ Gottsegen, Gordon. "Using Android's dark mode improves battery life, Google confirms". CNET.
  12. ^ Stokes, Jon. (2009-08-11) This September, OLED no longer "three to five years away" 2012-01-25 at the Wayback Machine. Arstechnica.com. Retrieved 2011-10-04.
  13. ^ Raga, Dylan (June 27, 2019). "No, "AMOLED Black" Does NOT Save More Battery Than Dark Gray". XDA.
  14. ^ Welch, Chris (November 2, 2018). "Google confirms dark mode is a huge help for battery life on Android". The Verge.
  15. ^ "Love dark mode? Here's why you may still want to avoid it". Android Authority. June 29, 2020. Retrieved September 12, 2020.
  16. ^ Clarke, Laurie (July 30, 2019). "Dark mode isn't as good for your eyes as you believe". Wired UK. ISSN 1357-0978. Retrieved September 12, 2020.
  17. ^ Budiu, Raluca (February 2, 2020). "Dark Mode vs. Light Mode: Which Is Better?". nngroup.com.
  18. ^ Walsh, David (January 28, 2019). "prefers-color-scheme: CSS Media Query". David Walsh Blog. Retrieved March 18, 2021.
  19. ^ "Window.matchMedia() - Web APIs | MDN". developer.mozilla.org. Retrieved March 18, 2021. The Window interface's matchMedia() method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query{{cite web}}: CS1 maint: url-status (link)

light, dark, color, scheme, this, article, about, technical, scheme, concept, information, concerning, usage, dark, mode, wikipedia, wikipedia, dark, mode, light, dark, color, scheme, also, called, black, mode, dark, mode, dark, theme, night, mode, lights, mod. This article is about the technical scheme and its concept For information concerning usage of dark mode in Wikipedia see Wikipedia Dark mode A light on dark color scheme also called black mode dark mode dark theme night mode or lights out mode is a color scheme that uses light colored text icons and graphical user interface elements on a dark background It is often discussed in terms of computer user interface design and web design Many modern websites and operating systems offer the user an optional light on dark display mode Dark theme for GNOME Versions of a web site in normal display mode left and dark mode right Some users find dark mode displays more visually appealing and claim that it can reduce eye strain 1 Displaying white on full brightness uses roughly six times as much power as pure black on a 2016 Google Pixel which has an OLED display 2 However conventional LED displays cannot benefit from reduced power consumption 3 Most modern operating systems support an optional light on dark color scheme 4 Contents 1 History 2 Energy usage 3 Issues with the web 4 See also 5 ReferencesHistory Edit The video game Zork running on a green on black CRT display Predecessors of modern computer screens such as cathode ray oscillographs oscilloscopes etc tended to plot graphs and introduce other content as glowing traces on a black background With the introduction of computer screens originally user interfaces were formed on CRTs like those used for oscillographs or oscilloscopes The phosphor was normally a very dark color and lit up brightly when the electron beam hit it appearing to be white green blue or amber on a black background depending on phosphors applied on a monochrome screen RGB screens continued to operate similarly using all the beams set to on to form white With the advent of teletext research was done into which primary and secondary light colors and combinations worked best for this new medium 5 Cyan or yellow on black was typically found to be optimal from a palette of black red green yellow blue magenta cyan and white The opposite color set a dark on light color scheme was originally introduced in WYSIWYG word processors to simulate ink on paper and became the norm In 2018 Apple followed in macOS 10 14 6 In September 2019 iOS 13 and Android 10 both introduced dark modes 7 8 Firefox and Chromium have optional dark theme for all internal screens It will also be possible for third party developers to implement their own dark themes 9 In 2019 a prefers color scheme option was created for front end web developers being a CSS property that signals a user s choice for their system to use a light or dark color theme 10 Energy usage EditLight on dark color schemes require less energy to display on OLED displays This positively impacts battery life and energy consumption 11 While an OLED will consume around 40 of the power of an LCD displaying an image that is primarily black it can use more than three times as much power to display an image with a white background such as a document or web site 12 This can lead to reduced battery life and energy usage unless a light on dark color scheme is used The long term reduced power usage may also prolong battery life or the useful life of the display and battery The energy savings that can be achieved using a light on dark color scheme are because of how OLED screens work in an OLED screen each subpixel generates its own light and it only consumes power when generating light This is in contrast to how an LCD works in an LCD subpixels either block or allow light from an always on lit LED backlight to pass through AMOLED Black color schemes that use pure black instead of dark gray do not necessarily save more energy than other light on dark color schemes that use dark gray instead of black as the power consumption on an AMOLED screen decreases proportionately to the average brightness of the displayed pixels Although it is true that AMOLED black does save more energy than dark gray the additional energy savings are often negligible AMOLED black will only give an additional energy saving of less than 1 for instance over the dark gray that s used in the dark theme for Google s official Android apps 13 In November 2018 Google confirmed that dark mode on Android saved battery life 14 Issues with the web EditSome argue that a color scheme with light text on a dark background is easier to read on the screen because the lower overall brightness causes less eyestrain Others 15 16 17 argue to the contrary The caveat is that most pages on the web are designed for white backgrounds GIF and PNG images with a transparency bit instead of alpha channels tend to show up with choppy outlines as well as causing problems with other graphical elements There is a prefers color scheme media feature on CSS to detect if the user has requested light or dark color scheme and serve the requested color scheme It can be indicated from the user s operating system preference or a user agent 10 18 CSS example media prefers color scheme dark body color ccc background 222 JavaScript example 19 if window matchMedia prefers color scheme dark matches dark See also EditAMOLED Blackle Night Shift software OLED Solarized color scheme References Edit Dark mode is easier on your eyes and battery November 21 2018 Emily Price November 11 2018 Use Dark Mode to Conserve Your Phone s Battery Power Lifehacker Retrieved March 20 2021 Eisfeld Henriette Kristallovich Felix 2020 The Rise of Dark Mode A qualitative study of an emerging user interface design trend David Murphy Embrace Evil by Enabling Dark Mode in Every App Lifehacker Retrieved November 15 2020 Petterson Rune March 1985 Use of Colors in Teletext and Videotex ResearchGate a href Template Cite web html title Template Cite web cite web a CS1 maint url status link macOS Mojave Dark Mode Stacks amp More MacRumors Retrieved August 8 2022 How to Enable Dark Mode in iOS 13 MacRumors Retrieved August 8 2022 Here s how to enable the Android 10 dark theme mode Android Authority September 3 2019 Retrieved August 8 2022 Porter Jon June 3 2019 Dark mode is coming to iOS 13 The Verge Retrieved June 5 2019 a b prefers color scheme CSS Cascading Style Sheets MDN MDN Web Docs Retrieved March 18 2021 a href Template Cite web html title Template Cite web cite web a CS1 maint url status link Gottsegen Gordon Using Android s dark mode improves battery life Google confirms CNET Stokes Jon 2009 08 11 This September OLED no longer three to five years away Archived 2012 01 25 at the Wayback Machine Arstechnica com Retrieved 2011 10 04 Raga Dylan June 27 2019 No AMOLED Black Does NOT Save More Battery Than Dark Gray XDA Welch Chris November 2 2018 Google confirms dark mode is a huge help for battery life on Android The Verge Love dark mode Here s why you may still want to avoid it Android Authority June 29 2020 Retrieved September 12 2020 Clarke Laurie July 30 2019 Dark mode isn t as good for your eyes as you believe Wired UK ISSN 1357 0978 Retrieved September 12 2020 Budiu Raluca February 2 2020 Dark Mode vs Light Mode Which Is Better nngroup com Walsh David January 28 2019 prefers color scheme CSS Media Query David Walsh Blog Retrieved March 18 2021 Window matchMedia Web APIs MDN developer mozilla org Retrieved March 18 2021 The Window interface s matchMedia method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string as well as to monitor the document to detect when it matches or stops matching that media query a href Template Cite web html title Template Cite web cite web a CS1 maint url status link Retrieved from https en wikipedia org w index php title Light on dark color scheme amp oldid 1121476538, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.