|
| 1 | +/* |
| 2 | + * Theme variables for Mongoose Studio. |
| 3 | + * Use these variables in component CSS and in theme overrides so we can add |
| 4 | + * more themes (e.g. .theme-ocean) or role-based themes (e.g. data-theme="admin") later. |
| 5 | + * |
| 6 | + * Default theme: light. Switch by adding .dark on <html> (or future .theme-* classes). |
| 7 | + */ |
| 8 | + |
| 9 | +/* ----------------------------------------------------------------------------- |
| 10 | + * Light theme (default) |
| 11 | + * ----------------------------------------------------------------------------- */ |
| 12 | +:root { |
| 13 | + color-scheme: light; |
| 14 | + |
| 15 | + /* Page */ |
| 16 | + --studio-bg-page: #ffffff; |
| 17 | + --studio-text-page: #111827; |
| 18 | + |
| 19 | + /* Surfaces (cards, panels, nav) */ |
| 20 | + --studio-bg-surface: #ffffff; |
| 21 | + --studio-bg-surface-hover: #f9fafb; |
| 22 | + --studio-bg-muted: #f9fafb; |
| 23 | + --studio-bg-muted-hover: #f3f4f6; |
| 24 | + --studio-bg-subtle: #e5e7eb; |
| 25 | + --studio-bg-subtle-hover: #d1d5db; |
| 26 | + --studio-bg-strong: #374151; |
| 27 | + --studio-bg-stronger: #1f2937; |
| 28 | + |
| 29 | + /* Text */ |
| 30 | + --studio-text-primary: #111827; |
| 31 | + --studio-text-secondary: #374151; |
| 32 | + --studio-text-muted: #6b7280; |
| 33 | + --studio-text-subtle: #9ca3af; |
| 34 | + |
| 35 | + /* Borders */ |
| 36 | + --studio-border: #e5e7eb; |
| 37 | + --studio-border-strong: #d1d5db; |
| 38 | + --studio-ring: rgba(17, 24, 39, 0.05); |
| 39 | + --studio-ring-strong: rgba(75, 85, 99, 0.4); |
| 40 | + |
| 41 | + /* Links */ |
| 42 | + --studio-link: #0e5887; |
| 43 | + --studio-link-hover: #0c4a6f; |
| 44 | + |
| 45 | + /* Semantic (status) */ |
| 46 | + --studio-bg-error: #fef2f2; |
| 47 | + --studio-bg-warning: #fefce8; |
| 48 | + --studio-bg-success: #f0fdf4; |
| 49 | + --studio-bg-info: #eff6ff; |
| 50 | + --studio-border-error: #fecaca; |
| 51 | + --studio-border-warning: #fde047; |
| 52 | + --studio-border-success: #bbf7d0; |
| 53 | + --studio-border-info: #bfdbfe; |
| 54 | + --studio-text-error: #b91c1c; |
| 55 | + --studio-text-success: #15803d; |
| 56 | + --studio-ring-success: rgba(34, 197, 94, 0.2); |
| 57 | + --studio-ring-muted: rgba(75, 85, 99, 0.2); |
| 58 | + |
| 59 | + /* Tooltip */ |
| 60 | + --studio-tooltip-bg: #000000; |
| 61 | + --studio-tooltip-text: #ffffff; |
| 62 | + --studio-tooltip-border: transparent; |
| 63 | + |
| 64 | + /* Extended (code, menu, focus, brand, buttons) */ |
| 65 | + --studio-code-bg: #f3f4f6; |
| 66 | + --studio-code-text: #111827; |
| 67 | + --studio-menu-bg: #ffffff; |
| 68 | + --studio-menu-hover: rgba(0, 0, 0, 0.05); |
| 69 | + --studio-menu-selected: rgba(0, 0, 0, 0.08); |
| 70 | + --studio-shadow: rgba(0, 0, 0, 0.1); |
| 71 | + --studio-focus-ring: #3b82f6; |
| 72 | + --studio-focus-ring-shadow: rgba(59, 130, 246, 0.2); |
| 73 | + --studio-brand-primary: #0e5887; |
| 74 | + --studio-brand-primary-hover: #0c4a6f; |
| 75 | + --studio-brand-primary-subtle: rgba(14, 88, 135, 0.1); |
| 76 | + --studio-btn-bg: #e5e7eb; |
| 77 | + --studio-btn-text-shadow: transparent; |
| 78 | + |
| 79 | + /* Browser chrome (theme-color meta is set in JS; this is for reference/fallback) */ |
| 80 | + --studio-theme-color: #ffffff; |
| 81 | +} |
| 82 | + |
| 83 | +/* ----------------------------------------------------------------------------- |
| 84 | + * Dark theme (your preferred dark mode colors) |
| 85 | + * Add class "dark" on <html> to enable. |
| 86 | + * ----------------------------------------------------------------------------- */ |
| 87 | +.dark { |
| 88 | + color-scheme: dark; |
| 89 | + |
| 90 | + /* Page – darker base for clear hierarchy */ |
| 91 | + --studio-bg-page: #0f0f0f; |
| 92 | + --studio-text-page: #f5f5f5; |
| 93 | + |
| 94 | + /* Surfaces – stepped contrast so nav/sidebar/content read clearly */ |
| 95 | + --studio-bg-surface: #1c1c1e; |
| 96 | + --studio-bg-surface-hover: #2c2c2e; |
| 97 | + --studio-bg-muted: #252528; |
| 98 | + --studio-bg-muted-hover: #2c2c2e; |
| 99 | + --studio-bg-subtle: #3a3a3c; |
| 100 | + --studio-bg-subtle-hover: #48484a; |
| 101 | + --studio-bg-strong: #636366; |
| 102 | + --studio-bg-stronger: #1c1c1e; |
| 103 | + |
| 104 | + /* Text – high contrast for readability */ |
| 105 | + --studio-text-primary: #ffffff; |
| 106 | + --studio-text-secondary: #e8e8e8; |
| 107 | + --studio-text-muted: #b8b8bc; |
| 108 | + --studio-text-subtle: #a0a0a5; |
| 109 | + |
| 110 | + /* Borders */ |
| 111 | + --studio-border: #3a3a3c; |
| 112 | + --studio-border-strong: #48484a; |
| 113 | + --studio-ring: rgba(0, 0, 0, 0.4); |
| 114 | + --studio-ring-strong: rgba(99, 99, 102, 0.5); |
| 115 | + |
| 116 | + /* Links */ |
| 117 | + --studio-link: #64b5f6; |
| 118 | + --studio-link-hover: #90caf9; |
| 119 | + |
| 120 | + /* Semantic (status) */ |
| 121 | + --studio-bg-error: #450a0a; |
| 122 | + --studio-bg-warning: #422006; |
| 123 | + --studio-bg-success: #052e16; |
| 124 | + --studio-bg-info: #1e3a8a; |
| 125 | + --studio-border-error: #7f1d1d; |
| 126 | + --studio-border-warning: #854d0e; |
| 127 | + --studio-border-success: #14532d; |
| 128 | + --studio-border-info: #1e40af; |
| 129 | + --studio-text-error: #fca5a5; |
| 130 | + --studio-text-success: #86efac; |
| 131 | + --studio-ring-success: rgba(34, 197, 94, 0.3); |
| 132 | + --studio-ring-muted: rgba(75, 85, 99, 0.4); |
| 133 | + |
| 134 | + /* Tooltip */ |
| 135 | + --studio-tooltip-bg: #2c2c2e; |
| 136 | + --studio-tooltip-text: #f5f5f5; |
| 137 | + --studio-tooltip-border: #3a3a3c; |
| 138 | + |
| 139 | + /* Extended (for nav, code, buttons, focus, brand) */ |
| 140 | + --studio-code-bg: #252525; |
| 141 | + --studio-code-text: #e8e8e8; |
| 142 | + --studio-menu-bg: #252525; |
| 143 | + --studio-menu-hover: rgba(255, 255, 255, 0.1); |
| 144 | + --studio-menu-selected: rgba(255, 255, 255, 0.15); |
| 145 | + --studio-shadow: rgba(0, 0, 0, 0.3); |
| 146 | + --studio-focus-ring: #FFB4B4; |
| 147 | + --studio-focus-ring-shadow: rgba(255, 180, 180, 0.2); |
| 148 | + --studio-brand-primary: #FF5E5E; |
| 149 | + --studio-brand-primary-hover: #FF5555; |
| 150 | + --studio-brand-primary-subtle: rgba(255, 180, 180, 0.1); |
| 151 | + --studio-btn-bg: #444444; |
| 152 | + --studio-btn-text-shadow: #222222; |
| 153 | + |
| 154 | + --studio-theme-color: #0f0f0f; |
| 155 | +} |
| 156 | + |
| 157 | +/* Dark mode when using data-theme (same colors as .dark) */ |
| 158 | +[data-theme="dark"] { |
| 159 | + color-scheme: dark; |
| 160 | + --studio-bg-page: #0f0f0f; |
| 161 | + --studio-text-page: #f5f5f5; |
| 162 | + --studio-bg-surface: #1c1c1e; |
| 163 | + --studio-bg-surface-hover: #2c2c2e; |
| 164 | + --studio-bg-muted: #252528; |
| 165 | + --studio-bg-muted-hover: #2c2c2e; |
| 166 | + --studio-bg-subtle: #3a3a3c; |
| 167 | + --studio-bg-subtle-hover: #48484a; |
| 168 | + --studio-bg-strong: #636366; |
| 169 | + --studio-bg-stronger: #1c1c1e; |
| 170 | + --studio-text-primary: #ffffff; |
| 171 | + --studio-text-secondary: #e8e8e8; |
| 172 | + --studio-text-muted: #b8b8bc; |
| 173 | + --studio-text-subtle: #a0a0a5; |
| 174 | + --studio-border: #3a3a3c; |
| 175 | + --studio-border-strong: #48484a; |
| 176 | + --studio-ring: rgba(0, 0, 0, 0.3); |
| 177 | + --studio-ring-strong: rgba(75, 85, 99, 0.4); |
| 178 | + --studio-link: #7BC3FF; |
| 179 | + --studio-link-hover: #8AD0FF; |
| 180 | + --studio-bg-error: #450a0a; |
| 181 | + --studio-bg-warning: #422006; |
| 182 | + --studio-bg-success: #052e16; |
| 183 | + --studio-bg-info: #1e3a8a; |
| 184 | + --studio-border-error: #7f1d1d; |
| 185 | + --studio-border-warning: #854d0e; |
| 186 | + --studio-border-success: #14532d; |
| 187 | + --studio-border-info: #1e40af; |
| 188 | + --studio-text-error: #fca5a5; |
| 189 | + --studio-text-success: #86efac; |
| 190 | + --studio-ring-success: rgba(34, 197, 94, 0.3); |
| 191 | + --studio-ring-muted: rgba(75, 85, 99, 0.4); |
| 192 | + --studio-tooltip-bg: #252525; |
| 193 | + --studio-tooltip-text: #e8e8e8; |
| 194 | + --studio-tooltip-border: #444444; |
| 195 | + --studio-code-bg: #252525; |
| 196 | + --studio-code-text: #e8e8e8; |
| 197 | + --studio-menu-bg: #252525; |
| 198 | + --studio-menu-hover: rgba(255, 255, 255, 0.1); |
| 199 | + --studio-menu-selected: rgba(255, 255, 255, 0.15); |
| 200 | + --studio-shadow: rgba(0, 0, 0, 0.3); |
| 201 | + --studio-focus-ring: #FFB4B4; |
| 202 | + --studio-focus-ring-shadow: rgba(255, 180, 180, 0.2); |
| 203 | + --studio-brand-primary: #FF5E5E; |
| 204 | + --studio-brand-primary-hover: #FF5555; |
| 205 | + --studio-brand-primary-subtle: rgba(255, 180, 180, 0.1); |
| 206 | + --studio-btn-bg: #444444; |
| 207 | + --studio-btn-text-shadow: #222222; |
| 208 | + --studio-theme-color: #0f0f0f; |
| 209 | +} |
| 210 | + |
| 211 | +/* |
| 212 | + * Future: add more themes the same way, e.g.: |
| 213 | + * |
| 214 | + * .theme-ocean { |
| 215 | + * --studio-bg-page: #f0f9ff; |
| 216 | + * --studio-link: #0369a1; |
| 217 | + * ... |
| 218 | + * } |
| 219 | + * |
| 220 | + * Or role-based (set class or data-theme from backend): |
| 221 | + * |
| 222 | + * [data-theme="admin"] { |
| 223 | + * --studio-link: #7c3aed; |
| 224 | + * ... |
| 225 | + * } |
| 226 | + */ |
0 commit comments