Skip to content

Build your personal knowledge base with Trilium Notes

feat(codemirror): add four more themes

Elian Doran6a972aaf3d3a
diff --git a/packages/codemirror/package.json b/packages/codemirror/package.json
index 44ccb29ae9..291c25d96a 100644
--- a/packages/codemirror/package.json
+++ b/packages/codemirror/package.json
@@ -19,6 +19,7 @@
"@codemirror/search": "6.6.0",
"@codemirror/state": "6.6.0",
"@codemirror/view": "6.41.0",
+ "@eslint/js": "10.0.1",
"@fsegurai/codemirror-theme-abcdef": "6.2.4",
"@fsegurai/codemirror-theme-abyss": "6.2.4",
"@fsegurai/codemirror-theme-android-studio": "6.2.4",
@@ -31,13 +32,17 @@
"@fsegurai/codemirror-theme-github-light": "6.2.4",
"@fsegurai/codemirror-theme-gruvbox-dark": "6.2.4",
"@fsegurai/codemirror-theme-gruvbox-light": "6.2.4",
+ "@fsegurai/codemirror-theme-high-contrast-dark": "6.0.2",
+ "@fsegurai/codemirror-theme-high-contrast-light": "6.0.2",
"@fsegurai/codemirror-theme-material-dark": "6.2.4",
"@fsegurai/codemirror-theme-material-light": "6.2.4",
+ "@fsegurai/codemirror-theme-material-ocean": "6.0.1",
"@fsegurai/codemirror-theme-monokai": "6.2.4",
"@fsegurai/codemirror-theme-nord": "6.2.4",
"@fsegurai/codemirror-theme-palenight": "6.2.4",
"@fsegurai/codemirror-theme-solarized-dark": "6.2.4",
"@fsegurai/codemirror-theme-solarized-light": "6.2.4",
+ "@fsegurai/codemirror-theme-synthwave-84": "6.0.2",
"@fsegurai/codemirror-theme-tokyo-night-day": "6.2.4",
"@fsegurai/codemirror-theme-tokyo-night-storm": "6.2.4",
"@fsegurai/codemirror-theme-volcano": "6.2.4",
@@ -52,7 +57,6 @@
"codemirror-lang-elixir": "4.0.1",
"codemirror-lang-hcl": "0.1.0",
"codemirror-lang-mermaid": "0.5.0",
- "@eslint/js": "10.0.1",
"eslint-linter-browserify": "10.1.0",
"globals": "17.4.0"
}
diff --git a/packages/codemirror/src/color_themes.ts b/packages/codemirror/src/color_themes.ts
index a9e3a71e53..a50afe8567 100644
--- a/packages/codemirror/src/color_themes.ts
+++ b/packages/codemirror/src/color_themes.ts
@@ -77,6 +77,16 @@ const themes: ThemeDefinition[] = [
name: "GitHub Light",
load: async () => (await import("@fsegurai/codemirror-theme-github-light")).githubLight
},
+ {
+ id: "high-contrast-dark",
+ name: "High Contrast Dark",
+ load: async () => (await import("@fsegurai/codemirror-theme-high-contrast-dark")).highContrastDark
+ },
+ {
+ id: "high-contrast-light",
+ name: "High Contrast Light",
+ load: async () => (await import("@fsegurai/codemirror-theme-high-contrast-light")).highContrastLight
+ },
{
id: "gruvbox-dark",
name: "Gruvbox Dark",
@@ -97,6 +107,11 @@ const themes: ThemeDefinition[] = [
name: "Material Light",
load: async () => (await import("@fsegurai/codemirror-theme-material-light")).materialLight
},
+ {
+ id: "material-ocean",
+ name: "Material Ocean",
+ load: async () => (await import("@fsegurai/codemirror-theme-material-ocean")).materialOcean
+ },
{
id: "monokai",
name: "Monokai",
@@ -122,6 +137,11 @@ const themes: ThemeDefinition[] = [
name: "Solarized Light",
load: async () => (await import("@fsegurai/codemirror-theme-solarized-light")).solarizedLight
},
+ {
+ id: "synthwave-84",
+ name: "Synthwave '84",
+ load: async () => (await import("@fsegurai/codemirror-theme-synthwave-84")).synthwave84
+ },
{
id: "tokyo-night-day",
name: "Tokyo Night Day",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 208cae77e4..60cfa6fd6c 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1276,12 +1276,21 @@ importers:
'@fsegurai/codemirror-theme-gruvbox-light':
specifier: 6.2.4
version: 6.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
+ '@fsegurai/codemirror-theme-high-contrast-dark':
+ specifier: 6.0.2
+ version: 6.0.2(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
+ '@fsegurai/codemirror-theme-high-contrast-light':
+ specifier: 6.0.2
+ version: 6.0.2(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
'@fsegurai/codemirror-theme-material-dark':
specifier: 6.2.4
version: 6.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
'@fsegurai/codemirror-theme-material-light':
specifier: 6.2.4
version: 6.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
+ '@fsegurai/codemirror-theme-material-ocean':
+ specifier: 6.0.1
+ version: 6.0.1(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
'@fsegurai/codemirror-theme-monokai':
specifier: 6.2.4
version: 6.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
@@ -1297,6 +1306,9 @@ importers:
'@fsegurai/codemirror-theme-solarized-light':
specifier: 6.2.4
version: 6.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
+ '@fsegurai/codemirror-theme-synthwave-84':
+ specifier: 6.0.2
+ version: 6.0.2(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
'@fsegurai/codemirror-theme-tokyo-night-day':
specifier: 6.2.4
version: 6.2.4(@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])
@@ -3157,6 +3169,22 @@ packages:
'@codemirror/view': ^6.0.0
'@lezer/highlight': 1.2.3
+ '@fsegurai/[email protected]':
+ resolution: {integrity: sha512-kxWGNeRz5oX/u2Z/nhK/OCmorn7YEK97sktZ9IpiaZLxZnC49gHEVOlQQpC1VJoNJ+hzSOmM/mS+BMSaDMyxyQ==}
+ peerDependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': ^6.0.0
+ '@codemirror/view': ^6.0.0
+ '@lezer/highlight': 1.2.3
+
+ '@fsegurai/[email protected]':
+ resolution: {integrity: sha512-FtBhrNzH2YvqO71HMYWnzMK/8QfCfepla3eSGR6YRa4cH0Lbs8rnsEOOY9iFxO1WSy7+orR/jsv1M39JQ8DdyQ==}
+ peerDependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': ^6.0.0
+ '@codemirror/view': ^6.0.0
+ '@lezer/highlight': 1.2.3
+
'@fsegurai/[email protected]':
resolution: {integrity: sha512-jQXWtRVJbmjWu2IjeBSD97fhCW91uxnKgH6IKd5wq2mSKkFXZ5JLLjdd/INfcODXjXz8CMoj4g/iuiSFztVkeA==}
peerDependencies:
@@ -3173,6 +3201,14 @@ packages:
'@codemirror/view': ^6.0.0
'@lezer/highlight': 1.2.3
+ '@fsegurai/[email protected]':
+ resolution: {integrity: sha512-d1JEaDJ2lhR83hMtsWCQR3Ry2/+TQ1JSZuiSKI6L/QCzfTaeY4M9kl7Wqehm4VPOWfyYeK4xpS1Nu7295BMQaQ==}
+ peerDependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': ^6.0.0
+ '@codemirror/view': ^6.0.0
+ '@lezer/highlight': 1.2.3
+
'@fsegurai/[email protected]':
resolution: {integrity: sha512-pWiMJpoO3yKMKrahlUmAO8hZPRE7FxY10U1cMLNa+TDtuoWf2JrPEFRbkYf9wfOGSlUkGhx8HAn7xuXEEck4CQ==}
peerDependencies:
@@ -3213,6 +3249,14 @@ packages:
'@codemirror/view': ^6.0.0
'@lezer/highlight': 1.2.3
+ '@fsegurai/[email protected]':
+ resolution: {integrity: sha512-upXOxrt/bqVbw/6U4YD1BamhWRLn61M2C1g0Tcstd9WKLCm8gYv47EmkFvViXGyY60ZoJ1uJIo6mZXO4iy/hCg==}
+ peerDependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': ^6.0.0
+ '@codemirror/view': ^6.0.0
+ '@lezer/highlight': 1.2.3
+
'@fsegurai/[email protected]':
resolution: {integrity: sha512-R8kRPwiZxgSkNQ0mzOyZONTabcK4Xp81s6TTkjJ02dybbi7wy+9nE2w+7AgO2TSZNor4z43ZleYGs6CG3jh60Q==}
peerDependencies:
@@ -16712,6 +16756,20 @@ snapshots:
'@codemirror/view': 6.41.0
'@lezer/highlight': 1.2.3
+ '@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
+ dependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.41.0
+ '@lezer/highlight': 1.2.3
+
+ '@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
+ dependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.41.0
+ '@lezer/highlight': 1.2.3
+
'@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
dependencies:
'@codemirror/language': 6.12.3
@@ -16726,6 +16784,13 @@ snapshots:
'@codemirror/view': 6.41.0
'@lezer/highlight': 1.2.3
+ '@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
+ dependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.41.0
+ '@lezer/highlight': 1.2.3
+
'@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
dependencies:
'@codemirror/language': 6.12.3
@@ -16761,6 +16826,13 @@ snapshots:
'@codemirror/view': 6.41.0
'@lezer/highlight': 1.2.3
+ '@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
+ dependencies:
+ '@codemirror/language': 6.12.3
+ '@codemirror/state': 6.6.0
+ '@codemirror/view': 6.41.0
+ '@lezer/highlight': 1.2.3
+
'@fsegurai/[email protected](@codemirror/[email protected])(@codemirror/[email protected])(@codemirror/[email protected])(@lezer/[email protected])':
dependencies:
'@codemirror/language': 6.12.3