message: fix: closure issue with document.bodyand sync-body-class
diff: @@ -14,12 +14,15 @@ const mockBody = {
  classList: { add: noop, remove: noop },
  }
  -export const body = isBrowser ? document.body : mockBody
  +const getBody = () => {
  + return isBrowser ? document.body : mockBody
  +}
  /**
  * Function to add/remove class from `body` based on color mode
  */
  export function syncBodyClassName(isDark: boolean) {
  + const body = getBody()
  body.classList.add(isDark ? classNames.dark : classNames.light)
  body.classList.remove(isDark ? classNames.light : classNames.dark)
  }
  