How do I achieve this look for the viewport?
You do this using the solid view settings. They can be accessed in the dropdown menu in the top right corner of your screen, as shown in the picture. Copying the settings I use gets it pretty similar to the picture you posted.