About
A sun travels along an arc above the horizon while the sky blends from dawn to dusk. Plays on its own; hover, drag or use arrow keys to scrub the day. Optional time markers. Sky built only from theme tokens.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Sun Arc to your project and fits it to your theme.
Code
How Sun Arc is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import SunArc from "@/components/ui/sun-arc";
export default function SunArcDemo() {
return (
<div className="flex w-full items-center justify-center p-4 sm:p-8">
<SunArc
label="A summer day by the sea, from sunrise to dusk"
moments={[
{ time: "07:10", label: "Swim at low tide" },
{ time: "09:00", label: "Breakfast outside" },
{ time: "12:30", label: "Lunch in the shade" },
{ time: "16:00", label: "Surf" },
{ time: "19:40", label: "Sunset" },
]}
/>
</div>
);
}


