Just in case you're inferring that liberal views play a role in wealth generation: The prosperity of SF, LA, NYC, Boston, etc. has very little to do with liberal views. Any arrogant pricks from those coastal cities who think that are kidding themselves.
Instead, the wealth comes from their geography (i.e. sea ports). Throughout history, cities along important trade routes have always been places of wealth and prosperity. They create wealth just by EXISTING where they do because they steal from... er, add duties to goods bound for... everyone inland who wants those goods, whether it be union bosses and their crony friends, greedy bankers/merchants, "liberal" politicians with their rich friends, etc... And the sea ports in the United States are no different.
Yes, wealth does lead to education and enlightenment, which can dispel some incorrect notions that poorer, less-enlightened people fall prey to (bad religion, ignorance, prejudice, etc.). However, that wealth also leads to comfort, which almost invariably leads to pride, and eventually decadence - and you can't easily be decadent with a socially conservative viewpoint.
In other words, wealth from trade leads to liberal views - not vice versa. And if SF (and all of its smug) were picked up and thrown inland 100 miles, it would lose its liberal viewpoint within a generation as the wealth left the city - along with all of the freeloaders at all levels of society who mooched off of it.