Styling

Customize the appearance of nodes and edges with colors and named styles.

Node Colors

@arch
[nodes]
  api:API|color:blue
  db:Database|cyl|color:green
  error:Error Handler|color:red
  warning:Warning|color:orange
Rendered diagram

Available Colors

TDL supports named colors:

Color
Hex
Use Case

red

#EF4444

Errors, critical

orange

#F97316

Warnings, staging

yellow

#EAB308

Caution

green

#22C55E

Success, production

blue

#3B82F6

Primary, info

purple

#A855F7

Special, async

pink

#EC4899

Accent

gray

#6B7280

Disabled, deprecated

Custom Hex Colors

Edge Styling

Inline Styling

Style Properties

Property
Values
Example

color

Named or hex

color:red, color:#3B82F6

width

Number

width:2, width:3

dash

Pattern

dash:5,5, dash:10,5,2,5

Named Styles

For consistent styling, define reusable styles in a [styles] section:

Rendered diagram

Style Override

Override specific properties while using a named style:

Common Style Patterns

Sync vs Async

Traffic Types

Environment Boundaries

Full Example

Rendered diagram

Next Steps

Last updated