[PR #7811] [MERGED] feat(theme): seasonal themes, starting with Halloween #7939

Closed
opened 2026-10-24 04:09:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7811
Author: @SpicyMarinara
Created: 10/19/2026
Status: ✅ Merged
Merged: 10/19/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/seasonal-themes-halloween


📝 Commits (4)

  • 9bc8851 feat(theme): seasonal themes, starting with Halloween
  • d7ffae9 fix(theme): plainer seasonal themes setting description
  • 04cc8a3 Merge branch 'staging' into feat/seasonal-themes-halloween
  • 0b2587b Merge branch 'staging' into feat/seasonal-themes-halloween

📊 Changes

19 files changed (+805 additions, -4 deletions)

View changed files

➕ e2e/seasonal-halloween.e2e.ts (+84 -0)
📝 e2e/ui-state-fixture.ts (+12 -2)
➕ packages/client/public/seasonal/halloween/README.md (+14 -0)
➕ packages/client/public/seasonal/halloween/bat.webp (+0 -0)
➕ packages/client/public/seasonal/halloween/pumpkin.webp (+0 -0)
➕ packages/client/public/seasonal/halloween/pumpkins.webp (+0 -0)
📝 packages/client/src/App.tsx (+32 -1)
📝 packages/client/src/components/chat/HomeBrowserHub.tsx (+8 -1)
➕ packages/client/src/components/modals/SeasonalGreetingModal.tsx (+99 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+9 -0)
➕ packages/client/src/hooks/use-seasonal-theme.ts (+60 -0)
📝 packages/client/src/lib/omnibar-settings-toggle-bindings.ts (+4 -0)
➕ packages/client/src/lib/seasonal-themes.ts (+52 -0)
📝 packages/client/src/lib/settings-registry.ts (+10 -0)
📝 packages/client/src/localization/locales/en.json (+7 -0)
📝 packages/client/src/stores/ui.store.ts (+26 -0)
📝 packages/client/src/styles/globals.css (+1 -0)
➕ packages/client/src/styles/themes/seasonal-halloween.css (+214 -0)
➕ scripts/regressions/seasonal-themes.regression.ts (+173 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Release notes: leave this PR out of the changelog and the What's New text; it is a Halloween surprise.

Linked issue

None on purpose. This is the maintainer's own request (@SpicyMarinara, 2026-10-19), and a public issue would spoil the surprise.

Why this change

  • Marinara Engine had no way to dress up for a holiday. Mari asked for a Halloween look that switches on by itself on October 31, says hello once, and is easy to keep or turn off, with Christmas and Easter to follow later.

What changed

  • On October 31 your own accent colour (including Accent Pulse and RGB) and your custom theme colours are covered by the Halloween colours for that day. They come back by themselves at midnight, and Turn it off in the greeting or Settings → General → Disable seasonal ME themes gives them back at once.
  • On October 31, from 00:00 to 23:59 on the device's own clock, Marinara Engine wears a Halloween theme: pumpkin orange and deep purple over near-black in dark mode, and over warm parchment in light mode. It sits on top of the default theme, the SillyTavern visual theme, a custom accent and a custom theme, and switches itself on and off at local midnight even while the app stays open. Text keeps at least WCAG AA contrast in both modes.
  • Home shows a few bats gently bobbing in the top corners and a pumpkin cluster in a free corner (bottom right on wide screens, top right beside the logo on narrower screens and phones). They sit behind the page content, never take clicks, are hidden from screen readers, and stop moving with reduced motion. They also pause while the app is in the background or Reduce Ambient Animations & Effects is on.
  • A Happy Halloween! window shows once a year on the first open of October 31, after What's New, the storage notice and Agent update prompts, and never on top of another window or during onboarding. It says the app dressed up for Halloween, that the costume comes off by itself tomorrow, and that seasonal themes can be turned off anytime in Settings → General. Keep it keeps the theme. Turn it off removes it at once, for this year's Halloween only. While it is open, the chat window introduction and Agent update prompts wait.
  • Settings → General → App Behavior has a new Disable seasonal ME themes toggle (help: "Holiday looks like Halloween won't switch on by themselves."). It is saved and synced like the other General settings, found by Settings search and the omnibar, and works immediately: turning it on removes an active Halloween theme and the greeting never shows. Turning it back off also undoes this year's Turn it off.
  • Preview on any date: open the app with ?seasonalPreview=halloween (for example http://localhost:7860/?seasonalPreview=halloween). It wears the theme and shows the greeting, and saves nothing: Keep it and Turn it off only last until the page reloads, and no "greeting seen" record is written. The preview wins over the Settings toggle; without it, the toggle wins.
  • Under the hood: a tiny registry in lib/seasonal-themes.ts (one entry per holiday with an isActive(date) check on the local date; only Halloween for now), data-seasonal-theme="halloween" on <html>, and the palette defined once in styles/themes/seasonal-halloween.css. The art is in public/seasonal/halloween/ as WebP (about 70 KB together, loaded only while the theme is on), with a provenance note.
  • Tests: the shared e2e fixture now seeds seasonal themes off, so unrelated e2e runs on October 31 do not meet the greeting. The new specs turn them on explicitly.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Agent-run checks (not a substitute for the boxes above):

  • pnpm check: passed.
  • node ./scripts/run-regressions.mjs --filter scripts/regressions/seasonal-themes.regression.ts: passed. It covers Oct 31 00:00 and 23:59 local (on), Oct 30 23:59 and Nov 1 00:00 (off), the same instant in Honolulu (Halloween) and UTC (November), the toggle winning, Turn it off lasting one year, the greeting once per year, the preview forcing the theme, malformed synced records, the store and sync wiring, and WCAG AA contrast of the palette in both modes.
  • Also passed: command-center, omnibar-settings-sync, chat-window-intro-persistence, chat-widget-style-persistence and open-issues regressions.
  • e2e/seasonal-halloween.e2e.ts on desktop-chromium and mobile-chromium, run together with onboarding-tour-whats-new and ui-state-fixture: 8/8 passed. One case uses the preview (greeting visible, Keep it keeps data-seasonal-theme, nothing saved, Turn it off removes it). The other fakes October 31 (greeting once, still themed after a reload with no second greeting, then the Settings toggle removes the theme).
  • pnpm smoke:ui equivalent (--project=desktop-chromium --grep @smoke): 7 passed. chat-window-intro.e2e.ts on desktop and mobile Chromium: 7 passed, 1 skipped by the spec itself.
  • Headless screenshots checked at 1440 (with and without the sidebar), 1024, 768, 390 and 360 px, dark and light, plus a custom theme with a white background and a pulsing cyan accent (Halloween won, and the user's colours returned without the preview), and reduced motion (bat animations none). Not tested: WebKit/Safari, a real device, the Android app, and the SillyTavern visual theme by eye (its tokens are overridden the same way).

Manual verification notes

  • Open /?seasonalPreview=halloween on desktop in dark mode: the greeting shows after any other startup notice; Home shows bats in the top corners and pumpkins bottom right; text stays readable.
  • Repeat in light mode.
  • Repeat on a phone (or a narrow window): pumpkins sit top right beside the logo, not over the title or buttons.
  • With a custom theme active and a custom accent with Accent Pulse on, open the preview: Halloween colours win; reload without the parameter and your own theme, accent and pulse are back.
  • With the system's reduce-motion setting on, the bats stand still.
  • Click Keep it: theme stays. Reload with the preview: the greeting returns (the preview saves nothing). Click Turn it off: theme and decorations go at once.
  • Settings → General → App Behavior → Disable seasonal ME themes: find it through Settings search ("halloween") and the omnibar. On a device whose date is set to October 31, turning it on removes the theme immediately and the greeting does not show.
  • Optional: set the device date to October 31 without the preview, open the app: greeting once; reload: no second greeting; set the date to November 1: theme gone.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

No docs, changelog or What's New changes on purpose, to keep the surprise.

UI evidence (if applicable)

Screenshots were captured headless during development but are not attached here. To see it, open the preview link above.

Summary by CodeRabbit

  • New Features
    • Added a Halloween theme with seasonal artwork, colors, and a greeting on October 31.
    • Added options to keep the theme, turn it off for the year, or disable seasonal themes in Settings.
    • Added support for previewing the Halloween theme.
  • Documentation
    • Added information about the Halloween artwork.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7811 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/19/2026 **Status:** ✅ Merged **Merged:** 10/19/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/seasonal-themes-halloween` --- ### 📝 Commits (4) - [`9bc8851`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9bc885100a629fdc66b25e9f9e4650fcb1f8b0ad) feat(theme): seasonal themes, starting with Halloween - [`d7ffae9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d7ffae983805ef82455cf5cb3f7f44a68731e400) fix(theme): plainer seasonal themes setting description - [`04cc8a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/04cc8a3fbb03107ad16864061c921185d1f1f16d) Merge branch 'staging' into feat/seasonal-themes-halloween - [`0b2587b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0b2587bd14060e57ab046b522d7df908c1067f78) Merge branch 'staging' into feat/seasonal-themes-halloween ### 📊 Changes **19 files changed** (+805 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `e2e/seasonal-halloween.e2e.ts` (+84 -0) 📝 `e2e/ui-state-fixture.ts` (+12 -2) ➕ `packages/client/public/seasonal/halloween/README.md` (+14 -0) ➕ `packages/client/public/seasonal/halloween/bat.webp` (+0 -0) ➕ `packages/client/public/seasonal/halloween/pumpkin.webp` (+0 -0) ➕ `packages/client/public/seasonal/halloween/pumpkins.webp` (+0 -0) 📝 `packages/client/src/App.tsx` (+32 -1) 📝 `packages/client/src/components/chat/HomeBrowserHub.tsx` (+8 -1) ➕ `packages/client/src/components/modals/SeasonalGreetingModal.tsx` (+99 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+9 -0) ➕ `packages/client/src/hooks/use-seasonal-theme.ts` (+60 -0) 📝 `packages/client/src/lib/omnibar-settings-toggle-bindings.ts` (+4 -0) ➕ `packages/client/src/lib/seasonal-themes.ts` (+52 -0) 📝 `packages/client/src/lib/settings-registry.ts` (+10 -0) 📝 `packages/client/src/localization/locales/en.json` (+7 -0) 📝 `packages/client/src/stores/ui.store.ts` (+26 -0) 📝 `packages/client/src/styles/globals.css` (+1 -0) ➕ `packages/client/src/styles/themes/seasonal-halloween.css` (+214 -0) ➕ `scripts/regressions/seasonal-themes.regression.ts` (+173 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> **Release notes: leave this PR out of the changelog and the What's New text; it is a Halloween surprise.** ## Linked issue None on purpose. This is the maintainer's own request (@SpicyMarinara, 2026-10-19), and a public issue would spoil the surprise. ## Why this change - Marinara Engine had no way to dress up for a holiday. Mari asked for a Halloween look that switches on by itself on October 31, says hello once, and is easy to keep or turn off, with Christmas and Easter to follow later. ## What changed - On October 31 your own accent colour (including Accent Pulse and RGB) and your custom theme colours are covered by the Halloween colours for that day. They come back by themselves at midnight, and **Turn it off** in the greeting or **Settings → General → Disable seasonal ME themes** gives them back at once. - On October 31, from 00:00 to 23:59 on the device's own clock, Marinara Engine wears a Halloween theme: pumpkin orange and deep purple over near-black in dark mode, and over warm parchment in light mode. It sits on top of the default theme, the SillyTavern visual theme, a custom accent and a custom theme, and switches itself on and off at local midnight even while the app stays open. Text keeps at least WCAG AA contrast in both modes. - Home shows a few bats gently bobbing in the top corners and a pumpkin cluster in a free corner (bottom right on wide screens, top right beside the logo on narrower screens and phones). They sit behind the page content, never take clicks, are hidden from screen readers, and stop moving with reduced motion. They also pause while the app is in the background or **Reduce Ambient Animations & Effects** is on. - A **Happy Halloween!** window shows once a year on the first open of October 31, after What's New, the storage notice and Agent update prompts, and never on top of another window or during onboarding. It says the app dressed up for Halloween, that the costume comes off by itself tomorrow, and that seasonal themes can be turned off anytime in Settings → General. **Keep it** keeps the theme. **Turn it off** removes it at once, for this year's Halloween only. While it is open, the chat window introduction and Agent update prompts wait. - **Settings → General → App Behavior** has a new **Disable seasonal ME themes** toggle (help: "Holiday looks like Halloween won't switch on by themselves."). It is saved and synced like the other General settings, found by Settings search and the omnibar, and works immediately: turning it on removes an active Halloween theme and the greeting never shows. Turning it back off also undoes this year's **Turn it off**. - Preview on any date: open the app with `?seasonalPreview=halloween` (for example `http://localhost:7860/?seasonalPreview=halloween`). It wears the theme and shows the greeting, and saves nothing: **Keep it** and **Turn it off** only last until the page reloads, and no "greeting seen" record is written. The preview wins over the Settings toggle; without it, the toggle wins. - Under the hood: a tiny registry in `lib/seasonal-themes.ts` (one entry per holiday with an `isActive(date)` check on the local date; only Halloween for now), `data-seasonal-theme="halloween"` on `<html>`, and the palette defined once in `styles/themes/seasonal-halloween.css`. The art is in `public/seasonal/halloween/` as WebP (about 70 KB together, loaded only while the theme is on), with a provenance note. - Tests: the shared e2e fixture now seeds seasonal themes off, so unrelated e2e runs on October 31 do not meet the greeting. The new specs turn them on explicitly. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Agent-run checks (not a substitute for the boxes above): - `pnpm check`: passed. - `node ./scripts/run-regressions.mjs --filter scripts/regressions/seasonal-themes.regression.ts`: passed. It covers Oct 31 00:00 and 23:59 local (on), Oct 30 23:59 and Nov 1 00:00 (off), the same instant in Honolulu (Halloween) and UTC (November), the toggle winning, **Turn it off** lasting one year, the greeting once per year, the preview forcing the theme, malformed synced records, the store and sync wiring, and WCAG AA contrast of the palette in both modes. - Also passed: `command-center`, `omnibar-settings-sync`, `chat-window-intro-persistence`, `chat-widget-style-persistence` and `open-issues` regressions. - `e2e/seasonal-halloween.e2e.ts` on `desktop-chromium` and `mobile-chromium`, run together with `onboarding-tour-whats-new` and `ui-state-fixture`: 8/8 passed. One case uses the preview (greeting visible, **Keep it** keeps `data-seasonal-theme`, nothing saved, **Turn it off** removes it). The other fakes October 31 (greeting once, still themed after a reload with no second greeting, then the Settings toggle removes the theme). - `pnpm smoke:ui` equivalent (`--project=desktop-chromium --grep @smoke`): 7 passed. `chat-window-intro.e2e.ts` on desktop and mobile Chromium: 7 passed, 1 skipped by the spec itself. - Headless screenshots checked at 1440 (with and without the sidebar), 1024, 768, 390 and 360 px, dark and light, plus a custom theme with a white background and a pulsing cyan accent (Halloween won, and the user's colours returned without the preview), and reduced motion (bat animations `none`). Not tested: WebKit/Safari, a real device, the Android app, and the SillyTavern visual theme by eye (its tokens are overridden the same way). ### Manual verification notes - [ ] Open `/?seasonalPreview=halloween` on desktop in dark mode: the greeting shows after any other startup notice; Home shows bats in the top corners and pumpkins bottom right; text stays readable. - [ ] Repeat in light mode. - [ ] Repeat on a phone (or a narrow window): pumpkins sit top right beside the logo, not over the title or buttons. - [ ] With a custom theme active and a custom accent with Accent Pulse on, open the preview: Halloween colours win; reload without the parameter and your own theme, accent and pulse are back. - [ ] With the system's reduce-motion setting on, the bats stand still. - [ ] Click **Keep it**: theme stays. Reload with the preview: the greeting returns (the preview saves nothing). Click **Turn it off**: theme and decorations go at once. - [ ] Settings → General → App Behavior → **Disable seasonal ME themes**: find it through Settings search ("halloween") and the omnibar. On a device whose date is set to October 31, turning it on removes the theme immediately and the greeting does not show. - [ ] Optional: set the device date to October 31 without the preview, open the app: greeting once; reload: no second greeting; set the date to November 1: theme gone. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) No docs, changelog or What's New changes on purpose, to keep the surprise. ## UI evidence (if applicable) Screenshots were captured headless during development but are not attached here. To see it, open the preview link above. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a Halloween theme with seasonal artwork, colors, and a greeting on October 31. * Added options to keep the theme, turn it off for the year, or disable seasonal themes in Settings. * Added support for previewing the Halloween theme. * **Documentation** * Added information about the Halloween artwork. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:09:00 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7939
No description provided.