Sitemap

Colourful Requirements Mermaid Diagrams

8 min read6 days ago

--

Customise Mermaid flowchart background and font colours in OpenRose. Create visually appealing requirements diagrams for presentations, documentation, and workshops.

Visualising requirements is an important part of effective requirements management. While capturing and organising requirements provides a structured way to manage project information, presenting that information in a clear and visually appealing format makes it much easier to communicate with management teams, stakeholders, and implementation teams.

At OpenRose, we recognise that different teams have different preferences when it comes to presenting information. Some prefer light-coloured diagrams, while others may want darker backgrounds, contrasting text, or colour schemes that align with their organisation’s branding.

To give users more flexibility, we have introduced a new enhancement to the Mermaid flowchart export capability in OpenRose.

You can now customise the background colour and font colour of your exported Mermaid diagrams directly from OpenRose.

This simple but useful enhancement gives you greater control over how your requirements breakdown structures are presented, making it easier to create diagrams that suit your documentation, presentations, and team preferences.

Let’s explore how it works.

Why Customise Mermaid Diagram Colours?

OpenRose allows users to export requirements breakdown structures as Mermaid flowcharts.

These diagrams provide a visual representation of your requirements hierarchy, including the relationships between parent and child requirements. They can be particularly useful when presenting project information to management teams or conducting requirements workshops.

However, the appearance of a diagram can have a significant impact on how easily people understand the information.

For example:

  • A light background with dark text may be suitable for traditional documentation.
  • A dark background with light text may work better for presentations.
  • Organisation-specific colours can help align diagrams with corporate branding.
  • Different colour combinations can improve readability and visual consistency across project documentation.

Previously, users had to rely on the default colour scheme generated by OpenRose.

With this new enhancement, you can choose your preferred background and font colours before generating the Mermaid diagram.

The best part is that you do not need to manually modify the generated Mermaid script.

How to Customise Mermaid Diagram Colours in OpenRose

Let’s use our Charity Fundraising demonstration project to explore this new capability.

The project contains several requirements organised using a structured Requirements Breakdown Structure (RBS).

To generate a Mermaid flowchart, we simply navigate to the Charity Fundraising project and open the Action tab.

From here, we can select the option to generate a Mermaid flowchart.

You will notice a new setting that allows you to control the colour preferences for the generated diagram.

The Keep Default Color option allows you to retain the standard colour scheme. When you want to customise the appearance, you can change the background and font colours instead.

Let’s first generate a Mermaid flowchart using the default colour settings.

OpenRose generates the Mermaid script containing the project structure and its associated traceability information.

We can copy this text and navigate to the Mermaid Live Editor.

After pasting the generated script, the editor automatically renders the requirements breakdown structure as a visual flowchart.

We can now see the requirements hierarchy, including the relationships between different requirements.

For example, a requirement such as “Define Fundraising Goals” is displayed using the default white background and black text.

Let’s see how we can change this.

Example 1: Using a Light Background with Custom Font Colours

Return to OpenRose and navigate back to the Mermaid export screen.

For our first customisation example, let’s choose:

  • Background colour: Light blue
  • Font colour: Dark reddish

After selecting these colours, we can regenerate the Mermaid flowchart.

Copy the newly generated Mermaid script and return to the Mermaid Live Editor.

Replace the previous script with the new content.

You will immediately notice that the background and font colours have changed.

The selected colour scheme is applied consistently across the requirement objects displayed in the diagram.

This demonstrates how easily users can personalise the appearance of their requirements flowcharts without manually editing individual diagram elements.

However, not every colour combination will necessarily produce the best visual result.

For example, a dark font on a light background may be easier to read than certain combinations with insufficient contrast.

Let’s try another colour scheme.

Example 2: Creating a Dark Background with Light-Coloured Text

For our next example, let’s return to OpenRose and select a different combination:

  • Background colour: Dark blue
  • Font colour: White or a similar light colour

Once again, regenerate the Mermaid flowchart and copy the resulting script.

Return to the Mermaid Live Editor and paste the updated content.

This time, we get a completely different appearance.

The requirements are displayed using a dark blue background with light-coloured text.

This provides a clear visual contrast and gives the diagram a more presentation-friendly appearance.

You can experiment with different background and font colour combinations depending on your preferences and where you intend to use the diagram.

Whether you are preparing project documentation, management presentations, or workshop materials, you can choose a colour scheme that makes the information easier to read and visually consistent with your preferred style.

What Happens to Tags When You Customise Colours?

Another useful capability in OpenRose is the ability to include tags in exported Mermaid flowcharts.

Tags allow users to classify requirements based on different business needs, categories, or other classification criteria.

In our Charity Fundraising project, several requirements contain tags.

When we generate a Mermaid flowchart, we can enable the option to include these tags alongside the requirement information.

Now, what happens when we combine this capability with custom background and font colours?

The requirement objects will use the background and font colours selected by the user.

However, the tags are displayed using their own predefined formatting.

Get OpenRose’s stories in your inbox

Join Medium for free to get updates from this writer.

