Skip to content

Commit

Permalink
feat: add highlightjs for inline code block (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
griimick authored Mar 3, 2024
1 parent b1c49a7 commit 7999983
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 11 deletions.
50 changes: 48 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
"description": "🦫 Soothing pastel theme for Logseq",
"main": "index.html",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "sass --watch scss:.",
"build:latte": "sass scss/ctp-latte.scss ctp-latte.css --no-source-map",
"build:frappe": "sass scss/ctp-frappe.scss ctp-frappe.css --no-source-map",
"build:macchiato": "sass scss/ctp-macchiato.scss ctp-macchiato.css --no-source-map",
"build:mocha": "sass scss/ctp-mocha.scss ctp-mocha.css --no-source-map",
"build": "sass scss:. --no-source-map",
"start": "sass -I node_modules --watch scss:.",
"build": "sass -I node_modules --no-charset --no-source-map scss:.",
"clean": "rimraf *.css*"
},
"repository": {
Expand All @@ -25,6 +20,8 @@
},
"homepage": "https://github.com/catppuccin/logseq#readme",
"devDependencies": {
"@catppuccin/highlightjs": "^0.1.4",
"@catppuccin/palette": "^1.1.0",
"rimraf": "^3.0.2",
"sass": "^1.55.0"
},
Expand Down Expand Up @@ -61,7 +58,7 @@
"mode": "dark"
}
],
"title": "Catppuccin",
"title": "Catppuccin",
"id": "logseq-catppuccin",
"icon": "./assets/icon.png"
}
Expand Down
8 changes: 8 additions & 0 deletions scss/_highlightjs.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@use "@catppuccin/highlightjs/sass/catppuccin.variables";

html:not(html[data-color]),
html[data-color='none'] {
code.hljs {
background-color: var(--ctp-tertiary-background-color);
}
}
3 changes: 2 additions & 1 deletion scss/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
@use "ls-vars.scss";
@use "lx-vars.scss";
@use "custom.scss";
@use "codemirror.scss";
@use "codemirror.scss";
@use "highlightjs.scss";

0 comments on commit 7999983

Please sign in to comment.