Const
Color mapping for security levels with background and text colors.
Colors are designed to provide intuitive visual feedback:
Each level includes both background and text colors to support various display contexts (badges, cards, buttons, etc.).
// Apply colors to a badge componentconst level = 'High';const colors = SECURITY_LEVEL_COLORS[level];<Badge style={{ backgroundColor: colors.bg, color: colors.text }}> {level}</Badge> Copy
// Apply colors to a badge componentconst level = 'High';const colors = SECURITY_LEVEL_COLORS[level];<Badge style={{ backgroundColor: colors.bg, color: colors.text }}> {level}</Badge>
// Use in dynamic stylingconst getLevelStyles = (level: SecurityLevel) => ({ borderColor: SECURITY_LEVEL_COLORS[level].bg, color: SECURITY_LEVEL_COLORS[level].text}); Copy
// Use in dynamic stylingconst getLevelStyles = (level: SecurityLevel) => ({ borderColor: SECURITY_LEVEL_COLORS[level].bg, color: SECURITY_LEVEL_COLORS[level].text});
Color mapping for security levels with background and text colors.
Colors are designed to provide intuitive visual feedback:
Each level includes both background and text colors to support various display contexts (badges, cards, buttons, etc.).