CIA Compliance Manager API Documentation - v1.1.6
    Preparing search index...

    Function getSecurityLevelColorPair

    • Get color pair (background and text) for a specific security level

      Returns coordinated background and text colors optimized for readability and visual hierarchy in security level displays. Colors follow consistent semantic meaning across the application.

      Parameters

      Returns SecurityLevelColorPair

      Object with background and text color hex codes

      const colors = getSecurityLevelColorPair('High');
      console.log(colors.bg); // "#fff8e1" (light amber background)
      console.log(colors.text); // "#ff8f00" (amber text)

      // Usage in component
      <div style={{
      backgroundColor: colors.bg,
      color: colors.text
      }}>
      High Security Level
      </div>