Currently, tags retain a light green background with black text. This formatting is consistent and is not affected by the custom background and font colour settings applied to the requirement objects.

This distinction is intentional in the current implementation.

It allows users to visually differentiate between the actual requirement information and the tags associated with each requirement.

For example:

  • Requirement objects use your selected background and font colours.
  • Tag labels retain their predefined light green background and black text.

This makes it easier to identify the requirement name and its associated classification information at a glance.

Please note that customising the background and font colours of individual tags is not currently supported.

Using Customised Mermaid Diagrams in Other Tools

One of the advantages of generating Mermaid diagrams from OpenRose is that the exported content is not restricted to a single diagram editor.

Any tool that supports Mermaid diagrams can be used to render the generated Mermaid script.

For example, apart from the Mermaid Live Editor, you can also use draw.io (diagrams.net) to work with your exported diagrams.

Let’s see how this works.

First, copy the Mermaid script generated by OpenRose.

Next, open draw.io and navigate to:

Arrange → Insert → Mermaid

You can then paste the Mermaid script into the Mermaid insertion window.

Once you insert the script, draw.io automatically generates the diagram.

As you can see, the resulting diagram retains the custom background colours, font colours, and tag information included in the exported Mermaid content.

You can then adjust the diagram’s layout and positioning within draw.io to suit your presentation or documentation requirements.

This gives users additional flexibility when working with their requirements visualisations.

You can generate the Mermaid content directly from OpenRose and use it in whichever Mermaid-compatible tool best suits your workflow.

Key Benefits of Customisable Mermaid Diagram Colours

This enhancement may appear small, but it provides several practical benefits when communicating requirements information.

1. Improved Readability

Users can select background and font colour combinations that make their diagrams easier to read.

Choosing appropriate contrast between the background and text can improve the overall viewing experience, particularly when presenting large requirements structures.

2. Greater Presentation Flexibility

Different audiences and presentation environments may require different visual styles.

You can now generate diagrams with light or dark colour schemes depending on whether they are intended for documentation, presentations, or workshops.

3. Consistency with Organisational Branding

Many organisations have established colour schemes that they use across their documentation and presentations.

Customisable Mermaid colours make it easier to align requirements diagrams with those preferences.

4. No Manual Mermaid Script Modification

You do not need to understand or manually modify Mermaid styling instructions to change the appearance of your diagrams.

Simply select your preferred colours in OpenRose and regenerate the Mermaid output.

5. Maintain Your Existing Requirements Structure

Changing the colour scheme does not require you to restructure your requirements or change how you manage your project information.

Your requirements hierarchy and associated traceability information remain part of the generated diagram.

The enhancement simply gives you more control over how that information is presented.

Making Requirements Easier to Present and Share

At OpenRose, we believe that requirements management should support more than simply capturing and storing requirements.

It should also make it easier to communicate requirements information, collaborate with stakeholders, and present project data in ways that different audiences can understand.

The ability to customise Mermaid diagram colours is another practical improvement towards that goal.

By providing greater flexibility over the appearance of generated diagrams, we are making it easier for users to adapt their requirements visualisations to different presentation and documentation needs.

Whether you prefer a traditional light background, a modern dark theme, or colours that reflect your organisation’s visual identity, OpenRose gives you more control over the final output.

And you can achieve all this without changing the way you create and manage your requirements.

Contribute to the OpenRose Community

OpenRose is a free and open-source Requirements Management Tool, and community participation is an important part of its continued development.

We welcome contributions from users and developers who want to help improve the platform and make requirements management more accessible.

Contributing does not necessarily mean writing software code.

There are several ways you can get involved:

  • Software development: Contribute code, enhancements, and improvements to the platform.
  • Documentation: Help improve user guides, technical documentation, and learning resources.
  • User scenarios: Share how you use OpenRose in real-world requirements management situations.
  • Use cases: Explain your requirements management challenges and how OpenRose can help address them.
  • Community engagement: Share your experiences and introduce OpenRose to other teams and organisations.

Your feedback, ideas, and practical experiences can help us make OpenRose more useful for everyone.

Try OpenRose — A Free and Open-Source Requirements Management Tool

If you are looking for a flexible and accessible Requirements Management Tool, why not explore OpenRose?

OpenRose provides a platform for managing requirements and related project information, with capabilities that support structured requirements management, classification, estimation, baselines, and visualisation.

We are continuously introducing practical enhancements to make requirements management easier to manage, present, and share.

Take control of your requirements. Visualise your projects. Communicate with confidence.

Visit the OpenRose website to learn more, explore its capabilities, and get started.

If you find OpenRose useful, please share it with your colleagues, teams, and the wider requirements management community.

OpenRose, a free and open-source requirements management application / tool. For more information, visit

https://github.com/openrose

Press enter or click to view image in full size

--

--

OpenRose
OpenRose

Written by OpenRose

OpenRose - a FREE and Open Source Requirements Management Application Main purpose - 'do it right' and ultimately 'reduce waste'. info.openroserm@gmail.com