

Gradient function is usual in css
There might be plug-in to support it.
But in fact, it can be easier approached just when flarum allow to submit the picture/gradient function in tags setting. And add a little lines of css. The official tag plugin can support it with only css change on existing codes.
Hope the suggestion can be acceped.
a.TagLabel.colored span.TagLabel-text {
color: transparent !important;
background: var(--tag-color);
background-clip: text;
-webkit-background-clip: text;
}
ul.TagDiscussionModal-list.SelectTagList li i {
color: transparent!important;
background: var(--color);
background-clip: text;
-webkit-background-clip: text;
}