How to render with same style as seen in solid viewport?
Change the render engine from Cycles or Eevee to Workbench in the Render Properties tab and play with the configurations:


also, this video show in details how to use Workbench:
Introduction to Workbench Blender 2.8