From 646a16cd0f311f525a4cb0e9417e8f757a6c2d4d Mon Sep 17 00:00:00 2001 From: Aaron Wood Date: Fri, 10 Apr 2026 18:54:44 -0400 Subject: [PATCH] Add particle effects / atmosphere panel design spec Co-Authored-By: Claude Sonnet 4.6 --- .../2026-04-10-particle-effects-design.md | 106 ++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 docs/superpowers/specs/2026-04-10-particle-effects-design.md diff --git a/docs/superpowers/specs/2026-04-10-particle-effects-design.md b/docs/superpowers/specs/2026-04-10-particle-effects-design.md new file mode 100644 index 0000000..7cbcced --- /dev/null +++ b/docs/superpowers/specs/2026-04-10-particle-effects-design.md @@ -0,0 +1,106 @@ +# Particle Effects / Atmosphere Panel + +**Date:** 2026-04-10 +**Status:** Approved + +## Summary + +Replace the single fog toggle button in the campaign header with an atmosphere panel that supports four effects: fog (CSS, existing), fire, rain, and embers (tsParticles). Effects stack independently. Each effect has an on/off toggle and an intensity slider (0–100). + +## Library + +`@tsparticles/react` + `@tsparticles/slim` + +- Slim engine includes all shapes and movers needed for fire, rain, embers +- Intensity maps directly onto particle config params (count, speed) +- FogOverlay stays as CSS — no library change for fog + +## Components + +### `AtmospherePanel.tsx` (new) + +Button trigger in the campaign header, replacing the existing fog `