"Dark mode" is a feature flag for a single token: the surface color. Everything downstream — borders, text, accents — should derive from that, not be re-themed.
A token is a contract
A theme is a substitution. Tokens scale; theme substitutions break the moment you add a third surface.
[ Keep reading ]
Testing Medusa: What to Test, What to Skip, and How
Commerce code moves money, so untested checkout logic is a liability. A pragmatic test strategy — what earns its keep, and what is theatre.
Observability for Medusa: Logs, Traces and the Alerts Worth Having
Self-hosting means owning the question 'is checkout working?'. Structured logging, tracing, the four metrics that matter and alerts that do not cry wolf.
Caching Medusa: What to Cache, Where, and What Never To
Four cache layers, one rule about carts, and the invalidation strategy that stops a price change taking twelve hours to appear.



