Kanban plugin snippets for card bc-color based on date color?

What I’m trying to do

I found this post Obsidian-CSS-Snippets/Snippets/Kanban styling - background based on tag.md at Collection · r-u-s-h-i-k-e-s-h/Obsidian-CSS-Snippets · GitHub

so I want to have something like it but based on the background color of the date
but the js file is so huge and I’m not used reading code like it :c