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.

1.9 KB
Raw Blame
// =============================================================================
// 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: 8px;
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 20px;
	--radius-xl: 22px;
	--radius-xxl: 26px;

	// 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.6);
}

@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 / 45%);
	--border-subtle: rgb(223 225 230 / 15%);
	--border-strong: rgb(0 0 0 / 15%);

	// Elevated shadows with slight spread
	--shadow-sm: 0 2px 8px rgb(0 0 0 / 6%);
	--shadow-md: 0 4px 16px rgb(0 0 0 / 8%);
	--shadow-lg: 0 8px 32px rgb(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 rgb(0 0 0 / 15%);
	--shadow-md: 0 4px 16px rgb(0 0 0 / 20%);
	--shadow-lg: 0 8px 32px rgb(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%);
}