ToDo APP Border color change depending on priority

I been wondering if there is any way to add a color depending on the selected priority into a ToDo List Card/Activity created.

I been trying to make this change into a ToDo APP that was created in freeCodeCamp JS, the name of it is “Learn Local Storage by building a ToDo APP”.

Anything helps.

I tried doing several things but, what I was mainly trying to do is getting the card’s/activity or whatever is in the toDo list change its border color depending on it’s priority.