Skip to content

v0.1.2

Compare
Choose a tag to compare
@zaytri zaytri released this 13 Sep 07:38
· 199 commits to main since this release

New Feature

  • User data in messages now includes colorBrightness, which is set to either "light" or "dark" depending on the perceived brightness of the user's chosen name color. It is undefined if the user never chose a name color.
    • The brightness is calculated based on the APCA algorithm to determine readability contrast: https://colorjs.io/docs/contrast#accessible-perceptual-contrast-algorithm-apca
    • If a color is "light", then it will look best on a black background, and if a color is "dark", then it will look best on a white background
    • The default base theme now uses this to determine whether to use a white outline or black outline for the username

Getting Started