Originally published with interactive examples at lukiluki.me.
You open the same website at midday and late in the evening. The text stays familiar, but the light changes, the sky grows calmer and summer greens become winter outlines. Can an interface feel alive without making you learn new controls on every visit?
Ambient Mode adds atmosphere to light and dark reading colors: light, gradients, time of day or seasons change the background while content and controls stay dependable. This can give a website character and express personal preferences. Separate design layers, respect for system preferences and deliberate user control are essential. An attractive effect alone proves neither improved usability nor lower energy consumption.
Merksatz (Design principle):
Reading colors provide orientation, atmosphere sets the mood, and users decide how much change they want.
What changes between color scheme and atmosphere?
Dark and light modes first define which surfaces and text colors are readable together. Atmosphere can go further by borrowing light from content, representing a time of day or adding seasonal accents. Here, “Ambient Mode” is a design term, rather than the name of a single web standard.
A concrete product example is YouTube's Ambient Mode: video colors gently spread into the surrounding background. The effect complements the dark color scheme. A broader pattern follows: content or context supplies the mood, while the interface retains its purpose.
Three layers are useful for a digital garden:
- Reading: Text, reading surfaces, links and focus indicators need tested light and dark variants.
- Atmosphere: Sky, glow and landscape change; they convey no essential information.
- Meaning: Categories keep their colors, whether it is autumn or nighttime.
Colors and spacing are stored as design tokens (Named design values, such as text color, background, spacing or category accent, shared by components.). A warm evening sky can sit behind a clearly recognizable pink design tile. The season determines the surroundings; the category explains the content.
Who decides: the system, the clock or the person?
The system preference is a good starting point because people may already have chosen reading colors in their operating system or browser. The CSS query prefers-color-scheme exposes that preference. It says nothing about actual room lighting or the local position of the sun.
| Mode | What controls the interface? | Suitable for | Limitation |
|---|---|---|---|
| System | The light or dark browser/OS scheme; the season follows the calendar. | A respectful default without an additional decision. | The system does not provide a time-of-day atmosphere. |
| Auto | Local time and calendar determine reading colors and atmosphere. | A page whose mood follows the day. | Fixed times are not measured sunrise and sunset times. |
| Manual | A chosen time and season determine the appearance. | A personal mood independent of the actual date. | This is a deliberate departure from the system preference. |
Here in the garden, the page starts with System. Only Auto or Manual takes over control. Auto uses simple day boundaries of 06:30 and 18:30; the four seasons follow Northern Hemisphere meteorological months. This is a transparent design rule, rather than a location or weather sensor. The automatic season may therefore be unsuitable for visitors in the Southern Hemisphere.
Try Manual in the header, or Menu → Ambience on a phone: move the time from midday to night and switch from summer to winter. Sky, light and vegetation respond; navigation and categories stay familiar. Returning to System hands reading colors back to the browser and operating system. This experiment demonstrates the design; it does not measure energy savings.
How do transitions work with native CSS?
A convincing transition does not need a new background image for every hour. A few color stops and calculated intermediate values are enough for a calm progression through the day. In this garden, sky colors are mixed between such stops; sun, moon and seasonal shapes complete the scene. The reading scheme still switches between light and dark variants, rather than making every intermediate color a new text palette. Both variants and their actual backgrounds belong in the contrast check.
Native CSS provides useful building blocks for new interfaces: light-dark() chooses between two color values according to the active color-scheme; @property gives a custom CSS variable a type and enables interpolated animation. MDN lists the color variant of light-dark() as Baseline since May 2024, and @property since July 2024. That is useful compatibility guidance, rather than a guarantee for old browsers or embedded WebViews.
The following CSS is a small standalone recipe for an existing .reading-surface text area and a decorative .ambient-layer background. Both elements must exist, and the application must set data-time="evening" on the root element after an explicit time selection. Without that attribute, the initial state remains. The colors are examples, rather than a fully tested product palette.
@property --ambient-light { syntax: "<color>"; inherits: true; initial-value: rgb(249 196 131 / 18%); } :root { color-scheme: light dark; } .reading-surface { color: #172033; background: #faf8f4; } @media (prefers-color-scheme: dark) { .reading-surface { color: #e8edf5; background: #171c29; } } @supports (color: light-dark(white, black)) { .reading-surface { color: light-dark(#172033, #e8edf5); background: light-dark(#faf8f4, #171c29); } } .ambient-layer { pointer-events: none; background: radial-gradient( ellipse at 75% 15%, var(--ambient-light), transparent 65% ); transition: --ambient-light 700ms ease; } :root[data-time="evening"] .ambient-layer { --ambient-light: rgb(147 123 221 / 18%); } @media (prefers-reduced-motion: reduce) { .ambient-layer { transition: none; } } The reading surface stays opaque and follows the system; the glow has its own responsibility. Without light-dark(), the preceding colors and media query apply. Without @property, changing the custom variable may be abrupt, but the content remains readable. Gentle transforms and opacity changes are another option for continuous sun paths. Add a large blur or continuously running canvas scene only after checking performance.
What does OLED actually have to do with energy?
On OLED (Organic Light-Emitting Diode: Pixels emit their own light instead of being lit by a shared backlight.) displays, darker pixels need less energy. That explains a potential advantage of dark surfaces. This pixel-level saving does not directly carry over to a conventional backlit LCD (Liquid Crystal Display: A screen whose liquid crystal pixels are illuminated by a backlight.). Dark Mode also has design and personal motivations and cannot be reduced to a single historical purpose.
The 2021 Purdue study examined six Android apps on four OLED smartphones, each during 60 seconds of use. At 30–50 percent brightness, Dark Mode saved an average of 3–9 percent of total phone power; at 100 percent brightness, savings were 39–47 percent. These results describe the devices and workflows studied, rather than savings for every website or current hardware.
A glow is not evidence of energy savings
Bright backgrounds and additional animation can increase display and
computation costs. Ambient Mode can use less or more energy; without
measurement on the target device, the balance remains unknown.
Battery life between charges, battery lifespan and display aging are also different questions. Longer runtime between charges does not establish a longer device lifespan. Apple describes OLED burn-in as a possible result of high-contrast static images displayed for long periods at high brightness, and recommends automatic brightness and a short screen lock interval among other measures. An animated website offers no guaranteed protection; bright icons that remain in place in Dark Mode are still static image elements.
When does atmosphere help, and when does it distract?
A garden, portfolio or media site can gain a recognizable character from subtle changes in light. An administrative interface, long work form or focused reading view may be better served by a quiet background. This is a design hypothesis: whether atmosphere improves recognition, time spent or enjoyment must be tested with real users.
Readability matters between the attractive end states too. Version 2.2 of the WCAG (Web Content Accessibility Guidelines: The W3C's guidelines for accessible web content.) requires at least 4.5:1 contrast for normal text and 3:1 for qualifying large text. Behind translucent surfaces, a moving glow can alter the actual visible background. Check intermediate states or use an opaque reading surface.
Motion is a separate decision. prefers-reduced-motion signals a preference for less nonessential animation. Sun and moon can remain still while selected colors and seasons continue to work. For a complete product, a separate control to disable decorative effects is also useful; a system preference alone does not cover every wish.
Four checks before using it
- Respect the system: Without a saved, deliberate override, the page starts in the browser/OS scheme and follows changes to it.
- Read intermediate states: Check midday, twilight, night and every season; text and focus indicators remain visible against their actual backgrounds.
- Keep controls calm: Enable reduced motion and use sliders, mode selection and seasons by keyboard; decoration must not intercept clicks.
- Measure the cost: On a less powerful target device, check CPU and GPU activity and smooth scrolling; energy claims also need appropriate hardware measurements.
Sources and next steps
Source research and verification in the original article: October 7, 2026. The Purdue figures explicitly come from 2021; the garden rules are an original implementation example.
- YouTube: Ambient Mode – a concrete use in a media product.
- MDN:
prefers-color-scheme,light-dark()and@property– system preferences and native color features. - Purdue: Dark Mode measurements and original paper by Dash and Hu, MobiSys 2021 – method and limitations of OLED energy claims.
- Apple: OLED displays – image persistence, burn-in and brightness.
- W3C: Minimum contrast and MDN: Reduced motion – boundaries for comfortable design.
The Accessibility tile explores contrast and usability further. Explainable Text shows another kind of adaptation: readers choose the depth of information there, and the atmosphere here.
Read the original guide & explore the interactive playground on *lukiluki.me*.

