New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
role badge color unreadible #2775
Comments
Start a new pull request in StackBlitz Codeflow. |
I can confirm this issue. Mastodon can specify arbitrary colors. So maybe Elk needs to use the fixed color (like the theme color) instead of the given custom color like Mastodon UI. There might be a way to choose a good color dynamically from the specified color. For example, choose a color that has enough contrast to both the custom color and the color mode (dark/light)? But I don't have any idea to do so for now. |
Leonardo: an open source contrast-based color generator | by Nate Baldwin | Medium - https://medium.com/@NateBaldwin/leonardo-an-open-source-contrast-based-color-generator-92d61b6521d2 This might be a potential solution but I think it's too complicated just for the badge color. |
on Elk the role badge text is showing up almost unreadable when 'color' is set to black in mastodon's admin settings
heres what it looks like on Mastodon
this is set in mastodon's admin page at instance.tld/admin/roles/
the role badge looks quite good when the color is set to something that works with the theme:
The text was updated successfully, but these errors were encountered: