Skip to content

Commit abb0f4b

Browse files
authored
default colors in box and tree should be ready for dark mode (#2391)
1 parent 21bbc23 commit abb0f4b

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

src/marks/box.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function boxX(
1616
x = identity,
1717
y = null,
1818
r,
19-
fill = "#ccc",
19+
fill = "color-mix(in srgb, currentColor 20%, var(--plot-background))",
2020
fillOpacity,
2121
stroke = "currentColor",
2222
strokeOpacity,
@@ -42,7 +42,7 @@ export function boxY(
4242
y = identity,
4343
x = null,
4444
r,
45-
fill = "#ccc",
45+
fill = "color-mix(in srgb, currentColor 20%, var(--plot-background))",
4646
fillOpacity,
4747
stroke = "currentColor",
4848
strokeOpacity,

src/transforms/tree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export function treeLink({
6565
path = identity, // the delimited path
6666
delimiter, // how the path is separated
6767
curve = "bump-x",
68-
stroke = "#555",
68+
stroke = "color-mix(in srgb, currentColor 33%, var(--plot-background))",
6969
strokeWidth = 1.5,
7070
strokeOpacity = 0.5,
7171
treeLayout = tree,

test/output/boxplot.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/boxplotFacetInterval.svg

Lines changed: 11 additions & 11 deletions
Loading

test/output/boxplotFacetNegativeInterval.svg

Lines changed: 11 additions & 11 deletions
Loading

test/output/diamondsBoxplot.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/internFacetNaN.svg

Lines changed: 12 additions & 12 deletions
Loading

test/output/morleyBoxplot.svg

Lines changed: 1 addition & 1 deletion
Loading

test/output/shorthandBoxX.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)