-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Structurizr: Cannot override styles when using default theme #1586
Comments
@simonbrowndotje Hey Simon! I hope you are doing fine. What is the correct behavior here? I guess the style defined explicitly should have higher precedence and "override" the theme style? Is that correct? So should I catch |
See https://structurizr.com/help/themes for more, but essentially any styles defined in the workspace will override any styles defined in the theme ... at least that's how I've implemented it. For example:
Generates this diagram: The DSL parser checks for the existence of a style rather than catching |
It makes sense, thanks for your reply! I will implement it that way 👍🏻 |
Thanks a bunch for kroki, it makes my life a lot easier.
Small issue I have: this example fails with 0.21.0 and later, but works with 0.20.0:
Stacktrace reformatted for better readability.
Error does not appear when either removing the
theme default
or thestyles
stanza.Works a expected when loading theme via HTTP. Default theme URL as a workaround: https://raw.githubusercontent.com/structurizr/themes/2ee01b0dd917a77e6427f8cf870e976635fb07f9/default/theme.json
Probably related to #1543.
The text was updated successfully, but these errors were encountered: