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 LevelBackground ColorDescription
Critical#0b0606Very dark red/black
High#e5301eBright red
Medium#f3bb33Orange/amber
Low#ffff6eLight yellow
Informational#b7b7b7Light 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.