In the present day Republicans are the party of racism.
When racism mattered racists voted Democrat. Democrats are still the most preoccupied with race, they just changed from segregation from a race they believe inferior to capitalizing on a race that they believe inferior. Slight change in tactics.