One light for the whole page: switch on the lamp and every control swings its shadow away from it.
Six controls that share one light. Every Gnomon control on a page casts its shadow from the same source, so when the light moves, every shadow on the page moves with it. Lamp Toggle is a desk lamp switch: turn it on and the head swings down, the bulb lights a warm pool, and the page light moves to the lamp, so shadows swing away from it and stretch long. Sundial Time Picker sets the time by moving the sun: drag around the slate dial and the brass gnomon shadow swings to the hour, and that sun becomes the page light too. Lift Buttons are ceramic keys whose shadows stretch when hovered and tuck in when pressed. Shadow Tabs carry a lacquered block that lifts off, crosses and sets down on the new tab. Sundial Progress lets a post's shadow lengthen along a slate slab as its sun sinks. Orbit Light Loader circles a small lamp round a ceramic ball so its shadow wheels the other way, then parks overhead when done. Light and dark pages, keyboard and screen reader ready, reduced motion, zero dependencies.
Type: Component packs. Price: $2. Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). Tags: realistic shadow css, sundial progress, time picker, toggle switch, segmented control, tabs component, loader animation, light and shadow ui.
What is inside (6 shadow controls)
Sundial Progress: As the work goes on the sun sinks: a brass post's shadow stretches along a slate slab, blurring at its far end, and covers the marks it passes.
Lamp Toggle: Turn the lamp on and its head swings down onto the desk, and the light of the whole page moves to it: every Gnomon shadow swings away and stretches long.
Lift Buttons: Ceramic keys stand off the surface: hover lifts one and its shadow stretches and softens; pressing sinks it until the shadow tucks under.
Sundial Time Picker: Drag the sun round a slate dial: the brass gnomon's shadow swings to the hour, and the sun you set lights every other Gnomon control on the page.
Shadow Tabs: A lacquered block marks the tab: it lifts off with a growing, softening shadow, carries across and sets down sharp on the new tab.
Orbit Light Loader: A small lamp circles a ceramic ball on a plinth: its lit side turns and its shadow wheels round the other way, then the lamp parks overhead when done.