Skip to content

Commit

Permalink
fix: Render patterns in a style consistent with equivalent exprs.
Browse files Browse the repository at this point in the history
Previously they were rendered in black.
  • Loading branch information
dhess committed Oct 27, 2022
1 parent 88eef4c commit 4547784
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/TreeReactFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ const flavorClasses = (flavor: NodeFlavor): string => {
return "border-yellow-primary ring-yellow-primary";

case "FlavorPatternCon":
return "border-black-primary ring-black-primary bg-white-primary";
return "border-green-primary ring-green-primary bg-white-primary";
case "FlavorPatternBind":
return "border-black-primary ring-black-primary bg-white-primary".concat(
return "border-blue-quaternary ring-blue-quaternary bg-white-primary".concat(
commonHoverClasses
);
case "FlavorPatternApp":
return "border-black-primary ring-black-primary bg-black-primary";
return "border-blue-tertiary ring-blue-tertiary bg-blue-tertiary";
}
};

Expand Down Expand Up @@ -318,15 +318,15 @@ const flavorLabelClasses = (flavor: NodeFlavor): string => {
syntaxClasses
);
case "FlavorPatternCon":
return "bg-black-primary border-black-primary text-white-primary".concat(
return "bg-green-primary border-green-primary text-white-primary".concat(
exprClasses
);
case "FlavorPatternBind":
return "bg-black-primary border-black-primary text-white-primary".concat(
return "bg-blue-quaternary border-blue-quaternary text-white-primary".concat(
exprClasses
);
case "FlavorPatternApp":
return "font-code bg-black-primary border-black-primary text-white-primary".concat(
return "font-code bg-blue-tertiary border-blue-tertiary text-white-primary".concat(
syntaxClasses
);
}
Expand Down

0 comments on commit 4547784

Please sign in to comment.