In his Washington Post column Fareed Zakaria listed three main reasons for Kamala Harris's failure and Trump's victory -- immigation, frivolous prosecutions of Trump, and racial identity politics.
Among the points he made were:
An asylum system that was meant for a small number of persecuted individuals was being used by millions to gain legal entry. Instead of shutting it down, liberals branded anyone protesting as heartless and racist. They missed a massive shift in American public opinion in just a few years.
The indictments confirmed to his base what it had always believed — that overeducated urban liberals were hypocrites, happy to bend rules and norms when it suited their purposes
The final error is a more diffuse one: the dominance of identity politics on the left, which made Democrats push for all kinds of diversity, equity and inclusion policies that largely came out of the urban, academic bubble but alienated many mainstream voters.
One simple way to think about the lessons of this election is that liberals cannot achieve liberal goals — however virtuous — by illiberal means.