Synthesis of lipids in cells, including fatty acid metabolism, glycerolipid synthesis, and sterol biosynthesis.