I think race based is less applicable than fear and ignorance based. The Leave EU camp used mostly fear arguments based on sovereignty, immigration, jobs and bureaucracy issues and took advantage of people's general ignorance of the facts. Sure, there is racism mixed in, but I do not think it is the primary driver. The opportunity to gain, wield and hold power is IMO.
Just like here in the US - Trump may say racist things and may even mean some of them, but first and foremost, he is a politics of fear and ignorance opportunist. His marketing savvy and packaged sayings (build the wall, lying Ted, crooked Hillary etc.) push the right buttons with his target audience, but are vague enough that he can usually slip out of any accountability. He will literally say whatever he thinks people want/need to hear to give him what he wants.
As many know, Trump has been registered as a Democrat, Republican and Independent during his lifetime depending on which way the political winds were blowing at the time and which would benefit his business ventures the most.
This type of fear & ignorance based opportunism and the ability to continue getting away with it is the real danger to our country, society and world community at this point.
This is what the founding fathers referenced in their worries about demagogues and dictatorship. That is what this leads to inevitably once everyone cannot think for themselves any longer, does not know the facts nor care to know and is willing to follow whoever can manipulate their fears most effectively. As Ben Franklin said, "It is your Republic, if you can keep it". We need to get back to keeping it and the first way is to expose opportunists like Trump for the frauds they are.