-
Notifications
You must be signed in to change notification settings - Fork 61
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
Custom RGB colors for cards #308
Comments
Hello @trobonox , I'm interested to help on this issue, I have explored the code a little bit, so what I think I should do is to add a new option for card color and then the user use some sort of color selector right? is there any color selector component already available or prefered? |
Hey @trobonox , I have implemented custom color in my fork, but there is a bit of problem with the color not showing because tailwind classes are compile-time generated, so if i use variable inside the bracket for example so one of the solution i found is using CSS variables, but i think the Card Component would need to be updated too, so what do you think about this? |
Just tried out the implementation on your fork and it looks good so far. I totally understand the issue you're running in, thanks for pointing this out. Here's an approach I was thinking of for the Card component modification, not sure if this would work but maybe this helps:
Please let me know if this makes sense or if you want to try out another approach. Feel free to experiment, I'm just thinking about possible ways to keep the implementation as clean as possible without extra entries to the Tailwind config or extra CSS variables. |
I see what you mean, Im gonna first try out using the Vue style way, because I think using Tailwind that way would make it more complicated |
Thanks for your contribution! |
Currently, clicking a card has a fixed range of colors. Next to these toggles, there should be a color palette icon to select a custom color. This should also be inside a circle like the other colors, displaying the circle with the currently selected custom color.
The logic for this can be found in
components/modal/Kanban.vue
where thesetCardColor
function is used. The colors are applied using TailwindCSS, so for custom hex colors you would have to save the strings in a format like this:bg-[#fefefe]
The text was updated successfully, but these errors were encountered: