fix(css): leave tailwind theme vars on :root so obsidian's accent wins inside the view

This commit is contained in:
hh committed 2026-08-29 19:42:54 +02:00
1 parent 8c971e431a
commit 4f485b0bc4
2 files changed
+6 -7

No files matched your search

+2 -2
View File
@@ -40,9 +40,9 @@ describe("scoping the built stylesheet", () => {
expect(out).not.toContain("*)*");
});
it("moves theme variables from :root onto the view root", () => {
it("leaves tailwind's theme variables on :root, under obsidian's body values", () => {
expect(one(":root,:host{--spacing:.25rem}")).toBe(
".bcal-root { --spacing: .25rem; }",
":root, :host { --spacing: .25rem; }",
);
});