I’m looking to give tags the same looks in the Live Preview as they have in Reading.
Things I have tried
.cm-s-obsidian span.cm-hashtag,
.tag {
color: #999999;
background-color: #333333;
border: none;
padding: 1px 8px;
text-align: center;
text-decoration: none;
display: inline-block;
margin: 0px 0px;
cursor: pointer;
border-radius: 14px;
}
.cm-s-obsidian span.cm-tag-M,
.tag[href="#M"] {
background-color: darkred;
color: lightgray;
}
.cm-s-obsidian span.cm-tag-S,
.tag[href="#S"] {
background-color: darkorange;
color: black;
}
.cm-s-obsidian span.cm-tag-C,
.tag[href="#C"] {
background-color: darkgreen;
color: lightgray;
}
.cm-s-obsidian span.cm-tag-W,
.tag[href="#W"] {
background-color: rgba(128, 128, 128, 0.212);
color: gray;
}
This results in:

What I’m trying to do
Actual desired result I’m trying to get to (this is a screenshot of what my reading view looks like, but I want to replicate this in the preview):
