d2 icon indicating copy to clipboard operation
d2 copied to clipboard

Bug/Enhancement - Color customization for fill-pattern

Open optymistic opened this issue 8 months ago • 1 comments

Allow customization of pattern color

When using fill-pattern with a custom background/fill color, there can be times where the default pattern color is incompatible which affects visibility

Example: Try in playground

Code:

style.fill-pattern: dots
style.fill: "black"
x -> y

Result:

Image

Suggestion:

pattern-color or fill-pattern-color where the user can set a custom color for the patterns.

optymistic avatar Aug 22 '25 11:08 optymistic