function useGalioTheme() {
  const theme = React.useContext(GalioContext);

  if (theme === undefined) {
    throw new Error(
      'useGalioTheme must be used within a component wrapped with GalioProvider'
    );
  }

  return theme;
}
useGalioTheme 
Galio custom hook which returns the theme object