diff --git a/packages/tui/src/context/theme.tsx b/packages/tui/src/context/theme.tsx index da702fad711..4802bacee67 100644 --- a/packages/tui/src/context/theme.tsx +++ b/packages/tui/src/context/theme.tsx @@ -74,19 +74,6 @@ export const createThemeSource = (config: string): ThemeSource => ({ }, }) -export { discoverThemes } from "../theme/discovery" - -export { - DEFAULT_THEMES, - addTheme, - allThemes, - generateSyntax, - hasTheme, - selectedForeground, - upsertTheme, - type Theme, -} from "../theme" - const THEME_REFRESH_DELAYS = [250, 1000] as const type State = { diff --git a/packages/tui/src/theme/index.ts b/packages/tui/src/theme/index.ts index 3c367afe0ad..6e75be31336 100644 --- a/packages/tui/src/theme/index.ts +++ b/packages/tui/src/theme/index.ts @@ -1,16 +1,9 @@ -import { - migrateV1, - parseThemeDocument, - resolveThemeDocument, - type ThemeDocument, - type ModeDefinition, -} from "@opencode/theme/tui" +import { migrateV1, parseThemeDocument, type ThemeDocument, type ModeDefinition } from "@opencode/theme/tui" import { resolveThemeColors } from "./resolve" import { DEFAULT_THEMES, type Theme, type ThemeV1Json } from "./v1" import opencode from "./assets/v2/opencode.json" with { type: "json" } export { DEFAULT_THEMES, generateSyntax, selectedForeground, type Theme, type ThemeV1Json } from "./v1" -export { resolveThemeDocument, type ThemeDocument } export type ThemeDocumentSource = Record diff --git a/packages/tui/src/theme/v1.ts b/packages/tui/src/theme/v1.ts index 4c9ca5d36e1..f9115caef5f 100644 --- a/packages/tui/src/theme/v1.ts +++ b/packages/tui/src/theme/v1.ts @@ -33,7 +33,7 @@ import vercel from "./assets/vercel.json" with { type: "json" } import vesper from "./assets/vesper.json" with { type: "json" } import zenburn from "./assets/zenburn.json" with { type: "json" } -export type { ColorValue, HexColor, RefName, Theme, ThemeColor, ThemeV1Json, Variant } from "@opencode/theme/tui/v1" +export type { ColorValue, Theme, ThemeColor, ThemeV1Json } from "@opencode/theme/tui/v1" export const DEFAULT_THEMES: Record = { aura,