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.

refactor(styles): export backdrop variables to css variables

Smaug6739271df301e35d
diff --git a/frontend/app/components/AppDotMenu.vue b/frontend/app/components/AppDotMenu.vue
index 39d49ba8..4b9a885a 100644
--- a/frontend/app/components/AppDotMenu.vue
+++ b/frontend/app/components/AppDotMenu.vue
@@ -53,10 +53,6 @@ onBeforeUnmount(() => document.removeEventListener('mousedown', handleClickOutsi
cursor: pointer;
}
-.menu-button:hover {
- background-color: rgb(0 0 0 / 8%);
-}
-
.menu-icon {
display: block;
width: 20px;
diff --git a/frontend/app/components/AppHint.vue b/frontend/app/components/AppHint.vue
index 69b9d9b9..0a88bf87 100644
--- a/frontend/app/components/AppHint.vue
+++ b/frontend/app/components/AppHint.vue
@@ -39,7 +39,7 @@ const show = ref(false);
border-radius: 0.4rem;
font-size: 0.65rem;
color: white;
- background-color: #1f2937;
+ background-color: var(--surface-tooltip);
box-shadow: var(--shadow-sm);
margin-top: 0.4rem;
transform: translateX(-50%);
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index 489a60c5..1a6122ee 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -297,7 +297,7 @@ button,
position: fixed;
z-index: 1000;
display: flex;
- background: rgb(0 0 0 / 50%);
+ background: var(--overlay-backdrop);
align-items: flex-end;
inset: 0;
justify-content: center;
@@ -307,7 +307,7 @@ button,
display: flex;
width: 100%;
max-height: 85vh;
- border-radius: 16px 16px 0 0;
+ border-radius: var(--surface-sheet-radius);
background: var(--surface-base);
animation: slide-up 0.3s ease-out;
flex-direction: column;
diff --git a/frontend/app/components/ContextMenuManager.vue b/frontend/app/components/ContextMenuManager.vue
index f1d4433c..b86272bb 100644
--- a/frontend/app/components/ContextMenuManager.vue
+++ b/frontend/app/components/ContextMenuManager.vue
@@ -192,7 +192,7 @@ const pos = computed(() => {
position: fixed;
z-index: 6000;
display: flex;
- background: rgb(0 0 0 / 50%);
+ background: var(--overlay-backdrop);
align-items: flex-end;
inset: 0;
justify-content: center;
@@ -203,7 +203,7 @@ const pos = computed(() => {
width: 100%;
min-height: 60vh;
max-height: 85vh;
- border-radius: 16px 16px 0 0;
+ border-radius: var(--surface-sheet-radius);
background: var(--surface-base);
animation: slide-up 0.3s ease-out;
flex-direction: column;
diff --git a/frontend/app/components/Kanban/Column.vue b/frontend/app/components/Kanban/Column.vue
index 95d49a38..ec1de100 100644
--- a/frontend/app/components/Kanban/Column.vue
+++ b/frontend/app/components/Kanban/Column.vue
@@ -362,7 +362,6 @@ function handleClickOutside(e: MouseEvent) {
border-radius: var(--radius-md);
color: var(--text-secondary);
text-align: center;
- background: rgb(0 0 0 / 2%);
align-items: center;
flex-direction: column;
justify-content: center;
diff --git a/frontend/app/components/MarkdownEditor/ColorPickerModal.vue b/frontend/app/components/MarkdownEditor/ColorPickerModal.vue
index ff0867cd..1f6177e4 100644
--- a/frontend/app/components/MarkdownEditor/ColorPickerModal.vue
+++ b/frontend/app/components/MarkdownEditor/ColorPickerModal.vue
@@ -253,7 +253,6 @@ onMounted(() => {
.swatch-check {
color: white;
- filter: drop-shadow(0 2px 4px rgb(0 0 0 / 30%));
svg {
width: 18px;
diff --git a/frontend/app/components/ModalManager.vue b/frontend/app/components/ModalManager.vue
index 51056cee..85d4ad2c 100644
--- a/frontend/app/components/ModalManager.vue
+++ b/frontend/app/components/ModalManager.vue
@@ -73,7 +73,7 @@ onUnmounted(() => document.removeEventListener('keydown', handleKeydown));
position: absolute;
z-index: 1;
border-radius: var(--radius-lg);
- background-color: rgb(0 0 0 / 20%);
+ background-color: var(--overlay-light);
inset: 0;
pointer-events: none;
}
@@ -94,7 +94,7 @@ onUnmounted(() => document.removeEventListener('keydown', handleKeydown));
.modal-mask {
position: fixed;
display: flex;
- background-color: rgb(0 0 0 / 50%);
+ background-color: var(--overlay-backdrop);
inset: 0;
}
diff --git a/frontend/app/components/Sidebar/Sidebar.vue b/frontend/app/components/Sidebar/Sidebar.vue
index 0013e4d5..065db26c 100644
--- a/frontend/app/components/Sidebar/Sidebar.vue
+++ b/frontend/app/components/Sidebar/Sidebar.vue
@@ -222,6 +222,6 @@ input {
display: flex;
width: 100vw;
height: 100vh;
- background-color: rgb(0 0 0 / 50%);
+ background-color: var(--overlay-backdrop);
}
</style>
diff --git a/frontend/app/pages/(public)/_components/features/FeaturesTimeline.vue b/frontend/app/pages/(public)/_components/features/FeaturesTimeline.vue
index 56182422..93f29a05 100644
--- a/frontend/app/pages/(public)/_components/features/FeaturesTimeline.vue
+++ b/frontend/app/pages/(public)/_components/features/FeaturesTimeline.vue
@@ -223,7 +223,6 @@ section {
position: fixed;
z-index: 2000;
display: flex;
- background: rgb(0 0 0 / 85%);
align-items: center;
animation: fadeIn $transition-base ease;
inset: 0;
diff --git a/frontend/app/pages/(public)/login/index.vue b/frontend/app/pages/(public)/login/index.vue
index 1570109d..4ca7259e 100644
--- a/frontend/app/pages/(public)/login/index.vue
+++ b/frontend/app/pages/(public)/login/index.vue
@@ -162,7 +162,7 @@ input {
transform: translateY(-50%);
&:hover {
- background: rgb(0 0 0 / 5%);
+ background: var(--surface-transparent);
}
&:active {
diff --git a/frontend/app/pages/(public)/signup.vue b/frontend/app/pages/(public)/signup.vue
index 26d26f2d..9ccffda5 100644
--- a/frontend/app/pages/(public)/signup.vue
+++ b/frontend/app/pages/(public)/signup.vue
@@ -209,7 +209,7 @@ input {
transform: translateY(-50%);
&:hover {
- background: rgb(0 0 0 / 5%);
+ background: var(--surface-transparent);
}
&:active {
diff --git a/frontend/app/styles/components/tooltip.scss b/frontend/app/styles/components/tooltip.scss
index b2c671ca..81b8b22f 100644
--- a/frontend/app/styles/components/tooltip.scss
+++ b/frontend/app/styles/components/tooltip.scss
@@ -15,7 +15,7 @@
border-radius: var(--radius-sm);
font-size: 0.7rem;
color: white;
- background-color: #1f2937;
+ background-color: var(--surface-tooltip);
box-shadow: var(--shadow-sm);
// Initial state (hidden)
@@ -41,6 +41,6 @@
transform: translateX(-50%);
border-width: 5px;
border-style: solid;
- border-color: transparent transparent #1f2937 transparent;
+ border-color: transparent transparent var(--surface-tooltip) transparent;
} */
}
\ No newline at end of file
diff --git a/frontend/app/styles/themes/_index.scss b/frontend/app/styles/themes/_index.scss
index 582859dd..99d0ca68 100644
--- a/frontend/app/styles/themes/_index.scss
+++ b/frontend/app/styles/themes/_index.scss
@@ -1,13 +1,16 @@
@use "dark" as *;
+@use "material" as *;
@use "print" as *;
@use "white" as *;
@forward "colors";
:root {
+ @include material-theme;
@include white-theme;
}
.dark-mode {
+ @include material-theme;
@include dark-theme;
}
diff --git a/frontend/app/styles/themes/material.scss b/frontend/app/styles/themes/material.scss
new file mode 100644
index 00000000..f36b985a
--- /dev/null
+++ b/frontend/app/styles/themes/material.scss
@@ -0,0 +1,26 @@
+// =============================================================================
+// MATERIAL THEME - Common variables for Material design style
+// These variables are shared between light and dark themes
+// =============================================================================
+
+@mixin material-theme {
+ // -------------------------------------------------------------------------
+ // BACKDROP EFFECTS
+ // Material: no blur effects
+ // -------------------------------------------------------------------------
+ --backdrop-blur: none;
+ --backdrop-saturate: none;
+
+ // -------------------------------------------------------------------------
+ // OVERLAY BACKGROUNDS
+ // Used for modals, sheets, and backdrop masks
+ // -------------------------------------------------------------------------
+ --overlay-backdrop: rgb(0 0 0 / 50%);
+ --overlay-light: rgb(0 0 0 / 20%);
+
+ // -------------------------------------------------------------------------
+ // SPECIAL SURFACES
+ // -------------------------------------------------------------------------
+ --surface-tooltip: #1f2937;
+ --surface-sheet-radius: 16px 16px 0 0;
+}
\ No newline at end of file