fix(tui): derive session surface colors from hues (#37401)
This commit is contained in:
parent
331533deff
commit
f76e18201a
6 changed files with 67 additions and 36 deletions
|
|
@ -64,4 +64,5 @@ test("provides reactive property, variant, state, and context accessors", () =>
|
|||
|
||||
setResolved(resolveTheme(selectTheme(DEFAULT_THEME, "dark")))
|
||||
expect(theme.text()).toBe(resolved().contexts["@context:elevated"]!.text.default)
|
||||
expect(theme.decrease(theme.background.surface.offset(), 1)).toBe(resolved().hue.neutral[700])
|
||||
})
|
||||
|
|
|
|||
|
|
@ -15,6 +15,11 @@ test("resolves independent definitions and hue aliases", () => {
|
|||
expect(lightTheme.hue.accent).toBe(lightTheme.hue.blue)
|
||||
expect(lightTheme.hue.interactive).toBe(lightTheme.hue.blue)
|
||||
expect(lightTheme.hue.neutral).toBe(lightTheme.hue.gray)
|
||||
expect(lightTheme.increase(lightTheme.hue.red[100])).toBe(lightTheme.hue.red[200])
|
||||
expect(lightTheme.decrease(lightTheme.hue.red[200])).toBe(lightTheme.hue.red[100])
|
||||
expect(lightTheme.contexts["@context:elevated"]?.increase(lightTheme.hue.red[100])).toBe(
|
||||
lightTheme.hue.red[200],
|
||||
)
|
||||
expect(lightTheme.text.default).toBeInstanceOf(RGBA)
|
||||
expect(darkTheme.background.default).toBeInstanceOf(RGBA)
|
||||
expect(lightTheme.background.surface.offset).toBe(lightTheme.hue.neutral[200])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue