Creating Icon Pack

I have been curious about how the icon packs get created as I do not quite grasp how installing them the programs pick up the icons automatically. If someone would be willing to explain this to me I would be very grateful.

look into “/home/user/.local/share/icons/” there are the iconpacks you have downloadet