Skip to content

Commit 71ed4e7

Browse files
committed
adjust tag colors in dark mode
1 parent c7617ce commit 71ed4e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/IssuesList/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ type IssuesListProps = SimpleGridProps & {
2525
function pickTagColorsByColorMode(color: string, colorMode: ColorMode) {
2626
if (colorMode === "dark") {
2727
return {
28-
color: `#${color}`,
29-
bgColor: `#${color}22`,
28+
color: getContrastYIQ(`#${color}`),
29+
bgColor: `#${color}90`,
3030
}
3131
} else {
3232
return {

0 commit comments

Comments
 (0)