"Proper" way to modify CSS?

Infos:

  • Used Zammad version: 5.2.3
  • Used Zammad installation type: package
  • Operating system: AlmaLinux
  • Browser + version: Edge 106.0.13

Please can you point me in the right direction for any documentation about modifying the self-hosted version? Specifically, I am looking to adjust the frontend CSS font styles and colors, so I am looking for some information on which files are safe to modify without causing issues during updates. From looking around the forums I’ve seen a few posts that are specific to certain user’s needs but have not yet found any general guidance on how modifications are handled during updates or whether I need to adjust the existing CSS or if there’s a way to keep my modifications in a separate file which is applied on top of the base code

Add css files to /opt/zammad/app/assets/stylesheets/custom/

Then run
zammad run rake assets:precompile
systemctl restart zammad-web

Files in that directory have survived updates so far.

2 Likes

Thanks so much I will give that a go and see how we get on. I did see this response on another post but it was for a much older version so I wasn’t sure if it was still valid.

Would you recommend we add “!important” to the selectors to override the default ones or will it automatically override?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.