Your customisations will remain.
However, if the templates you've changed have been updated then they will be marked as "outdated". Your customisations will remain but you won't get the changes made by XenForo.
The process is to work out the differences manually. This can be painstaking.
People say the TMS Template Modification System add on could help with this as templates are never directly edited.