import ThemeCache from './ThemeCache.mjs';
import Theme from './Theme.mjs';

const cacheThemes = new ThemeCache();
function createTheme(derivatives) {
  const derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives];
  if (!cacheThemes.has(derivativeArr))
    cacheThemes.set(derivativeArr, new Theme(derivativeArr));
  return cacheThemes.get(derivativeArr);
}

export { createTheme as default };
//# sourceMappingURL=createTheme.mjs.map
