After decades of being “blue,” Republicans let their opponents define them.