Replace Shiki code highlighting with Prism.js
This commit is contained in:
1 parent
b2d5a1f319
commit
ed83b2c590
12 files changed
+194
-678
No files matched your search
@@ -1,6 +1,8 @@
|
||||
@import 'prismjs/themes/prism-tomorrow.css';
|
||||
|
||||
/*
|
||||
* 基础主题。--rm-* 变量即主题 API,第三方主题只需覆盖这些变量。
|
||||
* 编辑排版适配用户提供的 Obsidian CSS 片段,代码块颜色使用 Shiki GitHub Dark。
|
||||
* 编辑排版适配用户提供的 Obsidian CSS 片段,代码块颜色使用 Prism Tomorrow Night。
|
||||
*/
|
||||
:root {
|
||||
color-scheme: light;
|
||||
@@ -31,8 +33,8 @@
|
||||
|
||||
--rm-inline-code-bg: #f8f8f8;
|
||||
--rm-inline-code-text: #e96900;
|
||||
--rm-code-bg: #24292e;
|
||||
--rm-code-text: #e1e4e8;
|
||||
--rm-code-bg: #2d2d2d;
|
||||
--rm-code-text: #ccc;
|
||||
--rm-code-font-size: 14px;
|
||||
--rm-highlight-bg: rgba(255, 213, 0, 0.35);
|
||||
}
|
||||
@@ -47,7 +49,7 @@
|
||||
--rm-accent-strong: #42b883;
|
||||
--rm-inline-code-bg: #2f2f2f;
|
||||
--rm-inline-code-text: #f19a58;
|
||||
--rm-code-bg: #24292e;
|
||||
--rm-code-bg: #2d2d2d;
|
||||
--rm-highlight-bg: rgba(255, 213, 0, 0.28);
|
||||
|
||||
--rm-sidebar-bg: #191b1d;
|
||||
@@ -69,7 +71,7 @@
|
||||
--rm-accent-strong: #42b883;
|
||||
--rm-inline-code-bg: #2f2f2f;
|
||||
--rm-inline-code-text: #f19a58;
|
||||
--rm-code-bg: #24292e;
|
||||
--rm-code-bg: #2d2d2d;
|
||||
--rm-highlight-bg: rgba(255, 213, 0, 0.28);
|
||||
|
||||
--rm-sidebar-bg: #191b1d;
|
||||
|
||||
Reference in new issue
Block a user