It’s surely a fact though that while not everyone who voted for Brexit was a racist thicko, all the racist thickos voted for Brexit.
But yes, the whole Remain campaign was a mash up of “you’re an idiot if you vote for Brexit” and “the sky will fall in if you do”. It wasn’t great. But the Leave campaign’s lies about the shining Utopia we’d be walking into if we left the EU wasn’t great either.
In general the level of political discourse is lamentably poor.