For a good fertilizer, you need to mix dry and wet materials. You need: 1/2 to 3/4 dry matter and 1/4 to 1/2 wet matter.
Dry matter is dead leaves, dry grass, shredded branches, etc.
Wet matter is food scraps (peelings, coffee grounds, bread, etc.) or freshly mown grass.
Both types of material add nitrogen and carbon to your compost.