Have you checked usePreset in docs?
https://v18.primeng.org/theming#usepreset
It says
Replaces the current presets entirely, common use case is changing the preset dynamically at runtime.