wip: colors

pull/19330/head
Adam 2026-03-27 15:13:18 -05:00
parent 6eec0c0104
commit caa9d70849
No known key found for this signature in database
GPG Key ID: 9CB48779AF150E75
2 changed files with 2 additions and 1 deletions

View File

@ -168,6 +168,7 @@ describe("theme resolve", () => {
expect(lightTokens["icon-success-base"]).toBe(lightSuccess[6])
expect(darkTokens["icon-success-base"]).toBe(darkSuccess[8])
expect(darkTokens["surface-interactive-weak"]).toBe(darkInteractive[3])
expect(darkTokens["text-interactive-base"]).toBe(darkInteractive[9])
expect(lightTokens["icon-base"]).toBe(lightNeutral[8])
expect(lightTokens["icon-disabled"]).toBe(lightNeutral[6])
expect(darkTokens["icon-base"]).toBe(darkNeutral[7])

View File

@ -67,7 +67,7 @@ export function resolveThemeVariant(variant: ThemeVariant, isDark: boolean): Res
)
const brand = primary[8]
const brandHover = primary[9]
const interText = isDark ? shift(interactive[8], { l: 0.012, c: 1.08 }) : text(interactive)
const interText = isDark ? interactive[9] : text(interactive)
const inter = interactive[tone]
const interHover = interactive[isDark ? 7 : 6]
const interWeak = interactive[isDark ? 3 : soft]