Skip to content

Colors and borders

Nodes, groups, and tables accept independent appearance attributes:

Attribute Meaning
fill Background color
color Border color
textColor Text color
borderStyle solid, dashed, dotted, or none

Colors accept CSS color values, including hex, named colors, and rgba(...). Quote values containing spaces. Omitted attributes follow the workspace’s light or dark appearance.

node id="web" title="Web App" shape="browser" fill="#e3f2fd" color="#2563eb" textColor="#172554"
node id="db" title="Database" shape="cylinder" fill="#e8f5e9" color="#167a47" textColor="#123321" borderStyle="dashed"
group id="services" title="Services" fill="rgba(79, 91, 208, 0.08)" color="#4f5bd0" {
node id="api" title="API"
}

Custom colors remain the same when switching between light and dark appearance. When setting a fill, choose a readable text color too. Remove an attribute to restore its default.

Table columns continue to support color for the column heading accent. Edges use style="solid", style="dashed", or style="animated".