Skip to main content

Diagram Color System

Objective: Define the canonical color palette and visual encoding rules for Coherosphere diagrams. Note: Ensures consistent semantics across all C4 layers β€” components, domains, and states. This document standardizes visual communication and CI compliance for architecture diagrams.


Color Semantics Overview​

CategoryMermaid ClassColorMeaningTypical Components
🟧 Core Logic / Compute:::compute#ff8b00Central algorithmic or resonance logic. Responsible for calculating systemic impact, coherence, or alignment.Resonance Engine, KPI Aggregator, SRI Engine, CP Calculator
🟨 Control / API / Validation:::control#fde68aManages flow, orchestrates logic, or validates inputs. Often the gateway layer of a service.API Controller, Schema Guard, Parameter Versioning
🟦 Storage / Persistence:::store#0ea5e9Stores state, metrics, or historical data for traceability.Ledger, Database, Snapshot Store, Graph Store
πŸŸͺ User Interface / Presentation:::ui#8b5cf6Human-facing surfaces for interaction or transparency.Resonance Board UI, Developer Portal
🟩 Event / Publishing:::event#22c55eEmits events, metrics, or signals to the ecosystem.Event Publisher, Feed Service, Federation Client
πŸŸ₯ Security / Risk / Guard:::risk#ef4444Protects integrity, prevents abuse, or ensures compliance.Security Layer, Sybil Guard, Compliance Checks
🟫 Worker / Batch / Job:::worker#fb923cPerforms background or scheduled processing (decay, sync, recompute).Recompute Worker, Snapshotter, Sync Agent
βšͺ External System / Integration:::ext#e5e7ebExternal entities interacting with the system.Bitcoin Layer, External DAO, AI Agent, Oracles
⚫ Container Boundary:::container#111827Visual boundary grouping all components of a service.C2 or C3 subgraph header

Reading a Diagram​

Color in Coherosphere diagrams isn’t arbitrary β€” it’s functional.
It lets you instantly recognize what kind of thing a node represents:

  • 🟨 Controls guard or route flows.
  • 🟧 Computes generate resonance, value, or insight.
  • 🟦 Stores persist systemic memory.
  • 🟩 Events propagate influence outward.
  • πŸŸ₯ Risk nodes protect coherence.
  • 🟫 Workers maintain temporal processes.
  • πŸŸͺ UI visualizes coherence to humans.
  • βšͺ External nodes connect to the wider world.

Mnemonic:
Yellow steers, Orange computes, Blue stores, Green emits, Red guards, Brown works, Purple shows, Gray connects.


Prepared by: the coherosphere collective