Closed juanrferia closed 3 years ago
For consistency reasons, view specific styles are not supported I'm afraid. You can achieve this via the workspace extension mechanism though (see https://github.com/structurizr/dsl/blob/master/docs/language-reference.md#workspace), as follows:
Thanks for the clarification
Hello,
I would like to automatically apply a blue color for the elements in scope of a view, while the elements our of scope keep being grey. Currently, I can achieve that by assigning tags to elements and defining a stiles for those tags, but then the elements are displayed always with the same stile for all views, regardless they are in or out of scope.
Let me explain with an example.
Given this workspace:
I would like to get these views:
SystemLandscape:
softwareSystem1_SystemContext:
softwareSystem2_SystemContext:
softwareSystem1_Containers:
softwareSystem2_Containers:
Is it maybe possible to automatically apply some default tag to the elements in scope? That would be a way to make it happen. If there is any existing way to achieve my goals, please let me know.
Thanks.