mirror of
https://github.com/zadam/trilium.git
synced 2026-03-21 15:53:37 +01:00
feat(editor): add catppuccin theme to codemirror
This commit is contained in:
parent
ba87487714
commit
c41b649bff
@ -100,6 +100,9 @@
|
||||
"@ckeditor/ckeditor5-code-block": "patches/@ckeditor__ckeditor5-code-block.patch"
|
||||
},
|
||||
"overrides": {
|
||||
"@codemirror/language": "6.12.2",
|
||||
"@lezer/highlight": "1.2.3",
|
||||
"@lezer/common": "1.5.1",
|
||||
"mermaid": "11.13.0",
|
||||
"preact": "10.29.0",
|
||||
"roughjs": "4.6.6",
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
"type": "module",
|
||||
"main": "./src/index.ts",
|
||||
"dependencies": {
|
||||
"@catppuccin/codemirror": "1.0.3",
|
||||
"@codemirror/commands": "6.10.3",
|
||||
"@codemirror/lang-css": "6.3.1",
|
||||
"@codemirror/lang-html": "6.4.11",
|
||||
|
||||
@ -37,6 +37,26 @@ const themes: ThemeDefinition[] = [
|
||||
name: "Basic Light",
|
||||
load: async () => (await import("@fsegurai/codemirror-theme-basic-light")).basicLight
|
||||
},
|
||||
{
|
||||
id: "catppuccin-latte",
|
||||
name: "Catppuccin Latte",
|
||||
load: async () => (await import("@catppuccin/codemirror")).catppuccinLatte
|
||||
},
|
||||
{
|
||||
id: "catppuccin-frappe",
|
||||
name: "Catppuccin Frappé",
|
||||
load: async () => (await import("@catppuccin/codemirror")).catppuccinFrappe
|
||||
},
|
||||
{
|
||||
id: "catppuccin-macchiato",
|
||||
name: "Catppuccin Macchiato",
|
||||
load: async () => (await import("@catppuccin/codemirror")).catppuccinMacchiato
|
||||
},
|
||||
{
|
||||
id: "catppuccin-mocha",
|
||||
name: "Catppuccin Mocha",
|
||||
load: async () => (await import("@catppuccin/codemirror")).catppuccinMocha
|
||||
},
|
||||
{
|
||||
id: "cobalt2",
|
||||
name: "Cobalt2",
|
||||
|
||||
492
pnpm-lock.yaml
generated
492
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -31,7 +31,7 @@
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
"matchPackageNames": "@fsegurai/codemirror-theme-**",
|
||||
"matchPackageNames": ["@fsegurai/codemirror-theme-**", "@catppuccin/codemirror"],
|
||||
"groupName": "codemirror themes"
|
||||
},
|
||||
{
|
||||
@ -51,4 +51,4 @@
|
||||
"groupName": "univer monorepo"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user