Skip to content

How to add styles to GLSP elements #752

Discussion options

You must be logged in to vote

@rileydanejohnston Hello, did you manage to resolve your issue in the meantime? It is not clear to me whether you mean that your stylesheets are not loaded, i.e., they do not show up at all when investigating the applied styles, or whether your styles are overridden, could you please clarify.

If your styles are overridden (due to some more specific selector or the order of the CSS files not being as you would expect), you can try to add an !important rule to ensure your style gets priority, e.g.,

.parent-node > rect {
  fill: rgb(128, 90, 233) !important;
}

rect.sprotty-node {
   fill: rgb(128, 90, 233) !important;
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rileydanejohnston
Comment options

Answer selected by tortmayr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants