Question: do villagers need sunlight to breed?
Answer: Yes, its one of the conditions, they need directly a skylight on them. It's the doors not the villagers that need light. But lack of light could mean some of the doors aren't valid, which would prevent breeding.