Frontmatter
| id | 8696 |
| title | Refine HomeCanvas colors for Light/Dark mode support |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Jan 16, 2026, 6:14 AM |
| updatedAt | Jan 16, 2026, 6:24 AM |
| githubUrl | https://github.com/neomjs/neo/issues/8696 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 16, 2026, 6:24 AM |
Refine HomeCanvas colors for Light/Dark mode support
tobiu assigned to @tobiu on Jan 16, 2026, 6:22 AM

tobiu
Jan 16, 2026, 6:23 AM
Input from Gemini 3 Pro:
✦ I have refactored
HomeCanvas.mjsto support dynamic theming, addressing the visibility issues on light backgrounds.Changes:
- Added
themeConfig: A new reactivethemeconfig (defaults to'light') controls the visual palette.- Color Palettes: Defined
static colorsforlightanddarkmodes.
- Light Mode: Uses
PRIMARY(#3E63DD) andINDIGO(#4B0082) for agents, sparks, and signals to ensure high contrast against the#fcfcfcbackground.- Dark Mode: Uses
#FFFFFFfor high visibility on dark backgrounds.- Dynamic Rendering: Updated all draw methods (
drawAgents,drawNetwork,drawPackets,drawShockwaves,drawSparks) to fetch colors from the active theme palette instead of using hardcoded values.- Resource Updates: Added
afterSetThemeto automatically update gradients and force a redraw when the theme changes.- Remote Access: Exposed
setThemevia theremoteconfig to allow the App Worker to switch themes at runtime.The "white on white" invisibility issue is resolved, and the canvas is now ready for a future dark mode toggle.
tobiu closed this issue on Jan 16, 2026, 6:24 AM
The
apps/portal/canvas/HomeCanvas.mjscomponent currently uses hardcoded white colors for key visual elements like agent heads, packet signals, and shockwave cores. This renders them invisible against the default light background of the portal (#fcfcfc).This ticket aims to:
themeconfiguration inHomeCanvasto support bothlightanddarkmodes.This will prepare the Portal for a future dark theme switch while fixing immediate visibility issues.