Skip to content

How to change the color of an element dinamically ? #4255

Answered by huynhicode
Andromelus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Andromelus

Maybe try stroke: red. Although that doesn't update the arrow color to red.

You can also try lineColor: red before you export the diagram. This will update the link and arrow color.

themeVariables: {
     lineColor: red
}

Example here

Documentation here

Replies: 1 comment 1 reply

Comment options

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

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