@@ -7,20 +7,20 @@ import { SEVERITY_LEVELS } from '../types'
77 * Color classes for severity levels (banner style)
88 */
99export const SEVERITY_COLORS : Record < OsvSeverityLevel , string > = {
10- critical : 'text-red-500 bg-red-500/10 border-red-500/50' ,
11- high : 'text-red-400 bg-red-500/10 border-red-500/30' ,
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' ,
1212 moderate : 'text-orange-400 bg-orange-500/10 border-orange-500/30' ,
13- low : 'text-yellow-400 bg-yellow-500/10 border-yellow-500/30' ,
13+ low : 'text-#929220 dark:text- yellow-400 bg-yellow-500/10 border-yellow-500/30' ,
1414 unknown : 'text-fg-muted bg-bg-subtle border-border' ,
1515}
1616
1717/**
1818 * Color classes for inline severity indicators
1919 */
2020export const SEVERITY_TEXT_COLORS : Record < OsvSeverityLevel , string > = {
21- critical : 'text-red-500' ,
22- high : 'text-orange-500' ,
23- moderate : 'text-yellow-500' ,
21+ critical : 'text-#db0000 dark:text- red-500' ,
22+ high : 'text-#bf7c01 dark:text- orange-500' ,
23+ moderate : 'text-#929220 dark:text- yellow-500' ,
2424 low : 'text-blue-500' ,
2525 unknown : 'text-fg-subtle' ,
2626}
0 commit comments