Whether it's blatantly racist images of the Obamas on Trump's social media account this week or decades of not so subtle "dog whistles" from GOP politicians and candidates in the past, the Republican Party has quite firmly based much of its "brand" on racism since the 1960s.
Appealing to racist white bigots (the majority of the white electorate) has been their primary political strategy for ages.