import { COLOR_MODES_STANDARD } from '@elastic/eui' ; import type { EuiThemeSystem , EuiThemeColorModeStandard } from '@elastic/eui' ; import type { CoreTheme } from './types' ; internal export interface EuiTheme { colorMode : EuiThemeColorModeStandard ; euiThemeSystem ? : EuiThemeSystem ; } internal export const convertCoreTheme = ( coreTheme ) : EuiTheme => { const { darkMode } = coreTheme ; return { colorMode : darkMode ? COLOR_MODES_STANDARD . dark : COLOR_MODES_STANDARD . light , } ; } ;