@mixin handletypestyles($type) {
    .react-flow__node-#{$type} {
        @include handlecoloring($type);
    }
}

@mixin handlecoloring($type) {
    .react-flow__handle {
        color: var(--#{$eccgui}-#{$type}-node);
    }
}

// Graph handle types

@include handletypestyles("graph");
@include handletypestyles("class");
@include handletypestyles("instance");
@include handletypestyles("property");

// Workflow handle types

@include handletypestyles("dataset");
@include handletypestyles("linking");
@include handletypestyles("transform");
@include handletypestyles("task");
@include handletypestyles("workflow");

// Linking handle types

@include handletypestyles("sourcepath");
@include handletypestyles("targetpath");
@include handletypestyles("transformation");
@include handletypestyles("ruleblock");
@include handletypestyles("comparator");
@include handletypestyles("aggregator");
