What we could do is move these colors to CSS custom properties instead of setting them inline, which would make the colors easily accessible in any CSS/SCSS. I don’t know when we’ll be able to get to that, but I’ll keep it on my list of to-dos.
That would be awesome
BTW is there any other way to achieve the view I want?
I’ve read that I can override templates for specific parts of Discourse, which template file I must override and how should I do that in my custom theme?
Beachten Sie, dass ich den Stil direkt auf das h3-Element des Titels angewendet habe, da es ein direktes Kind des td ist, auf das der Inline-Stil angewendet wurde. Wenn die Vorlage dies jemals entfernt, müssen Sie Ihr CSS anpassen.
Aber Sie können das Überschreiben von components/parent-category-row überspringen, wie Sie es wollten.