We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49040c0 commit e728b94Copy full SHA for e728b94
1 file changed
packages/opencode/src/cli/cmd/tui/context/theme.tsx
@@ -130,7 +130,10 @@ function resolveTheme(theme: ThemeJson, mode: "dark" | "light") {
130
const defs = theme.defs ?? {}
131
function resolveColor(c: ColorValue): RGBA {
132
if (c instanceof RGBA) return c
133
- if (typeof c === "string") return c.startsWith("#") ? RGBA.fromHex(c) : resolveColor(defs[c])
+ if (typeof c === "string") {
134
+ if (c === "transparent" || c === "none") return RGBA.fromInts(0, 0, 0, 0)
135
+ return c.startsWith("#") ? RGBA.fromHex(c) : resolveColor(defs[c])
136
+ }
137
return resolveColor(c[mode])
138
}
139
return Object.fromEntries(
0 commit comments