Hello. I can’t change the background of the category. Is there a way to do this?
i think this may be tricky to do with horizon[1] but something like this will work in a theme component. the color will depend on what variable you use, (eg: --tertiary-low from the color palettes for dark/light mode). you can make your own variables too and add more complexity.
in a theme component custom CSS:
@use "lib/viewport";
//** target the category id for specific category **//
.category-box[data-category-id="4"] {
// ** only apply to mobile ** //
@include viewport.until(md) {
.category-box-inner {
background: var(--tertiary-low);
}
}
}
with the color palette you are currently using on your site:
light mode:
dark mode:
i find that horizon is a pain to customize ↩︎
Just to point out:
Horizon isn’t meant to be customised.
If you want to do any customisation, the official recommendation is that you start on Foundation and use that as your base.
As explained here
that’s sad because admins want to customize their sites. that’s one of the great things people like about Discourse. ![]()
Yes, if you can tweak it, sure, go ahead. No is saying you can’t.
But its not meant to be, so we didn’t built it with the thought to customise it easily. It’s meant as an out-of-the-box theme for people who are less technical.





