Skip to content

Commit

Permalink
Allow current color as valid css color
Browse files Browse the repository at this point in the history
In SVG images `curentColor` is allowed as a way to explicitly inherit the current color. When setting `currentColor` as fill color on a shape together with a styling class, the class will now be used instead of the theme, which was not possible otherwise.
  • Loading branch information
hboomsma authored Nov 3, 2023
1 parent 451aa70 commit 15b7bdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions d2graph/color_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import "regexp"

// namedColors is a list of valid CSS colors
var namedColors = []string{
"currentcolor",
"transparent",
"aliceblue",
"antiquewhite",
Expand Down

0 comments on commit 15b7bdb

Please sign in to comment.