const transparencies = ['1000', '950', '900', '800', '700', '600', '500', '400', '300', '200', '100', '50', '25', '0']; // All available scales type Transparency = typeof transparencies[number]; // @see https://stackoverflow.com/a/64174790 type BaseColor = { [transparency in Transparency]?: T; }; // Generic Color Palette export interface ColorPalette { [color: string]: BaseColor; }