Hiyve Components - v1.0.0
    Preparing search index...

    Function getSpeakerColor

    • Generate a consistent color for a speaker based on their ID.

      Parameters

      • speakerId: string | null | undefined

        The speaker's user ID

      Returns string

      A hex color string

      Uses a hash function to generate the same color for the same speaker ID. Colors are chosen from a palette of distinct, visually pleasing colors.

      const color = getSpeakerColor('user-123');
      // Returns something like '#4CAF50'