Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 1.73 KB

corporate-branding.md

File metadata and controls

37 lines (21 loc) · 1.73 KB

Corporate branding

Note: this page describes a feature that is not available to use with Structurizr's Free Plan.

In addition to styling diagram elements and relationships, some corporate branding can be added to diagrams and documentation. This includes:

  • A font (font name and optional web font stylesheet URL).
  • A logo (a URL to an image file or a data URI).

Here's an example diagram that hasn't been styled, aside from setting the shape of the Person elements.

Unbranded diagram

And here's what the documentation looks like.

Unbranded documentation

You can add branding to an existing workspace, as follows:

Branding branding = views.Configuration.Branding;
branding.Logo = ImageUtils.GetImageAsDataUri(new FileInfo("structurizr-logo.png"));

Diagrams

If no colours have been specified via diagram element styles, colour pairs 1-4 will be used when rendering people, software systems, containers and components respectively. Here's the same diagram, now with added branding. Notice that the logo is now also shown in the bottom left corner.

Branded diagram

Documentation

With documentation, the colour pairs are mapped onto the navigation links at the top of the page, while the first colour pair is used when rendering hyperlinks. Again, the logo is shown.

Branded documentation

See CorporateBranding.cs for a full example, and https://structurizr.com/share/35031 to access the workspace.