Skip to content

Add an optional Christmas theme to the office - #114

Merged
tuliren merged 3 commits into
mainfrom
claude/project-thread-knrysg
Nov 29, 2026
Merged

tuliren merged 3 commits into
mainfrom
claude/project-thread-knrysg

Conversation

@tuliren

@tuliren tuliren commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Requested by T · project thread

What

The settings card gets a theme section: none (the default) or christmas. The choice is kept per viewer, like the drawing style.

With Christmas on:

  • Fairy lights swagged along all four walls under the cornice, flashing through a three-figure programme (two by two, a chase, breathing). They stop either side of the usage board so it stays readable.
  • A tree with a star, baubles, a gold garland, its own lights, and four presents, standing where the plant between the bookshelf and the dog's bed stood.
  • A wreath in every window, and one on the door that swings with the leaf.
  • Poinsettias for the other plants.
  • Christmas sweaters on every agent (six designs, the same one for the same figure all day), and a sweater and Santa hat for the human.

How

  • theme.ts holds the active theme, the way styles/active.ts holds the style. Nothing reaches core.
  • THEME_PIECES in room.ts is each theme's dressing: pieces to stand, pieces to hang, and the everyday pieces that step aside. The renderer swaps them in and out in dress().
  • The tree takes a core PLANTS spot, so routes already go round it and whoever comes to water the plant waters the tree.
  • Every piece's state now carries the theme, so an object can dress itself (the plant, the door) with no new object.
  • OfficeObject.lights lists an object's bulbs. The drawing shows them unlit; the renderer lays a tinted halo and bulb sprite over each and sets their alpha each frame from lights.ts, a pure function of frame time. Every change is a fade, and prefers-reduced-motion holds them steady.
  • Sweaters are drawn in the rigs' own canvases (sweater.ts), clipped to the torso, so the figures' outlines are unchanged and drawing styles apply as usual.

Scale

Checked in christmas.test.ts against AVATAR: the tree is a head taller than the avatar, a present is a box it could carry, a wreath is about as wide as its head, and the lights hang over its head.

Testing

yarn lint, yarn typecheck, yarn test pass. Checked in a headless browser on the hero bundle: toggling from the settings card both ways, the room turned, night and day, and the neon style.

@vercel

vercel Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
agentopia Ready Ready Preview Nov 29, 2026 7:36am UTC

Request Review

@tuliren
tuliren marked this pull request as ready for review November 29, 2026 07:42
@tuliren
tuliren merged commit 070ca6f into main Nov 29, 2026
9 of 10 checks passed
@tuliren
tuliren deleted the claude/project-thread-knrysg branch November 29, 2026 07:44

This branch was successfully deployed

1 active deployment
Preview — 68458cbe Deployed Nov 29, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant