Skip to content

cellBackgroundRender

The cellBackgroundRender function returns a cell background color style object based on risk severity using a specific color scheme optimized for rendering.

{riskLevel | cellBackgroundRender}
  • input (string): The risk level - one of: “Critical”, “High”, “Medium”, “Low”, “Informational”
  • An object with cellBackground property containing the hex color code
  • null if input is null or doesn’t match any risk level
Risk Level Background Color Description
Critical #0b0606 Very dark red/black
High #e5301e Bright red
Medium #f3bb33 Orange/amber
Low #ffff6e Light yellow
Informational #b7b7b7 Light gray
{"High" | cellBackgroundRender}
// Returns: { cellBackground: "#e5301e" }
{vulnerability.risk | cellBackgroundRender}
// Applies appropriate background color for risk level
{null | cellBackgroundRender}
// Returns: null
{"Critical" | cellBackgroundRender}
// Returns: { cellBackground: "#0b0606" }
  • Risk severity visualization in rendered reports
  • Color-coded vulnerability tables
  • Security dashboard indicators
  • Executive summary risk highlighting
  • Compliance status visual indicators

This function uses a different color palette optimized for better readability in rendered documents, with more subtle color variations compared to riskBackgroundColor.