Skip to content

generateUserColor

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/lib/user-colors.ts

Generate a consistent color for a user based on their userId The same userId will always return the same color

Signature

ts
function generateUserColor(userId: string): string

Parameters

NameType
userIdstring

Returns: string

Was this page helpful?

Download as PDF