Aeris Dark Mode Toggle
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
Form & FieldMotion
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
The light/dark switch for a navbar: a round icon button with a thin moon (a sun in dark mode) that fills pale lime under the pointer; add className="border-line-2!" for the hairline circle the template sets it in. Both icons and both labels are in the server HTML and CSS shows the pair for <html data-theme>, so nothing flashes and hydration matches; the icon that comes in fades up with a small turn; the choice is saved. Client component.
It is part of Form & Field: warm paper, ink pills, one lime. The style’s 91 pieces share one set of tokens, type and motion, in a light and a dark theme, so whatever you take from it fits together.
To put it in your project, copy the prompt into Claude Code, OpenAI Codex or Cursor, or add it by hand. The documentation walks through both.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.
A light/dark switch for the navbar that saves the choice and shows the right icon with no flash.