Normally you base it off the size of the wire, however you can use what you're powering as a secondary consideration. What are you powering, what guage wire are you using?
If you're running a light that draws 3a but you want to run 12ga wire, you could use a 5a fuse since the wire will never carry more than the 3a the light is drawing. You could also use a fuse that will allow for the maximum amps to flow, so you could use between a 9 and 40a for 12ga wire depending on what amp chart you check and the distance of the run. Here's an example of a chart from
Crutchfield:
So a little more info like item being powered, distance from power source, planned wire guage would help get you a more clear answer. If you are using a 30a relay and you use the proper guage wire you could use up to a 30a fuse. I usually base it off the item being powered and make sure my wire size is more than enough.