Much like how you wouldn’t put curry in your apple pie, there are some guidelines when pairing beer with food. A lot of people know the wine guidelines, but the beer ones aren’t as well known yet. In general with beer you want something that either a) complements or b) contrasts with the food being served. You also want to go from the most mild to the strongest and boldest when arranging a beer dinner pairing.
With these basic guidelines you can get creative and try different combos. After the cut are some tried and true pairings in an infographic from Erik Krass, whose page could be found here: Stateline Nissan Auto.