Skip to content

Commit 10e4b07

Browse files
committed
fix: version color contrast
1 parent 19f3835 commit 10e4b07

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/utils/npm/outdated-dependencies.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ export function getVersionClass(info: OutdatedDependencyInfo | undefined): strin
7171
if (!info) return 'text-fg-subtle'
7272
// Green for up-to-date (e.g. "latest" constraint)
7373
if (info.majorsBehind === 0 && info.minorsBehind === 0 && info.resolved === info.latest) {
74-
return 'text-green-500 cursor-help'
74+
return 'text-green-700 dark:text-green-500 cursor-help'
7575
}
7676
// Red for major versions behind
77-
if (info.majorsBehind > 0) return 'text-red-500 cursor-help'
77+
if (info.majorsBehind > 0) return 'text-#db0000 dark:text-red-500 cursor-help'
7878
// Orange for minor versions behind
79-
if (info.minorsBehind > 0) return 'text-orange-500 cursor-help'
79+
if (info.minorsBehind > 0) return 'text-#bf7c01 dark:text-orange-500 cursor-help'
8080
// Yellow for patch versions behind
81-
return 'text-yellow-500 cursor-help'
81+
return 'text-#929220 dark:text-yellow-500 cursor-help'
8282
}

0 commit comments

Comments
 (0)