How to create a clorscheme

How to create a colorscheme that is compatible with treesitter? And is there any source i can refer?

“Compatible with treesitter” doesn’t really mean anything, since treesitter will link to built-in highlight groups by default. If you want, you can customize the treesitter highlight groups using, e.g.

:hi TSFunction guifg=#f0f0f0f0

Check the output of :highlight to see the full list of treesitter highlight groups (the ones beginning with TS).

As far as making your own colorscheme, typically the best course is to simply start from one that’s close to what you want and tweak it to your own liking. You may also be interested in lush.nvim.