Attack Magazine has a section called Beat Dissected which teaches sub-genre beat making.
It’s sometimes hard to do this because oftentimes in electronic music the sound or technique can rely on a quirk of the specific synth or sample. Attack do a great job considering.