You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
499 B
17 lines
499 B
export function messageBubbleColorForHue(hue) { |
|
// Tweak these to adjust the result of the color |
|
const saturation = 50; |
|
const lightness = 50; |
|
const alpha = 'var(--message-background-alpha)'; |
|
|
|
return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`; |
|
} |
|
|
|
export function textColorForHue(hue) { |
|
// Tweak these to adjust the result of the color |
|
const saturation = 70; |
|
const lightness = 80; |
|
const alpha = 0.85; |
|
|
|
return `hsla(${hue}, ${saturation}%, ${lightness}%, ${alpha})`; |
|
}
|
|
|