This page imports the package as ES modules, so it has to be served:
python3 -m http.server 8000 then open http://localhost:8000/demo/sun.html
drag the sky · ← → · space to play
12:00
nilamhas a sun
measured now · never written
one hue · one sun · everything solved
Colour, proven. Now lit.
This page has no light theme and no dark theme. It has a sun, and every surface,
shadow, edge and ink is re-solved from where it is, by the same solver that proves the palette. Drag it.
—
at every position
—assertions in CI
97sun positions proven
0excused
settings
contracts
surface
state
ratio
body text on card
holds
—
border on card
holds
—
brand on page
holds
—
hover tint on card
decorative
—
page vs card
rim, not fill
—
A sapphire has no colour of its own. What you see is the light that went in, bent and thinned by the stone,
coming back out. Move the light and the stone changes without having changed at all.
This interface is built the same way. There is one hue. Everything else is where the sun is.
why the lights switch
Text is solved against the card. With the card in the way, no ink reaches 7:1 while the page sits between
lightness 0.40 and 0.72, and for part of that band not even 4.5:1. So the dial never goes there:
it steps over the band in one move as the sun clears the horizon, marked on the sky. That is the one
discontinuity in the system, and it is where the mode flips.
Dark mode was never a switch. It is the night end of one continuous solve.