Back to Components

Global light

One light drives the whole scene — direction, day and night, shadows, highlights. Text is exempt: it is emissive, never lit, so it stays readable under any light. Flip the toggle to see the failure mode.

Card, lit. The shadow falls opposite the light, the highlight sits toward it, and the surface flips from day to night at the threshold — but this text never changes its job: dark on light, light on dark, always emissive.

Raised geometry. Move your pointer over the scene — it tilts, and the shadow follows the same light.

How it works: site.js turns one light (compass bearing + day/night) into CSS variables — shadow offset opposite the light, highlight toward it, warm daylight cooling to moonlight. Surfaces flip palettes at the midpoint (a theme is a decision, light is continuous), so text contrast never crosses through mid-gray; text itself is never lit, only flipped dark/light. The lit-text toggle paints the light gradient across the glyphs instead, and the text washes out where it meets the surface color.