π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
feat(styles): implement glassmorphism theme with backdrop effects and variable adjustments
Smaug67392474d3493b22
diff --git a/frontend/app/components/AppRadio.vue b/frontend/app/components/AppRadio.vueindex ae04bdc0..6ba3517c 100644--- a/frontend/app/components/AppRadio.vue+++ b/frontend/app/components/AppRadio.vue@@ -31,7 +31,7 @@ const selectItem = (id: number | string) => {button {padding: 0.6rem;border: 1px solid var(--border);- border-radius: 0.5rem;+ border-radius: var(--radius-md);background: var(--surface-raised);cursor: pointer;flex: 1;diff --git a/frontend/app/components/ModalManager.vue b/frontend/app/components/ModalManager.vueindex 85d4ad2c..60876c75 100644--- a/frontend/app/components/ModalManager.vue+++ b/frontend/app/components/ModalManager.vue@@ -59,6 +59,8 @@ onUnmounted(() => document.removeEventListener('keydown', handleKeydown));font-size: initial;background-color: var(--surface-base);box-shadow: var(--shadow-sm);+ backdrop-filter: var(--backdrop-blur) var(--backdrop-saturate);+ -webkit-backdrop-filter: var(--backdrop-blur) var(--backdrop-saturate);}.modal-container:has(> .large) {@@ -95,6 +97,8 @@ onUnmounted(() => document.removeEventListener('keydown', handleKeydown));position: fixed;display: flex;background-color: var(--overlay-backdrop);+ backdrop-filter: var(--backdrop-blur) var(--backdrop-saturate);+ -webkit-backdrop-filter: var(--backdrop-blur) var(--backdrop-saturate);inset: 0;}diff --git a/frontend/app/pages/dashboard/settings/_views/preferences.vue b/frontend/app/pages/dashboard/settings/_views/preferences.vueindex bba167f0..f8ff6cff 100644--- a/frontend/app/pages/dashboard/settings/_views/preferences.vue+++ b/frontend/app/pages/dashboard/settings/_views/preferences.vue@@ -101,8 +101,10 @@ const options: Array<{ label: string; options: InterfaceOption[] }> = [},{label: 'Interface style',+ description: 'Glassmorphism adds transparent surfaces with blur effects for a modern glass look.',type: 'radio',key: 'style',+ tag: 'New',choices: [{ label: 'Default', id: 'default' },{ label: 'Glassmorphism', id: 'glassmorphism' },diff --git a/frontend/app/styles/abstract/variables.scss b/frontend/app/styles/abstract/variables.scssindex 7cba42c7..f4abeb86 100644--- a/frontend/app/styles/abstract/variables.scss+++ b/frontend/app/styles/abstract/variables.scss@@ -5,11 +5,5 @@// Transitions (CSS custom properties for inline styles)--transition-medium: #{$transition-medium};- // Border radius- --radius-xs: 4px;- --radius-sm: 6px;- --radius-md: 8px;- --radius-lg: 12px;- --radius-xl: 20px;- --radius-xxl: 24px;+}\ No newline at end of filediff --git a/frontend/app/styles/themes/_index.scss b/frontend/app/styles/themes/_index.scssindex 99d0ca68..c31525da 100644--- a/frontend/app/styles/themes/_index.scss+++ b/frontend/app/styles/themes/_index.scss@@ -1,4 +1,5 @@@use "dark" as *;+@use "glassmorphism" as *;@use "material" as *;@use "print" as *;@use "white" as *;@@ -14,6 +15,16 @@@include dark-theme;}+// Glassmorphism style override+.glassmorphism {+ @include glassmorphism-theme;+ @include glassmorphism-theme-white;++ &.dark-mode {+ @include glassmorphism-dark-theme;+ }+}+@media print {:root {@include print-theme;diff --git a/frontend/app/styles/themes/glassmorphism.scss b/frontend/app/styles/themes/glassmorphism.scssnew file mode 100644index 00000000..642bad6f--- /dev/null+++ b/frontend/app/styles/themes/glassmorphism.scss@@ -0,0 +1,70 @@+// =============================================================================+// GLASSMORPHISM THEME+// Transparent surfaces with backdrop blur for a modern glass effect.+// Overrides surface, border, shadow and backdrop variables.+// =============================================================================++@mixin glassmorphism-theme {+ // Border radius+ --radius-xs: 80px;+ --radius-sm: 12px;+ --radius-md: 18px;+ --radius-lg: 24px;+ --radius-xl: 24px;+ --radius-xxl: 28px;++ // Overlay backdrop+ --overlay-backdrop: rgb(0 0 0 / 50%);+ --overlay-light: rgb(0 0 0 / 20%);++ // Backdrop effects for glassmorphism+ --backdrop-blur: blur(2px);+ --backdrop-saturate: saturate(1);+}++@mixin glassmorphism-theme-white {++ --accent-bg: rgb(221 225 248 / 65%);+ --accent-border: rgb(221 225 248 / 65%);++ // Surfaces become translucent+ --surface-base: rgb(255 255 255 / 60%);+ --surface-raised: rgb(241 246 253 / 70%);+ --surface-overlay: rgb(226 235 253 / 60%);+++ // Softer borders+ --border: rgb(223 224 229 / 100%);+ --border-subtle: rgb(223 225 230 / 20%);+ --border-strong: rgb(0 0 0 / 10%);++ // Elevated shadows with slight spread+ --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);+ --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);+ --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);++ --surface-tooltip: rgb(30 30 40 / 80%);+}++@mixin glassmorphism-dark-theme {++ --accent-bg: rgb(44 51 74 / 65%);+ --accent-border: rgb(74 79 92 / 65%);++ --surface-base: rgb(33 40 48 / 65%);+ --surface-raised: rgb(38 44 54 / 55%);+ --surface-overlay: rgb(45 52 67 / 50%);++ --border: rgb(255 255 255 / 12%);+ --border-subtle: rgb(255 255 255 / 6%);+ --border-strong: rgb(255 255 255 / 18%);++ --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);+ --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.20);+ --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);++ --overlay-backdrop: rgb(0 0 0 / 40%);+ --overlay-light: rgb(0 0 0 / 20%);++ --surface-tooltip: rgb(15 18 25 / 85%);+}\ No newline at end of filediff --git a/frontend/app/styles/themes/material.scss b/frontend/app/styles/themes/material.scssindex f36b985a..84dce6b3 100644--- a/frontend/app/styles/themes/material.scss+++ b/frontend/app/styles/themes/material.scss@@ -18,6 +18,14 @@--overlay-backdrop: rgb(0 0 0 / 50%);--overlay-light: rgb(0 0 0 / 20%);+ // Border radius+ --radius-xs: 4px;+ --radius-sm: 6px;+ --radius-md: 8px;+ --radius-lg: 12px;+ --radius-xl: 20px;+ --radius-xxl: 24px;+// -------------------------------------------------------------------------// SPECIAL SURFACES// -------------------------------------------------------------------------