feat(app): generate color palettes (#16232)

This commit is contained in:
Adam 2026-03-08 19:28:58 -05:00 committed by GitHub
commit b976f339e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 1274 additions and 2994 deletions

View file

@ -217,7 +217,7 @@ export const Terminal = (props: TerminalProps) => {
const currentTheme = theme.themes()[theme.themeId()]
if (!currentTheme) return fallback
const variant = mode === "dark" ? currentTheme.dark : currentTheme.light
if (!variant?.seeds) return fallback
if (!variant?.seeds && !variant?.palette) return fallback
const resolved = resolveThemeVariant(variant, mode === "dark")
const text = resolved["text-stronger"] ?? fallback.foreground
const background = resolved["background-stronger"] ?? fallback.background