obsidian-kanban icon indicating copy to clipboard operation
obsidian-kanban copied to clipboard

[Feature Request] Change card color based on priority OR use color selector to change card's color

Open Quorafind opened this issue 3 years ago • 6 comments

It will be nice to make the card colorful in a single Kanban.

Quorafind avatar May 25 '21 09:05 Quorafind

This would be really helpful so that one can see at a glance the type of card, e.g. home, work etc. Perhaps based on tag?

edward-peters avatar Jun 10 '21 16:06 edward-peters

I would like this feature will be implemented. I think it would be very useful for organization :)

savinspm avatar Jun 27 '21 20:06 savinspm

+1

AtrusRiven avatar Oct 08 '21 11:10 AtrusRiven

Not a solution but related: there is a todo in the roadmap for assigning colors to tags.

Related card in the roadmap

hdubbs avatar Feb 08 '22 10:02 hdubbs

Not a solution but related: there is a todo in the roadmap for assigning colors to tags.

Related card in the roadmap

There's a css class for Kanban items that have specific tags.

.kanban-plugin__item.has-tag-TAGNAMEGOESHERE { border: 2px solid!important; border-left: 6px solid !important; border-color: rgba(255,217,75,1) !important; }

image

matt-latt avatar Jul 20 '22 19:07 matt-latt

For assigning colors to tags you can style based on the href attribute

a.tag.kanban-plugin__item-tag{
  padding-right: 10px !important;
  padding-left: 10px !important;
  border-radius: 10px !important;
}

a.tag.kanban-plugin__item-tag[href="#essential"]{
  background-color: rgba(255,183,0,1) !important;
  color:rgb(0,0,0) !important;
}

a.tag.kanban-plugin__item-tag[href="#bug"]{
  background-color: rgba(255,0,0,1) !important;
  color:rgb(255,255,255) !important;
}

a.tag.kanban-plugin__item-tag[href="#verified"]{
  background-color: rgba(19,198,103,1) !important;
  color:rgb(0,0,0) !important;
}

a.tag.kanban-plugin__item-tag[href="#documentation"]{
  background-color: rgba(0,117,202,1) !important;
  color:rgb(255,255,255) !important;
}

image

dequi avatar Aug 09 '22 18:08 dequi

Another request for being able to set card body colors. Knowing that we can edit the tag styles is pretty awesome in the meantime, though!

Kaji01 avatar Jul 13 '23 20:07 Kaji01