Make sidebar border transparent in built-in themes
- Set built-in theme sidebar borders to `transparent` - Update token derivation tests to assert the new sidebar border value
This commit is contained in:
1 parent
e5de3d0c8c
commit
b907346122
2 files changed
+4
-2
No files matched your search
@@ -20,6 +20,7 @@ describe("deriveThemeTokens", () => {
|
||||
expect(tokens.primary).toBe("oklch(0.488 0.217 264)");
|
||||
expect(tokens.accent).toBe("color-mix(in oklab, #000 4%, transparent)");
|
||||
expect(tokens.border).toBe("color-mix(in oklab, #000 8%, transparent)");
|
||||
expect(tokens["sidebar-border"]).toBe("transparent");
|
||||
expect(tokens["sidebar-blur"]).toBe("0px");
|
||||
});
|
||||
|
||||
@@ -31,6 +32,7 @@ describe("deriveThemeTokens", () => {
|
||||
expect(tokens.primary).toBe("oklch(0.588 0.217 264)");
|
||||
expect(tokens.accent).toBe("color-mix(in oklab, #fff 4%, transparent)");
|
||||
expect(tokens.border).toBe("color-mix(in oklab, #fff 6%, transparent)");
|
||||
expect(tokens["sidebar-border"]).toBe("transparent");
|
||||
expect(tokens["sidebar-blur"]).toBe("0px");
|
||||
});
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ export const BUILTIN_THEME_PRESETS: readonly BuiltinThemePreset[] = [
|
||||
sidebarForeground: "oklch(26.9% 0 0)",
|
||||
sidebarAccent: "color-mix(in oklab, #000 4%, transparent)",
|
||||
sidebarAccentForeground: "oklch(26.9% 0 0)",
|
||||
sidebarBorder: "color-mix(in oklab, #000 8%, transparent)",
|
||||
sidebarBorder: "transparent",
|
||||
},
|
||||
}),
|
||||
makeThemeDocument({
|
||||
@@ -146,7 +146,7 @@ export const BUILTIN_THEME_PRESETS: readonly BuiltinThemePreset[] = [
|
||||
sidebarForeground: "oklch(97% 0 0)",
|
||||
sidebarAccent: "color-mix(in oklab, #fff 4%, transparent)",
|
||||
sidebarAccentForeground: "oklch(97% 0 0)",
|
||||
sidebarBorder: "color-mix(in oklab, #fff 6%, transparent)",
|
||||
sidebarBorder: "transparent",
|
||||
},
|
||||
}),
|
||||
makeThemeDocument({
|
||||
|
||||
Reference in new issue
Block a user