import { default as v8Light } from '@elastic/eui/dist/eui_theme_light.json' ; import { default as v8Dark } from '@elastic/eui/dist/eui_theme_dark.json' ; const globals = typeof window === 'undefined' ? { } : window ; export type Theme = typeof v8Light ; export const tag = globals . __kbnThemeTag__ || 'v8light' ; export const version = 8 ; export const darkMode = tag . endsWith ( 'dark' ) ; export const euiLightVars = v8Light ; export const euiDarkVars = v8Dark ; /**
 * EUI Theme vars that automatically adjust to light/dark theme
 */ export let euiThemeVars ; if ( darkMode ) { euiThemeVars = euiDarkVars ; } else { euiThemeVars = euiLightVars ; }