I know that the Stranger is supposed to have Existentialist themes, and I don't really know enough about Existentialism to comment on that, but it seemed to me that the book was trying to show that all of the people who truly hated the protagonist actually hated life.
At the end for example, he says that he feels a true kinship with the indifference of life. It seems to equate his indifference through the whole book with how life is indifferent to suffering or pleasure, good and evil, people and their desires etc. And people ultimately come to hate him for this indifference.
One person actually calls him the "antichrist" at one point, he is sentenced to death, and the priest at the end becomes angry with him for not "confessing" to loving life and finding it beautiful. But it could be argued that the priest hates life far more than the protagonist does, because he refuses to accept the negative and unfeeling parts of it, the cold neutrality of life.…