message: Check if window exists
diff: @@ -119,7 +119,7 @@ function useSystemColorMode() {
  }
  function getSystemColorMode(): ColorMode {
  - if (window?.matchMedia?.('(prefers-color-scheme: dark)')?.matches) {
  + if (typeof window !== 'undefined' && window.matchMedia?.('(prefers-color-scheme: dark)')?.matches) {
  return 'night'
  }
  