Skip to content

Commit 7999983

Browse files
authored
feat: add highlightjs for inline code block (#24)
1 parent b1c49a7 commit 7999983

File tree

4 files changed

+63
-11
lines changed

4 files changed

+63
-11
lines changed

package-lock.json

Lines changed: 48 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@
44
"description": "🦫 Soothing pastel theme for Logseq",
55
"main": "index.html",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1",
8-
"start": "sass --watch scss:.",
9-
"build:latte": "sass scss/ctp-latte.scss ctp-latte.css --no-source-map",
10-
"build:frappe": "sass scss/ctp-frappe.scss ctp-frappe.css --no-source-map",
11-
"build:macchiato": "sass scss/ctp-macchiato.scss ctp-macchiato.css --no-source-map",
12-
"build:mocha": "sass scss/ctp-mocha.scss ctp-mocha.css --no-source-map",
13-
"build": "sass scss:. --no-source-map",
7+
"start": "sass -I node_modules --watch scss:.",
8+
"build": "sass -I node_modules --no-charset --no-source-map scss:.",
149
"clean": "rimraf *.css*"
1510
},
1611
"repository": {
@@ -25,6 +20,8 @@
2520
},
2621
"homepage": "https://github.com/catppuccin/logseq#readme",
2722
"devDependencies": {
23+
"@catppuccin/highlightjs": "^0.1.4",
24+
"@catppuccin/palette": "^1.1.0",
2825
"rimraf": "^3.0.2",
2926
"sass": "^1.55.0"
3027
},
@@ -61,7 +58,7 @@
6158
"mode": "dark"
6259
}
6360
],
64-
"title": "Catppuccin",
61+
"title": "Catppuccin",
6562
"id": "logseq-catppuccin",
6663
"icon": "./assets/icon.png"
6764
}

scss/_highlightjs.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@use "@catppuccin/highlightjs/sass/catppuccin.variables";
2+
3+
html:not(html[data-color]),
4+
html[data-color='none'] {
5+
code.hljs {
6+
background-color: var(--ctp-tertiary-background-color);
7+
}
8+
}

scss/_main.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
@use "ls-vars.scss";
44
@use "lx-vars.scss";
55
@use "custom.scss";
6-
@use "codemirror.scss";
6+
@use "codemirror.scss";
7+
@use "highlightjs.scss";

0 commit comments

Comments
 (0)