Skip to content

πŸ™Œ OpenHands: AI-Driven Development

986 B
Raw Blame
import type { ColorThemeDefinition, ColorThemeKey } from "../types";
import { openhandsDeepsea } from "./openhands-deepsea";
import { openhandsNeutral } from "./openhands-neutral";
import { openhandsNeo } from "./openhands-neo";
import { lightPlus } from "./light-plus";
import { solarizedLight } from "./solarized-light";

/**
 * The theme registry.
 *
 * To add a theme: create a sibling module exporting a `ColorThemeDefinition`,
 * add its key to `ColorThemeKey` in `../types.ts`, and register it below.
 */
export const COLOR_THEMES: Record<ColorThemeKey, ColorThemeDefinition> = {
  "openhands-deepsea": openhandsDeepsea,
  "openhands-neutral": openhandsNeutral,
  "openhands-neo": openhandsNeo,
  "light-plus": lightPlus,
  "solarized-light": solarizedLight,
};

export const DEFAULT_COLOR_THEME: ColorThemeKey = "openhands-neutral";

export const AVAILABLE_COLOR_THEMES = Object.entries(COLOR_THEMES).map(
  ([key, def]) => ({ key: key as ColorThemeKey, label: def.label }),
);