-
Notifications
You must be signed in to change notification settings - Fork 8
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
funkyheatmap dark mode #176
Comments
that seems about right to me |
Seems ugly... is there no better way to define the endpoints of your colour scheme in js? |
It does, but the other way would be to make funkyheatmap aware of the light/dark mode, which is ugly too (because it's a separate component, and you can't just pass a style to alter the palette), or at least I haven't thought of a good way yet. Any ideas are welcome |
How do you create the component with a different palette in js? |
Right now the palettes are decided on in r. To fix this, we need to either define two palettes in R and pass them both to JS, or move the code that decides the palette in JS. Happy to discuss when I'm back from holidays next week. |
I don't know how funkyheatmapJS interacts with the R code, but this seems eminently solvable with css.
|
I learn more and more about css : ) If the I wouldn't like moving palettes to css entirely, but I can add the css variable that determines palette position, and then we can add css to convert that to color. |
If we use css filter, we should add a css class on all of the circles / rects so I can select them more easily ( |
I'll add this to your branch, but also waiting for input from others |
Originally posted by @mxposed in #172 (comment)
Rather than hacking the css, we can design the funkyheatmap to be responsive to colour variables.
Here's my two cents:
This could be achieved with
--bs-white
for header text,--bs-body-color
for other text,--bs-body-bg
for row background,--bs-button-hover
for alternate rows background.cc @rcannood @KaiWaldrant
The text was updated successfully, but these errors were encountered: