Tag pills or colours in the Outliner?

I have looked through the large CSS thread and picked up some snippets along the way, including tag pills in both the Editor and Preview modes but was wondering if there is a way to do the same in the Outliner? I use Obsidian for my assignments and use tagging to track my progress on different parts, so it would be helpful to see this in my outline - or even to see the headings coloured according to their colours in the editor, so that I could adjust the heading colours to reflect the status instead.

Any help appreciated.