function getTheme()

in initializer-page/src/components/utils/Theme.js [3:13]


function getTheme() {
  const isDarkConfig =
    window.matchMedia &&
    window.matchMedia('(prefers-color-scheme: dark)').matches

  const theme = localStorage.getItem('springtheme')
  if (!theme) {
    return isDarkConfig ? 'dark' : 'light'
  }
  return theme
}