First hello. Second, creepers at least in 2018 spawned anywhere below light level 8. Also I would recommend making the creeper farm above ground bc in my experience they're more common there. Also, if u build it above ground AVOID CATS BEING NEARBY
Sorry if this doesn't help I've never done a hostile mob farm.