Skip to content

v0.3.1

Choose a tag to compare

@tompassarelli tompassarelli released this 19 Jun 13:22
6a50a9a

Dark mode — readable text over image heroes

A refinement to the dark mode introduced in v0.3.0. Pages with a full-bleed hero image and light caption text could invert that text to near-black over the untouched dark image, leaving it unreadable. The engine is now backdrop-aware:

  • A dark scrim is composited over full-bleed background images so text on top stays legible.
  • Light text authored over an image hero is preserved instead of being inverted to dark; dark text over a hero is lifted to light so it reads against the scrim.
  • Detection is scoped to genuine raster heroes (cover/contain, non-tiled) — gradients, tiled textures, and decorative images are left untouched.

Inversion continues to run once at the style-resolution stage — cached, with no per-frame repaint cost.