Skip to content
English

Diagram color catalogue

Document content and editorial review: approved on 2026-11-16 by Codex under the repository user’s delegated review. Approval covers this explanation and its stated evidence limits; semantic, mapping, lifecycle and target states remain independent.

Conceptual overview

%%{init: {'theme':'base','fontFamily':'Arial, sans-serif','themeVariables':{'lineColor':'#8792a2','textColor':'#f8fafc','nodeTextColor':'#f8fafc','primaryTextColor':'#f8fafc','arrowheadColor':'#8792a2','dropShadow':'none','useGradient':false,'edgeLabelBackground':'#252b36','fontFamily':'Arial, sans-serif','fontSize':'16px'}}}%%
flowchart TD
  accTitle: How diagram categories work
  accDescr: A concept label identifies its semantic category. The category selects a registered style; relationship labels explain connections.
  C["Concept label"]:::context -->|identifies| K["Semantic category"]:::context
  K -->|selects| S["Registered style"]:::context
  C -->|connects through| R["Labeled relationship"]:::context
  classDef context fill:#343c4b,color:#f8fafc,stroke:#8792a2,stroke-width:2px

Text equivalent: A concept identifies its category; the category selects its registered style. Relationship labels explain connections independently of color.

Provenance: presentation conventions approved by the user on 2026-11-03. Categories describe diagram roles; auxiliary roles introduce no ontology kinds.

Accessibility contract

Dark surfaces with light text are the primary reading context. The same dark node fills and light labels work on the light theme and white PDF pages; a separate palette variant is unnecessary while these combinations pass checks. Each style specifies fill, text and a two-pixel border. Node text must reach 4.5:1 against its fill. Essential borders and connectors must reach 3:1 against adjacent fills and the surrounding page. Connector labels use light text on #252b36; connectors and arrowheads use #8792a2.

Names and relationship labels carry meaning independently of color. These colors are not guaranteed distinguishable from one another under every color vision condition. A category is always written in the label or explained by a local textual key; approval, uncertainty and coverage are stated explicitly.

The palette frontmatter above is canonical. The following swatches demonstrate its categories. Matching classDef declarations travel with each portable Mermaid block; the repository test checks them against the catalogue.

Category swatches

The samples form one visual key. Rows arrange labels for reading; they do not create groups, hierarchy or relationships between categories.

  • Module
  • Feature
  • Entity
  • Value Object
  • Field
  • Field Group
  • Validation Rule
  • Quality Attribute
  • Supporting context
  • Measure or limit
  • Technique

Text equivalent: Module, Feature, Entity, Value Object, Field, Field Group, Validation Rule and Quality Attribute retain their existing domain meanings. Supporting context describes editorial containers, external classifications, shared definition spaces and unmodeled elements without assigning an ontology kind. Measure or limit and Technique are auxiliary visual roles, not new quality attribute ontology kinds. Their exact meaning stays in each node label.

Palette values

Category key Fill Text Border
module #173b63 #f8fafc #8792a2
feature #413265 #f8fafc #8792a2
entity #164c43 #f8fafc #8792a2
value #49355c #f8fafc #8792a2
field #214655 #f8fafc #8792a2
group #51421c #f8fafc #8792a2
rule #572b36 #f8fafc #8792a2
quality #24452a #f8fafc #8792a2
context #343c4b #f8fafc #8792a2
measure #503824 #f8fafc #8792a2
technique #4b3049 #f8fafc #8792a2

The table is a readable rendering reference for this small catalogue; changes must update the canonical metadata, table, swatches and affected portable blocks together. Tests reject mismatched styles. Existing concepts keep the same category across diagrams; individual quality attributes share quality.

Extending the catalogue

  1. Reuse an existing category when its meaning fits. New instances do not need new colors. Keep unknown or unmodeled elements labeled as such.
  2. For a new category, add a stable lowercase key, English meaning, fill, text, border and a labeled swatch here before using it in another diagram. State whether it is an existing ontology kind or an auxiliary presentation role.
  3. Check numeric contrast and inspect the rendered swatch in both themes and print. Add variants only when one combination cannot satisfy those contexts.
  4. Review all affected diagrams when changing an existing assignment; preserve category keys and explain semantic changes separately from palette changes.

Reading and authoring diagrams

Place a compact conceptual overview after a short introduction and before the main detail when relationships, composition, flows or conceptual distinctions need explanation. Use additional focused diagrams near detailed explanations. Retain textual equivalents, provenance, uncertainty and existing source anchors. See the functional ontology and value ontology for domain meanings. The repository policy defines exemptions and visual verification; this catalogue defines styles.