refactor(tui): drop unused theme re-exports (#52986)

This commit is contained in:
Kit Langton
2026-10-03 21:32:58 -07:00
committed by GitHub
Unverified
parent 1287996a91
commit 697ca1c9d3
3 changed files with 2 additions and 22 deletions
-13
View File
@@ -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 = {
+1 -8
View File
@@ -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<string, unknown>
+1 -1
View File
@@ -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<string, ThemeV1Json> = {
aura,