Skip to content

Commit 8832a86

Browse files
committed
Update theme-palette.js
1 parent ba413f2 commit 8832a86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/assets/javascripts/theme-palette.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
const aRgb = a ? hexToRgb(a) : null;
7676

7777
const lines = [];
78-
lines.push(":root {");
78+
lines.push(":root, body, body[data-md-color-scheme], body[data-md-color-primary], body[data-md-color-accent] {");
7979
if (p) {
8080
lines.push(` --md-primary-fg-color: ${p} !important;`);
8181
lines.push(` --md-primary-fg-color--light: ${p} !important;`);

0 commit comments

Comments
 (0)