Skip to content

Commit ed73e25

Browse files
committed
chore: update colors
1 parent 10e507c commit ed73e25

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

app/utils/npm/outdated-dependencies.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ export function getVersionClass(info: OutdatedDependencyInfo | undefined): strin
7474
return 'text-green-700 dark:text-green-500 cursor-help'
7575
}
7676
// Red for major versions behind
77-
if (info.majorsBehind > 0) return 'text-#db0000 dark:text-red-500 cursor-help'
77+
if (info.majorsBehind > 0) return 'text-red-700 dark:text-red-500 cursor-help'
78+
// if (info.majorsBehind > 0) return 'text-#db0000 dark:text-red-500 cursor-help'
7879
// Orange for minor versions behind
79-
if (info.minorsBehind > 0) return 'text-#bf7c01 dark:text-orange-500 cursor-help'
80+
if (info.minorsBehind > 0) return 'text-orange-700 dark:text-orange-500 cursor-help'
8081
// Yellow for patch versions behind
81-
return 'text-#929220 dark:text-yellow-500 cursor-help'
82+
return 'text-yellow-700 dark:text-yellow-500 cursor-help'
8283
}

server/utils/shiki.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export async function getShikiHighlighter(): Promise<HighlighterCore> {
2525
import('@shikijs/themes/github-light').then(t =>
2626
replaceThemeColors(t.default ?? t, {
2727
'#22863A': '#227436', // green
28+
'#E36209': '#BA4D02', // orange
29+
'#D73A49': '#CD3443', // red
2830
'#B31D28': '#AC222F', // red
2931
}),
3032
),

shared/utils/severity.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,22 @@ import { SEVERITY_LEVELS } from '../types'
77
* Color classes for severity levels (banner style)
88
*/
99
export const SEVERITY_COLORS: Record<OsvSeverityLevel, string> = {
10-
critical: 'text-#db0000 dark:text-red-500 bg-red-500/10 border-red-500/50',
11-
high: 'text-#ee0101 dark:text-red-400 bg-red-500/10 border-red-500/30',
12-
moderate: 'text-orange-400 bg-orange-500/10 border-orange-500/30',
13-
low: 'text-#929220 dark:text-yellow-400 bg-yellow-500/10 border-yellow-500/30',
10+
critical: 'text-red-700 dark:text-red-500 bg-red-800/10 dark:bg-red-500/10 border-red-500/50',
11+
high: 'text-red-800 dark:text-red-400 bg-red-800/10 dark:bg-red-500/10 border-red-500/30',
12+
moderate:
13+
'text-orange-800 dark:text-orange-400 bg-orange-600/10 dark:bg-orange-500/10 border-orange-500/30',
14+
low: 'text-yellow-700 dark:text-yellow-400 bg-yellow-500/10 border-yellow-500/30',
1415
unknown: 'text-fg-muted bg-bg-subtle border-border',
1516
}
1617

1718
/**
1819
* Color classes for inline severity indicators
1920
*/
2021
export const SEVERITY_TEXT_COLORS: Record<OsvSeverityLevel, string> = {
21-
critical: 'text-#db0000 dark:text-red-500',
22-
high: 'text-#bf7c01 dark:text-orange-500',
23-
moderate: 'text-#929220 dark:text-yellow-500',
24-
low: 'text-blue-500',
22+
critical: 'text-red-700 dark:text-red-500',
23+
high: 'text-orange-700 dark:text-orange-500',
24+
moderate: 'text-yellow-700 dark:text-yellow-500',
25+
low: 'text-blue-700 dark:text-blue-500',
2526
unknown: 'text-fg-subtle',
2627
}
2728

0 commit comments

Comments
 (0)