Currently rewriting my companies custom primeng theme that used css overrides for the past 6 years and got screwed when primeng renamed them so I would suggest looking into using design tokens so you don't have to worry about mappings
https://primeng.org/theming#architecture
https://primeng.org/theming#customization