Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

New theme: Colored latex :tada:

Smaug673943d90e8e9f2b
diff --git a/frontend/app/pages/dashboard/settings/_views/preferences.vue b/frontend/app/pages/dashboard/settings/_views/preferences.vue
index f642f9ab..6ed04c2c 100644
--- a/frontend/app/pages/dashboard/settings/_views/preferences.vue
+++ b/frontend/app/pages/dashboard/settings/_views/preferences.vue
@@ -115,6 +115,7 @@ const options = ref<{ label: string; options: Option[] }[]>([
choices: [
{ label: 'Alexandrie', value: 'alexandrie' },
{ label: 'Latex style', value: 'latex' },
+ { label: 'Latex colored', value: 'latex-colored' },
],
},
],
diff --git a/frontend/app/styles/_variables.scss b/frontend/app/styles/_variables.scss
index f8513619..6717edf1 100644
--- a/frontend/app/styles/_variables.scss
+++ b/frontend/app/styles/_variables.scss
@@ -59,24 +59,31 @@ $primary-dark: color.adjust(#6024ec, $lightness: -10%);
--grey-bg: #EFEEEA;
--blue: #007aff;
--blue-bg: #cce0ff;
+ --blue-bg-light: #f3f5fc;
--blue-border: rgba(0, 123, 255, 0.3);
--green: #009879;
--green-bg: rgba(40, 167, 69, 0.15);
+ --green-bg-light: rgba(40, 167, 69, 0.05);
--green-border: rgba(40, 167, 69, 0.3);
--red: #FF204E;
--red-bg: rgba(220, 53, 69, 0.15);
+ --red-bg-light: rgba(220, 53, 69, 0.05);
--red-border: rgba(220, 53, 69, 0.3);
--yellow: #F97300;
--yellow-bg: rgba(255, 193, 7, 0.15);
+ --yellow-bg-light: rgba(255, 193, 7, 0.05);
--yellow-border: rgba(255, 193, 7, 0.3);
--teal: #00ADB5;
--teal-bg: rgba(23, 162, 184, 0.2);
+ --teal-bg-light: rgba(23, 162, 184, 0.05);
--teal-border: rgba(23, 162, 184, 0.25);
--purple: #6024ec;
--purple-bg: rgba(111, 66, 193, 0.2);
+ --purple-bg-light: rgba(111, 66, 193, 0.05);
--purple-border: rgba(111, 66, 193, 0.25);
--pink: #ff0e6a;
--pink-bg: rgba(255, 14, 106, 0.2);
+ --pink-bg-light: rgba(255, 14, 106, 0.05);
--pink-border: rgba(255, 14, 106, 0.25);
--info-border: #2573cf;
diff --git a/frontend/app/styles/document-theme.scss b/frontend/app/styles/document-theme.scss
index 307dea77..418ca096 100644
--- a/frontend/app/styles/document-theme.scss
+++ b/frontend/app/styles/document-theme.scss
@@ -50,7 +50,8 @@
border-right: 1px solid var(--font-color);
color: var(--font-color-dark);
padding: 5px 12px;
- max-width: 150px;
+ min-width: 150px;
+ max-width: 170px;
font-size: 15px;
svg {
@@ -77,7 +78,146 @@
font-weight: bold;
padding: 5px 12px;
color: var(--font-color-dark);
- max-width: 150px;
+ min-width: 150px;
+ max-width: 170px;
+ }
+
+
+
+ .custom-block-content {
+ flex: 1;
+ padding: 0 0.5em;
+
+ p {
+ padding: 0 0.5em;
+ }
+ }
+ }
+
+ .katex {
+ font-size: 18px;
+
+ .text {
+ font-family: 'Libertinus Math', serif;
+ font-size: 14px;
+ }
+ }
+
+}
+
+.latex-colored-theme {
+ font-family: "Latin Modern Roman", serif;
+ font-size: 18px;
+ max-width: 100%;
+
+ h1 {
+ font-size: 1.5em;
+ }
+
+ h2 {
+ font-size: 1.3em;
+ margin: 1em 0;
+ }
+
+ p {
+ padding: 0.5em 0;
+ }
+
+ .header-anchor {
+ display: none;
+ }
+
+ .markdown-container {
+ display: flex;
+ background-color: transparent;
+ gap: 1rem;
+ padding: 0;
+ margin: 0.5em 0;
+ color: var(--font-color);
+ border-radius: 4px;
+
+ .title {
+ border-right: 1px solid var(--font-color);
+ padding: 5px 12px;
+ min-width: 150px;
+ max-width: 170px;
+ font-size: 15px;
+
+ svg {
+ display: none;
+ }
+ }
+
+ p {
+ padding: 0 0.5em;
+ }
+ }
+
+ .custom-block {
+ padding: 4px;
+ margin: 2em 0;
+ display: flex;
+ font-size: 16px;
+ color: var(--font-color);
+ border: none;
+ border-radius: 4px;
+
+ .grey {
+ border-left: 4px solid var(--grey);
+ color: var(--grey);
+ background-color: var(--grey-bg-light);
+ }
+
+ &.blue {
+ border-left: 4px solid var(--blue);
+ color: var(--blue);
+ background-color: var(--blue-bg-light);
+ }
+
+ &.green {
+ border-left: 4px solid var(--green);
+ color: var(--green);
+ background-color: var(--green-bg-light);
+ }
+
+ &.teal {
+ border-left: 4px solid var(--teal);
+ color: var(--teal);
+ background-color: var(--teal-bg-light);
+ }
+
+ &.yellow {
+ border-left: 4px solid var(--yellow);
+ color: var(--yellow);
+ background-color: var(--yellow-bg-light);
+ }
+
+
+ &.red {
+ border-left: 4px solid var(--red);
+ color: var(--red);
+ background-color: var(--red-bg-light);
+ }
+
+ &.purple {
+ border-left: 4px solid var(--purple);
+ color: var(--purple);
+ background-color: var(--purple-bg-light);
+ }
+
+
+ &.custom-block.details {
+ border-left: 4px solid var(--blue);
+ color: var(--blue);
+ background-color: var(--blue-bg-light);
+ }
+
+ .custom-block-title {
+ border-right: 1px solid var(--border-color);
+ font-weight: bold;
+ padding: 5px 12px;
+ min-width: 150px;
+ max-width: 170px;
}