Replacing dairy in pastry is all about finding the right balance of fat and water. Butter can be swapped for plant-based fats (like block margarine or vegetable oil blends), while milk can be replaced by plant-based alternatives like soy or oat milk. The key is to match the fat content of the original dairy ingredient to maintain the same richness and texture.