refactor(tui): expose theme colors as properties (#37995)

This commit is contained in:
James Long 2026-07-20 16:17:09 -04:00 committed by GitHub
commit c0ba62b972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
46 changed files with 740 additions and 749 deletions

View file

@ -91,7 +91,10 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
})
const colors = createMemo(() => {
const step = mode() === "light" ? 800 : 200
return dedupeWith(themeV2.categorical(step), (first, second) => first.equals(second))
return dedupeWith(
themeV2.categorical.map((scale) => scale[step]),
(first, second) => first.equals(second),
)
})
return {
list() {