Skip to content

Commit 3c976ef

Browse files
committed
Deploy Logseq SPA @ 5a82e4753aa7981518962159059540589b1a7225 jjohare/logseq@5a82e47
1 parent aa65a1b commit 3c976ef

3 files changed

Lines changed: 40 additions & 6 deletions

File tree

notes/dark-theme.css

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Gunmetal Blue-Gray theme for published SPA.
2-
Must match or exceed Logseq's built-in selector specificity
3-
(html[data-theme=dark][data-color=logseq]) so our values win. */
4-
html[data-theme="dark"][data-color="logseq"],
2+
Uses data-color="gunmetal" to avoid clashing with any
3+
built-in Logseq colour theme (logseq, blue, cyan, etc.). */
4+
html[data-theme="dark"][data-color="gunmetal"],
55
html[data-theme="dark"],
66
html[data-theme="light"],
77
html {
@@ -59,7 +59,41 @@ body { background-color: #1b2128 !important; color: #c5cdd8 !important; }
5959
.dark-theme, .white-theme, .light-theme {
6060
--ls-primary-background-color: #1b2128 !important;
6161
--ls-secondary-background-color: #242b35 !important;
62+
--ls-tertiary-background-color: #2e3642 !important;
63+
--ls-quaternary-background-color: #242b35 !important;
64+
--ls-primary-text-color: #c5cdd8 !important;
65+
--ls-secondary-text-color: #8891a0 !important;
66+
--ls-title-text-color: #e2e8f0 !important;
67+
--ls-link-text-color: #5b9bd5 !important;
68+
--ls-border-color: #3d4555 !important;
69+
}
70+
/* Override Logseq's inline background-color on html element */
71+
html[data-theme="dark"] {
72+
background-color: #1b2128 !important;
73+
}
74+
/* Neutralise any residual built-in colour scheme vars */
75+
html[data-theme="dark"][data-color] {
76+
--ls-primary-background-color: #1b2128 !important;
77+
--ls-secondary-background-color: #242b35 !important;
78+
--ls-tertiary-background-color: #2e3642 !important;
79+
--ls-quaternary-background-color: #242b35 !important;
6280
--ls-primary-text-color: #c5cdd8 !important;
81+
--ls-secondary-text-color: #8891a0 !important;
82+
--ls-title-text-color: #e2e8f0 !important;
83+
--ls-link-text-color: #5b9bd5 !important;
84+
--ls-link-ref-text-color: #4ec9b0 !important;
85+
--ls-border-color: #3d4555 !important;
86+
--ls-secondary-border-color: #3d4555 !important;
87+
--ls-block-highlight-color: rgba(46, 54, 66, 0.8) !important;
88+
--ls-page-properties-background-color: #242b35 !important;
89+
--ls-page-inline-code-bg-color: #242b35 !important;
90+
--ls-page-inline-code-color: #d19a66 !important;
91+
--ls-scrollbar-foreground-color: #3d4555 !important;
92+
--ls-scrollbar-background-color: #1b2128 !important;
93+
--ls-block-bullet-border-color: #3d4555 !important;
94+
--ls-block-bullet-color: #5a6270 !important;
95+
--ls-guideline-color: #3d4555 !important;
96+
background-color: #1b2128 !important;
6397
}
6498

6599
/* Hide mermaid source code blocks after kroki renders them */

notes/dark-theme.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
(function() {
22
try {
33
document.documentElement.setAttribute('data-theme', 'dark');
4-
document.documentElement.setAttribute('data-color', 'logseq');
4+
document.documentElement.setAttribute('data-color', 'gunmetal');
55
document.documentElement.classList.add('dark-theme');
66
document.documentElement.classList.remove('white-theme', 'light-theme');
77
localStorage.setItem('ls-theme-mode', '"dark"');
8-
localStorage.setItem('ls-theme-color', '"logseq"');
8+
localStorage.setItem('ls-theme-color', '"gunmetal"');
99
} catch(e) {}
1010
})();

notes/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)