So far I have this.
export const PacerThemes = ['Default', 'Dark Muted', 'Neon'] as const;
export type PacerTheme = typeof PacerThemes[number];
type ThemeProperties = {
exhaleHoldBorderColor: string;
exhaleHoldColor: string;
inhaleHoldBorderColor: string;
inhaleHoldColor: string;
};
type Themes = {
Default: ThemeProperties;
'Dark Muted': ThemeProperties;
Neon: ThemeProperties;
};
Is there a way to generate the Themes type from the PacerThemes array?