|
| 1 | +/* ============================================ |
| 2 | + EASYEDIT DEFAULT THEME |
| 3 | + ============================================ |
| 4 | + Organized by UI component for easy customization |
| 5 | + ============================================ */ |
| 6 | + |
| 7 | +:root { |
| 8 | + /* ============================================ |
| 9 | + MAIN APPLICATION BACKGROUND |
| 10 | + ============================================ */ |
| 11 | + --bg-root: #242424; |
| 12 | + |
| 13 | + /* ============================================ |
| 14 | + FILE BUTTON (Top-left green button) |
| 15 | + ============================================ */ |
| 16 | + --btn-help-bg: #d9f7d9; |
| 17 | + --btn-help-text: #063b09; |
| 18 | + --btn-help-border: #063b09; |
| 19 | + |
| 20 | + /* ============================================ |
| 21 | + TOP BUTTON ROW (Toggle Edit, Preview, Undo, etc.) |
| 22 | + ============================================ */ |
| 23 | + --btn-menu-gradient-start: #374151; |
| 24 | + --btn-menu-gradient-end: #1f2937; |
| 25 | + --btn-menu-hover-gradient-start: #4b5563; |
| 26 | + --btn-menu-hover-gradient-end: #374151; |
| 27 | + --color-text-button: white; |
| 28 | + --btn-menu-border: none; |
| 29 | + |
| 30 | + /* ============================================ |
| 31 | + LOWER BUTTON ROW (Headers, Formatting, Mermaid, etc.) |
| 32 | + ============================================ */ |
| 33 | + --btn-mermaid-gradient-start: #667eea; |
| 34 | + --btn-mermaid-gradient-end: #764ba2; |
| 35 | + --btn-mermaid-hover-gradient-start: #764ba2; |
| 36 | + --btn-mermaid-hover-gradient-end: #667eea; |
| 37 | + |
| 38 | + /* ============================================ |
| 39 | + EDITOR PANEL (Left side - where you type) |
| 40 | + ============================================ */ |
| 41 | + --bg-editor: #000000; |
| 42 | + --color-text-editor: white; |
| 43 | + --border-primary: #ccc; |
| 44 | + |
| 45 | + /* ============================================ |
| 46 | + PREVIEW PANEL (Right side - rendered markdown) |
| 47 | + ============================================ */ |
| 48 | + --bg-preview: #ffffff; |
| 49 | + --bg-code-block: #e3e3e3; |
| 50 | + --color-text-code: #000000; |
| 51 | + --bg-table-header: #f2f2f2; |
| 52 | + --border-dark: #000000; |
| 53 | + |
| 54 | + /* ============================================ |
| 55 | + DROPDOWN MENUS |
| 56 | + ============================================ */ |
| 57 | + --bg-dropdown: #2d2d2d; |
| 58 | + --bg-dropdown-hover: #3d3d3d; |
| 59 | + --color-text-dropdown: white; |
| 60 | + --color-text-light: #cfcfcf; |
| 61 | + --border-secondary: #3d3d3d; |
| 62 | + --separator-gradient-start: rgba(255, 255, 255, 0.02); |
| 63 | + --separator-gradient-end: rgba(255, 255, 255, 0.06); |
| 64 | + |
| 65 | + /* ============================================ |
| 66 | + MODALS (About, Features, Password, etc.) |
| 67 | + ============================================ */ |
| 68 | + --bg-modal: #1e1e1e; |
| 69 | + --bg-modal-overlay: rgba(0, 0, 0, 0.5); |
| 70 | + --color-text-primary: white; |
| 71 | + --color-text-muted: #bdbdbd; |
| 72 | + --color-text-muted-dark: #9a9a9a; |
| 73 | + --bg-card: rgba(255, 255, 255, 0.02); |
| 74 | + --border-card: rgba(255, 255, 255, 0.12); |
| 75 | + --border-card-light: rgba(255, 255, 255, 0.08); |
| 76 | + --btn-primary-modal: #0b84ff; |
| 77 | + --btn-primary-modal-text: #ffffff; |
| 78 | + --btn-cancel: #555; |
| 79 | + --btn-submit: #007bff; |
| 80 | + |
| 81 | + /* ============================================ |
| 82 | + INPUT FIELDS (Auto-generators, etc.) |
| 83 | + ============================================ */ |
| 84 | + --bg-input: #2d2d2d; |
| 85 | + --border-input: #555; |
| 86 | + --btn-primary: #0078d4; |
| 87 | + |
| 88 | + /* ============================================ |
| 89 | + CONTEXT MENU (Right-click menu) |
| 90 | + ============================================ */ |
| 91 | + --context-menu-bg: white; |
| 92 | + --context-menu-border: #ccc; |
| 93 | + --context-menu-hover: #f5f5f5; |
| 94 | + --context-menu-shadow: rgba(0, 0, 0, 0.2); |
| 95 | + |
| 96 | + /* ============================================ |
| 97 | + SHADOWS & EFFECTS |
| 98 | + ============================================ */ |
| 99 | + --shadow-sm: rgba(0, 0, 0, 0.1); |
| 100 | + --shadow-md: rgba(0, 0, 0, 0.15); |
| 101 | + --shadow-lg: rgba(0, 0, 0, 0.2); |
| 102 | + --shadow-xl: rgba(0, 0, 0, 0.25); |
| 103 | + |
| 104 | + /* ============================================ |
| 105 | + LINKS & FOCUS |
| 106 | + ============================================ */ |
| 107 | + --link-color: #646cff; |
| 108 | + --link-hover: #535bf2; |
| 109 | + --link-hover-light: #747bff; |
| 110 | + --focus-ring: -webkit-focus-ring-color; |
| 111 | + --focus-border: #646cff; |
| 112 | + |
| 113 | + /* ============================================ |
| 114 | + LEGACY/MISC (kept for compatibility) |
| 115 | + ============================================ */ |
| 116 | + --color-primary: #242424; |
| 117 | + --color-primary-light: #2d2d2d; |
| 118 | + --color-primary-dark: #1e1e1e; |
| 119 | + --color-primary-darker: #1a1a1a; |
| 120 | + --color-primary-border: #3d3d3d; |
| 121 | + --color-text-secondary: rgba(255, 255, 255, 0.87); |
| 122 | + --color-text-dark: #000000; |
| 123 | + --btn-standard: purple; |
| 124 | + --btn-standard-hover: #575757; |
| 125 | + --btn-auto: rgb(139, 48, 192); |
| 126 | + --btn-html: rgb(136, 116, 248); |
| 127 | + --btn-format: rgb(30, 68, 38); |
| 128 | + --shadow-mermaid: rgba(6, 182, 212, 0.3); |
| 129 | +} |
| 130 | + |
| 131 | +/* ============================================ |
| 132 | + LIGHT MODE OVERRIDES |
| 133 | + ============================================ */ |
| 134 | +@media (prefers-color-scheme: light) { |
| 135 | + :root { |
| 136 | + --color-text-primary: #213547; |
| 137 | + --bg-root: #ffffff; |
| 138 | + --btn-standard-hover: #f9f9f9; |
| 139 | + --link-hover: #747bff; |
| 140 | + } |
| 141 | +} |
0 commit comments