0d28f69320
- Themes: add neon (cyber gradient), terminal (green CRT), blueprint (graph paper) and sunset (vaporwave) alongside the default Light (Y2K paper) and Dark. Theme toggle now cycles all; profile selector lists them; server validates against a shared whitelist. - Bounty cards now show the project (customer) name. - Remove the celebratory emoji from the empty Review Queue. - Full-width h1 underline rule; My Tasks columns stack vertically for more room per task; card action buttons wrap/right-align so they never overflow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
628 B
JavaScript
14 lines
628 B
JavaScript
// Theme bootstrap: runs synchronously in <head> to avoid a flash of the
|
|
// wrong theme. The server renders data-default-theme from the user profile;
|
|
// localStorage wins so the choice applies before login too.
|
|
(function () {
|
|
var el = document.documentElement;
|
|
var saved = null;
|
|
try { saved = localStorage.getItem('theme'); } catch (e) { /* private mode */ }
|
|
var THEMES = ['light', 'dark', 'neon', 'terminal', 'blueprint', 'sunset'];
|
|
var theme = saved || el.dataset.defaultTheme || 'light';
|
|
if (THEMES.indexOf(theme) === -1) theme = 'light';
|
|
el.dataset.theme = theme;
|
|
el.dataset.themes = THEMES.join(',');
|
|
})();
|