Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getTheme = (themeName: string) => {
const theme = {
...DEFAULT_THEME,
...(THEMES[themeName] || {})
};
const colors = getAutoColorsForTheme(theme);
const merged = {
...TEXT_DEFAULTS,
...colors
};
const order: RMWC.ThemeOptionT[] = [
'primary',
'secondary',
'error',
'background',
'surface',
'onPrimary',
'onSecondary',
'onSurface',
'onError',
'textPrimaryOnBackground',