refactor(appearance): adopt accent and highlight tokens
This commit is contained in:
@@ -27,7 +27,8 @@ describe("appearance themes", () => {
|
||||
expect(variables.background).toBe(
|
||||
getTheme("stone")?.cssVars.light.background
|
||||
)
|
||||
expect(variables.primary).toBe(getTheme("rose")?.cssVars.light.primary)
|
||||
expect(variables.highlight).toBe(getTheme("stone")?.cssVars.light.highlight)
|
||||
expect(variables.accent).toBe(getTheme("rose")?.cssVars.light.accent)
|
||||
})
|
||||
|
||||
it("builds explicit and system color-scheme rules", () => {
|
||||
@@ -40,6 +41,7 @@ describe("appearance themes", () => {
|
||||
expect(styleSheet).toContain(".ui\\:dark{")
|
||||
expect(styleSheet).toContain("@media (prefers-color-scheme:dark)")
|
||||
expect(styleSheet).toContain("--background:")
|
||||
expect(styleSheet).toContain("--primary:")
|
||||
expect(styleSheet).toContain("--accent:")
|
||||
expect(styleSheet).toContain("--highlight:")
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user