Skip to content

Changing color of nodes #205

Closed Answered by newcat
OutLandishnessSad asked this question in Q&A
Discussion options

You must be logged in to vote

You can use CSS for that, by creating classes for your node type. Let's say you have a AdditionNode and a SubtractionNode, which you want to color green, as well as a DisplayNode which you want to be red:

.node.--type-AdditionNode,
.node.--type-SubtractionNode {
  background: green;
}

.node.--type-DisplayNode {
  background: red;
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@OutLandishnessSad
Comment options

@newcat
Comment options

Answer selected by OutLandishnessSad
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