Since there is no reason to build it like a people house, it only need be strong enough that you can carefully walk on it occasionally for maintenance, I use 2' on center, purlins spaced approx 24" oc - and I use 5/4 x 6 pt deck boards instead of 1x4 grade 2s for my purlins. Locally, they are cheaper, pressure treated (in case there should be a leak), wider (easier to hit with screws from the top), thicker (more thread grip), and much less likely to have a knot in them which renders it structurally useless.
Did I mention they are often cheaper?
Here are some pictures of one I threw together in a weekend. That's the goat shed. I did something similar with the bunny barn I just extended off the shed.
/edit Thickness of your rafter is based on Span. For my purposes, I'll take a 2x4 to almost 10' unsupported length (meaning a 2x4x12, to allow me 1' of overhang on each end (roughly). I weigh about 165# and of course we have no snow loads. 2x6 for anything of greater span. Whether that's sufficient safety margin for you or not?? I can't answer that. they
do make span tables.