-
Notifications
You must be signed in to change notification settings - Fork 607
Description
I have a special use case where I import themes files (different collections of images). Imagine a light.d2 and a dark.d2 file.
When I want to generate a image in dark theme. I import both light and dark. dark.d2 will override the light properties if needed, some configuration stays the same.
Which result in something like this:

First style block comes from light.d2 and second style block from dark.d2.
Here I expect the "Arrow" text to be blue as it's defined last ; as it seems that the arrow color is correctly overridden.
I haven't checked every properties.
Reproduction:
https://play.d2lang.com/?script=0tBS0LVT0NLSjNaKtVKo5lJQKC6pzEmFMEGcovzsVCsFpaLUFCWwSFp-Xolucn5OfhFCtJarlotYg5JySlOxmAQTBhmVaKXgVpSfy5VkpRCSz5UIMjfJSsGxqCi_nAsQAAD__w%3D%3D&layout=elk&
code in details block
Details
(* -> **)[*]: {
style: {
stroke: "red"
font-color: "red"
}
}
(* -> **)[*]: {
style: {
stroke: "blue"
font-color: "blue"
}
}
a: From
b: To
a -> b: ArrowMetadata
Metadata
Assignees
Labels
Type
Projects
Status