/* ═══════════════════════════════════════════════════════════ Glassmind — Frosted Glass Theme for Obsidian Author: Mehran Version: 3.1.0 License: MIT Based on Catppuccin Mocha color palette. Blur is handled by Hyprland compositor — this theme only provides transparent backgrounds and solid text colors. ═══════════════════════════════════════════════════════════ */ /* ────────────────────────────────────────── 1. Color Palette (Catppuccin Mocha base) ────────────────────────────────────────── */ :root { --gm-crust: 17, 17, 27; --gm-mantle: 24, 24, 37; --gm-base: 30, 30, 46; --gm-surface0: 49, 50, 68; --gm-surface1: 69, 71, 90; --gm-surface2: 88, 91, 112; --gm-overlay0: 108, 112, 134; --gm-overlay1: 127, 132, 156; --gm-overlay2: 147, 153, 178; --gm-subtext0: 166, 173, 200; --gm-subtext1: 186, 194, 222; --gm-text: 205, 214, 244; /* Accent — lavender */ --gm-accent: 180, 190, 254; /* Semantic colors */ --gm-red: 243, 139, 168; --gm-peach: 250, 179, 135; --gm-yellow: 249, 226, 175; --gm-green: 166, 227, 161; --gm-teal: 148, 226, 213; --gm-sky: 137, 220, 235; --gm-sapphire: 116, 199, 236; --gm-blue: 137, 180, 250; --gm-lavender: 180, 190, 254; --gm-mauve: 203, 166, 247; --gm-pink: 245, 194, 231; } /* ────────────────────────────────────────── 2. Core Variables — Solid Colors ────────────────────────────────────────── Solid colors for proper element rendering. Transparency is applied on containers only. ────────────────────────────────────────── */ body { /* Backgrounds */ --background-primary: rgb(var(--gm-base)); --background-primary-alt: rgb(var(--gm-mantle)); --background-secondary: rgb(var(--gm-mantle)); --background-secondary-alt: rgb(var(--gm-crust)); --background-modifier-border: rgb(var(--gm-surface0)); --background-modifier-form-field: rgba(var(--gm-crust), 0.3); --background-modifier-hover: rgba(var(--gm-accent), 0.12); --background-modifier-active-hover: rgba(var(--gm-accent), 0.15); --background-modifier-border-hover: rgb(var(--gm-surface1)); --background-modifier-border-focus: rgb(var(--gm-surface2)); --background-modifier-cover: rgba(var(--gm-crust), 0.9); /* Color scale */ --color-base-00: rgb(var(--gm-crust)); --color-base-05: rgb(var(--gm-crust)); --color-base-10: rgb(var(--gm-mantle)); --color-base-20: rgb(var(--gm-base)); --color-base-25: rgb(var(--gm-surface0)); --color-base-30: rgb(var(--gm-surface1)); --color-base-35: rgb(var(--gm-surface2)); --color-base-40: rgb(var(--gm-overlay0)); --color-base-50: rgb(var(--gm-overlay1)); --color-base-60: rgb(var(--gm-overlay2)); --color-base-70: rgb(var(--gm-subtext0)); --color-base-100: rgb(var(--gm-text)); /* Text */ --text-normal: rgb(var(--gm-text)); --text-muted: rgb(var(--gm-subtext0)); --text-faint: rgb(var(--gm-overlay2)); --text-on-accent: rgb(var(--gm-mantle)); --text-accent: rgb(var(--gm-accent)); --text-accent-hover: rgb(var(--gm-accent)); --text-error: rgb(var(--gm-red)); --text-selection: rgba(var(--gm-overlay2), 0.3); /* Icons */ --icon-color: rgb(var(--gm-subtext0)); --icon-color-hover: rgb(var(--gm-text)); --icon-color-active: rgb(var(--gm-accent)); --icon-color-focused: rgb(var(--gm-text)); --clickable-icon-color: rgb(var(--gm-subtext0)); --clickable-icon-color-hover: rgb(var(--gm-text)); /* Interactive */ --interactive-normal: rgb(var(--gm-surface0)); --interactive-hover: rgb(var(--gm-surface1)); --interactive-accent: rgb(var(--gm-accent)); --interactive-accent-hover: rgb(var(--gm-accent)); /* Tabs */ --tab-text-color: rgb(var(--gm-overlay2)); --tab-text-color-active: rgb(var(--gm-subtext0)); --tab-text-color-focused: rgb(var(--gm-subtext0)); --tab-text-color-focused-active: rgb(var(--gm-text)); --tab-text-color-focused-highlighted: rgb(var(--gm-accent)); --tab-text-color-focused-active-current: rgb(var(--gm-text)); /* Titlebar */ --titlebar-background: rgb(var(--gm-crust)); --titlebar-background-focused: rgb(var(--gm-crust)); --titlebar-text-color: rgb(var(--gm-subtext0)); --titlebar-text-color-focused: rgb(var(--gm-text)); /* Nav */ --nav-item-color: rgb(var(--gm-subtext0)); --nav-item-color-hover: rgb(var(--gm-text)); --nav-item-color-active: rgb(var(--gm-text)); --nav-item-color-selected: rgb(var(--gm-text)); --nav-item-color-highlighted: rgb(var(--gm-accent)); --nav-item-background-hover: rgba(var(--gm-accent), 0.08); --nav-item-background-active: rgba(var(--gm-accent), 0.1); --nav-item-background-selected: rgba(var(--gm-accent), 0.15); /* Collapse */ --collapse-icon-color: rgb(var(--gm-overlay2)); --collapse-icon-color-collapsed: rgb(var(--gm-subtext0)); /* Status bar */ --status-bar-text-color: rgb(var(--gm-subtext0)); --vault-name-color: rgb(var(--gm-text)); /* Search */ --search-icon-color: rgb(var(--gm-subtext0)); --search-clear-button-color: rgb(var(--gm-subtext0)); /* Scrollbar */ --scrollbar-bg: rgba(var(--gm-text), 0.05); --scrollbar-thumb-bg: rgba(var(--gm-text), 0.1); --scrollbar-active-thumb-bg: rgba(var(--gm-text), 0.2); /* Semantic colors */ --color-red-rgb: var(--gm-red); --color-red: rgb(var(--gm-red)); --color-orange-rgb: var(--gm-peach); --color-orange: rgb(var(--gm-peach)); --color-yellow-rgb: var(--gm-yellow); --color-yellow: rgb(var(--gm-yellow)); --color-green-rgb: var(--gm-green); --color-green: rgb(var(--gm-green)); --color-cyan-rgb: var(--gm-sapphire); --color-cyan: rgb(var(--gm-sapphire)); --color-blue-rgb: var(--gm-blue); --color-blue: rgb(var(--gm-blue)); --color-purple-rgb: var(--gm-mauve); --color-purple: rgb(var(--gm-mauve)); --color-pink-rgb: var(--gm-pink); --color-pink: rgb(var(--gm-pink)); /* Mono */ --mono-rgb-0: var(--gm-crust); --mono-rgb-100: var(--gm-text); color-scheme: dark; } /* ────────────────────────────────────────── 3. Transparent Containers ────────────────────────────────────────── Hyprland compositor handles all blur. We just provide transparent backgrounds. ────────────────────────────────────────── */ body { background-color: transparent !important; } .app-container { background-color: rgba(var(--gm-base), 0.1) !important; } /* Titlebar — merge with tab bar */ .titlebar { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 40px !important; background-color: transparent !important; z-index: 10 !important; pointer-events: none !important; } .titlebar-inner { background-color: transparent !important; pointer-events: none !important; } /* Keep window buttons clickable */ .titlebar-button-container, .titlebar-button { pointer-events: auto !important; } /* Status bar */ .status-bar { background-color: rgba(var(--gm-crust), 0.4) !important; border-top: 1px solid rgba(255, 255, 255, 0.05) !important; } /* ────────────────────────────────────────── 4. Workspace ────────────────────────────────────────── */ /* Editor pane */ .mod-root, .mod-root .workspace-leaf { background-color: rgba(var(--gm-base), 0.35) !important; } /* Editor content — transparent */ .mod-root .workspace-leaf-content, .mod-root .view-header, .mod-root .view-content { background-color: transparent !important; background: transparent !important; } /* Editor internals — transparent */ .markdown-source-view, .markdown-reading-view, .markdown-preview-view, .markdown-preview-section, .cm-s-obsidian, .cm-editor, .cm-scroller, .cm-content, .cm-gutters, .cm-gutter, .cm-lineNumbers, .cm-activeLineGutter, .cm-line, .cm-activeLine { background-color: transparent !important; background: transparent !important; } /* Sidebars */ .mod-left-split, .mod-right-split { background-color: rgba(var(--gm-mantle), 0.4) !important; } /* Sidebar content panels */ .mod-left-split .workspace-leaf, .mod-right-split .workspace-leaf { background-color: rgba(var(--gm-base), 0.6) !important; } /* Tab header bars */ .workspace-tab-header-container { background-color: rgba(var(--gm-crust), 0.45) !important; } /* Main editor tab bar */ .mod-root .workspace-tab-header-container { background-color: rgba(var(--gm-mantle), 0.5) !important; padding-right: 140px !important; display: flex !important; visibility: visible !important; opacity: 1 !important; } /* Pane dividers */ .workspace-leaf-resize-handle { background-color: rgba(255, 255, 255, 0.05) !important; } /* ────────────────────────────────────────── 5. Overlays — Modals, Menus, Tooltips ────────────────────────────────────────── */ .modal-bg { background-color: rgba(0, 0, 0, 0.4) !important; } .modal, .prompt { background-color: rgba(var(--gm-base), 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 12px !important; } /* Settings modal panels */ .modal.mod-settings .vertical-tab-header { background-color: rgba(var(--gm-mantle), 0.55) !important; } .modal.mod-settings .vertical-tab-content-container, .modal.mod-settings .vertical-tab-content { background-color: rgba(var(--gm-base), 0.5) !important; } /* Menus */ .menu { background-color: rgba(var(--gm-base), 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 8px !important; } /* Tooltips */ .tooltip { background-color: rgba(var(--gm-base), 0.6) !important; } /* ────────────────────────────────────────── 6. Plugin Compatibility — Copilot ────────────────────────────────────────── */ /* Copilot dialogs */ div[role="dialog"].tw-bg-primary { background-color: rgba(var(--gm-base), 0.55) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; } /* Copilot floating panels */ [data-copilot-draggable-modal].tw-bg-primary { background-color: rgba(var(--gm-base), 0.55) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; } /* Copilot popovers */ .tw-z-popover.tw-bg-primary, .tw-z-modal.tw-bg-primary { background-color: rgba(var(--gm-base), 0.55) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; } /* Copilot elements inside modals */ .modal .tw-bg-primary { background-color: rgba(var(--gm-surface0), 0.5) !important; } .modal .tw-bg-secondary { background-color: rgba(var(--gm-mantle), 0.4) !important; } /* ────────────────────────────────────────── 7. Scrollbar ────────────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-thumb { background-color: rgba(var(--gm-text), 0.15); border-radius: 3px; } ::-webkit-scrollbar-track { background-color: transparent; } /* ────────────────────────────────────────── 8. Light Mode ────────────────────────────────────────── */ .theme-light { --gm-crust: 220, 224, 232; --gm-mantle: 230, 233, 239; --gm-base: 239, 241, 245; --gm-surface0: 204, 208, 218; --gm-surface1: 188, 192, 204; --gm-surface2: 172, 176, 190; --gm-overlay0: 156, 160, 176; --gm-overlay1: 140, 143, 161; --gm-overlay2: 124, 127, 147; --gm-subtext0: 108, 111, 133; --gm-subtext1: 92, 95, 119; --gm-text: 76, 79, 105; --gm-accent: 114, 135, 253; --text-on-accent: #fff; color-scheme: light; }