This adds four new VSCode themes to Storybook which will allow us to more easily test these themes in Storybook. These themes were chosen because they are either used for accessibility (the high contrast themes) or are currently not compatible with the variant analysis UI (there are items that are not visible).
18 lines
606 B
TypeScript
18 lines
606 B
TypeScript
export enum VSCodeTheme {
|
|
Dark = "dark",
|
|
Light = "light",
|
|
LightHighContrast = "light-high-contrast",
|
|
DarkHighContrast = "dark-high-contrast",
|
|
GitHubLightDefault = "github-light-default",
|
|
GitHubDarkDefault = "github-dark-default",
|
|
}
|
|
|
|
export const themeNames: { [key in VSCodeTheme]: string } = {
|
|
[VSCodeTheme.Dark]: "Dark+",
|
|
[VSCodeTheme.Light]: "Light+",
|
|
[VSCodeTheme.LightHighContrast]: "Light High Contrast",
|
|
[VSCodeTheme.DarkHighContrast]: "Dark High Contrast",
|
|
[VSCodeTheme.GitHubLightDefault]: "GitHub Light Default",
|
|
[VSCodeTheme.GitHubDarkDefault]: "GitHub Dark Default",
|
|
};
|