Chakra UI Color Mode Persistence in SSR Builds: Choosing the Source of Truth
Chakra UI's color mode state has two possible sources of truth: the value persisted in localStorage on the client, and the theme's initialColorMode used when rendering on the server. In a client-only development setup the two never conflict, because no server markup exists. In a pre-rendered production build they can disagree, and React reports a hydration m