Documentation
    Preparing search index...

    Function useThemeBrandColor

    • Returns the most accessible Theme palette brand color (optionally preferring the secondary color) and its contrasting color using the ThemeContext. If neither brand color passes accessibility, the info color is returned.

      Parameters

      • preferSecondaryColor: boolean = false

      Returns [
          "primary"
          | "secondary"
          | "info",
          "primaryContrast" | "secondaryContrast" | "surface",
      ]