How to change the palette like this picture?

You can use CSS to do that.