Skip to content

Commit 6bf7992

Browse files
committed
Fix: rgba
1 parent 06f4ca6 commit 6bf7992

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/plugin.colors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const BORDER_COLORS = [
2121
'rgb(201, 203, 207)' // grey
2222
];
2323

24-
// Primary colors with 50% transparency
25-
const BACKGROUND_COLORS = /* #__PURE__ */ BORDER_COLORS.map(_ => _.replace(')', ', 0.5)'));
24+
// Border colors with 50% transparency
25+
const BACKGROUND_COLORS = /* #__PURE__ */ BORDER_COLORS.map(color => color.replace('rgb(', 'rgba(').replace(')', ', 0.5)'));
2626

2727
function getBorderColor(i: number) {
2828
return BORDER_COLORS[i % BORDER_COLORS.length];

0 commit comments

Comments
 (0)