question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Structurizr type diagrams do not support themes

See original GitHub issue

hello my problem is as follows

Definition:

workspace "Amazon Web Services Example" "An example AWS deployment architecture." {

    model {
        springPetClinic = softwaresystem "Spring PetClinic" "Allows employees to view and manage information regarding the veterinarians, the clients, and their pets." "Spring Boot Application" {
            webApplication = container "Web Application" "Allows employees to view and manage information regarding the veterinarians, the clients, and their pets." "Java and Spring Boot"
            database = container "Database" "Stores information regarding the veterinarians, the clients, and their pets." "Relational database schema" "Database"
        }

        webApplication -> database "Reads from and writes to" "MySQL Protocol/SSL"

        live = deploymentEnvironment "Live" {

            deploymentNode "Amazon Web Services" {
                tags "Amazon Web Services - Cloud"

                region = deploymentNode "US-East-1" {
                    tags "Amazon Web Services - Region"

                    route53 = infrastructureNode "Route 53" {
                        description "Highly available and scalable cloud DNS service."
                        tags "Amazon Web Services - Route 53"
                    }

                    elb = infrastructureNode "Elastic Load Balancer" {
                        description "Automatically distributes incoming application traffic."
                        tags "Amazon Web Services - Elastic Load Balancing"
                    }

                    deploymentNode "Autoscaling group" {
                        tags "Amazon Web Services - Auto Scaling"

                        deploymentNode "Amazon EC2" {
                            tags "Amazon Web Services - EC2"

                            webApplicationInstance = containerInstance webApplication
                        }
                    }

                    deploymentNode "Amazon RDS" {
                        tags "Amazon Web Services - RDS"

                        deploymentNode "MySQL" {
                            tags "Amazon Web Services - RDS MySQL instance"

                            databaseInstance = containerInstance database
                        }
                    }

                }
            }

            route53 -> elb "Forwards requests to" "HTTPS"
            elb -> webApplicationInstance "Forwards requests to" "HTTPS"
        }
    }

    views {
        deployment springPetClinic "Live" "AmazonWebServicesDeployment" {
            include *
            autolayout lr

            animation {
                route53
                elb
                webApplicationInstance
                databaseInstance
            }
        }

        styles {
            element "Element" {
                shape roundedbox
                background #ffffff
            }
            element "Database" {
                shape cylinder
            }
            element "Infrastructure Node" {
                shape roundedbox
            }
        }

        themes "https://static.structurizr.com/themes/amazon-web-services-2020.04.30/theme.json"
    }

}

Result: https://structurizr.com/dsl structurizr-AmazonWebServicesDeployment-004

Result: https://kroki.io/structurizr/svg/eNq9Vt9v0zAQfs9fcQpviLZjgxckkMZWxNCYxjLE89W5tgbHDrbbrkP73zknaZt0SddtCD8l9vm-u-9-eWHsL5ejIIiPM7w1Gn7QCBKycynIwfAGs1xRzKcaqPyB4x8JpJQrs8xIe0ArptKT8DNL_Rj-RBHwykxKin-gWi63Uk8uyZ8oqaWA9-DM2C_Qkls6TxnESSEBa5EAqpRZOKAsgBHb4w3MJS0AdQoZapwQSD02NkMv2XZLE7Rp0OKnBHPyxCrRStTuVbEllGST-Sco4A1pISfv2OwV_EdjPBznuZKi0BnXfAhrQaPaKbshjPYoNVmIA3WNq__VgS84x2K75kncsD1FjyN01LT6tNoNHHjD8fhnFl2RKpSg2kA7MaUM4xrs2sS7KOpgufdho4C1YupgbE1WQC4sJ18glnV-XSbfzuHSGm-EUYMkOY83OpWcB883mTvUc2mNLpI4PufTdfKuCVvLXnA6t5bIdn6E5XHi2uupByfKzNI4uneHeS7zaRvze9IbovO9121ID6FdFVpb4ApIM_P09ogxOeCWMeysKOIS9yqcwtujLtiSHyeszIsYxZ_lZKqWwFkoFY64T4ToOIHljwh-w-lFAq40rx93qt3p0cqs1tt37Z6SGnV4OVS8w-3o3GAKH9lWLcju7fLxzJtQJ-wke55KVi5HM1-UkDBZqBqspbG3OB5L8UTPW0xlgEfxcC-f2f4QoWDohNMh3-X5LtuCIkhKTR3ZtqOehieHu4AfJIavRztvN9vJmXY-xLneBtd7TdFOrXfPor104-o0eSrf4er-NBdt8TkMMxyUvVVWPD1A-Kpb76R6JfR8kpuCWwKrNsdDJPSB-JOx_OzgEWLp94ycr2bH5-vry6RZTUGcb3Vkz56KStsqm8Lsd7VA1J5R2w-kaiJVEeGArOJxur6zHVJuOmrGAX_Z2EWuTYVLZgGUbVKDWlZj_n5uVLRFLb002q--ooeyImqPYS1-zi8VuS3rSFE5s4flR1tmuynmFHzQKaUjc3NPYITi16Q4hxfjYkXdGbVG3LyVuiDFksOXkt1H21ljIEEo1kf70kobP8Mypi2eep-7d4MB082To7-Ckre2z-NpUIoNsMiwHgexV81m1zs8ODzoH7zpHx2UUv2fLrwjKpy7vxVuYY4=

test

please help!!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
simonbrowndotjecommented, May 23, 2022

The PlantUML exporter should use the colours from the theme, although the theme is accessed via a HTTPS network call. If that’s blocked, you won’t see any colours.

0reactions
Mogzttercommented, Jun 23, 2022

I guess I will also need RelationshipStyle to have a public constructor since I’m decoding JSON.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Help - Themes - Structurizr
Structurizr supports the concept of themes, so that you can consistently style diagrams across workspaces. Themes are JSON files containing tag-based element ...
Read more >
How to apply theme? · Issue #3 · structurizr/themes - GitHub
I have a problem with applying the existing theme to my C4 model. What I did to apply theme to my workspace is:...
Read more >
Software Diagrams - C4 Models with Structurizr
An overview of the C4 model, including main and supplementary diagram types. After the introduction, we then compare of modelling vs ...
Read more >
Simon Brown (@simonbrown) / Twitter
An overview of the C4 model, including main and supplementary diagram types. After the introduction, we then compare of modelling vs diagrams and...
Read more >
Just enough documentation - Danyl Novhorodov's Blog
By using this approach for documentation and diagrams we can apply ... very good documentation and it supports export to all kinds of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found