The problem
By the video's count, only 10% of sites have dark mode, yet 40% of page loads happen in dark mode. So Safari 27.3 (beta) can now darken a light site by itself. It flips the brightness, and the result is a guess: pure black, glaring white text and cards that sink below the page.
The fix
Build your dark theme before the browser guesses it.
- Declare it. One line of CSS,
color-scheme: light dark, and Safari changes nothing. The dark mode is yours to build. - Start near-black. Use
#10131Bfor the base, never#000. - Lighten as you rise. Each layer up gets lighter: base
#10131B, card#181D28, panel#252E40. - Soften the extremes. Set text in off-white
#F2F4FAat 16.9:1, and trade the loud accent for a lighter, softer one:#FF9874in place of#EA580C.
Why it works
Pure black leaves nowhere darker to go, so shadows and depth disappear. Flipping the brightness sank the card below the page. Stepping each layer up puts it back on top: base, card, then panel. White on black is 21:1, and it glares. Off-white at 16.9:1 still passes easily.
How to apply it
Add the color-scheme line first. Then name your layers (base, card, panel) and give each one a colour, lightest on top. Check that every card is lighter than the page beneath it. Swap pure white text for an off-white and check its contrast. Last, look at your accent on the dark base: if it is loud, trade it for a lighter, softer one.



